forked from react-icons/react-icons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.cjs
51 lines (50 loc) · 1.33 KB
/
eslint.config.cjs
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
const js = require("@eslint/js");
const typescriptEslintParser = require("@typescript-eslint/parser");
const tseslint = require("typescript-eslint");
const ts = require("@typescript-eslint/eslint-plugin");
const globals = require("globals");
// const reactRecommended = require('eslint-plugin-react/configs/recommended');
module.exports = [
js.configs.recommended,
...tseslint.configs.recommended,
// reactRecommended, // eslint-plugin-react is not supported eslint 9.x
{
plugins: {
"@typescript-eslint": ts,
},
languageOptions: {
globals: {
...globals.browser,
...globals.node,
...globals.jest,
},
parser: typescriptEslintParser,
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
},
rules: {
"@typescript-eslint/no-var-requires": 0,
"react/prop-types": 0,
},
files: ["**/*.{js,mjs,cjs,ts,tsx}"],
},
{
ignores: [
"node_modules",
"**/node_modules",
".yarn/",
"**/.git/",
"**/build/",
"**/docs/",
"**/dist/",
"packages/react-icons/lib/**/*",
"packages/react-icons/build/**/*",
"packages/react-icons/icons/**/*",
"!packages/react-icons/icons/index.js",
"packages/_react-icons_all/**/*",
"packages/_react-icons_all-files/**/*",
],
},
];