-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
45 lines (45 loc) · 1.04 KB
/
index.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2017,
ecmaFeatures: {
jsx: true,
},
},
env: {
es6: true,
browser: true,
},
plugins: ["@typescript-eslint"],
extends: ["airbnb", "airbnb/hooks", "prettier"],
settings: {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx", ".d.ts"],
},
"import/resolver": {
node: {
extensions: [".js", ".jsx", ".ts", ".tsx", ".json", ".d.ts"],
},
},
},
rules: {
"react/react-in-jsx-scope": "off",
"import/extensions": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"react/forbid-prop-types": [1, { forbid: ["any"] }],
"react/prop-types": ["error", { ignore: ["children"] }],
"react/jsx-filename-extension": 0,
"react/no-multi-comp": 0,
"react/jsx-props-no-spreading": 0,
},
overrides: [
{
files: ["**/*.tsx"],
rules: {
"react/prop-types": "off",
},
},
],
};