-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
31 lines (29 loc) · 1.27 KB
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3 of the License.
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
* You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
* Other licensing options may be available, please reach out to [email protected] for more information.
*/
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginReact from "eslint-plugin-react";
const ESLINT_CONFIG = [
pluginJs.configs.recommended,
...tseslint.configs.recommended,
pluginReact.configs.flat?.recommended,
{
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
languageOptions: { globals: globals.browser },
settings: {
react: {
version: "18"
}
},
rules: {
"react/react-in-jsx-scope": "off",
"react/jsx-uses-react": "off",
}
}
];
export default ESLINT_CONFIG;