-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
58 lines (58 loc) · 1.42 KB
/
.eslintrc
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
52
53
54
55
56
57
58
{
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true
},
"extends": [
"airbnb",
"plugin:@typescript-eslint/recommended",
"plugin:jsx-a11y/recommended",
"plugin:prettier/recommended",
"plugin:react/recommended",
"plugin:import/typescript"
],
"plugins": ["import", "jsx-a11y", "prettier", "react-hooks", "react"],
"parser": "@typescript-eslint/parser",
"ignorePatterns": ["node_modules", "public/**/*.js", "*.woff2?", "*.ttf"],
"rules": {
"no-use-before-define": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_" }
],
"react/jsx-filename-extension": [
1,
{ "extensions": [".js", ".jsx", ".ts", ".tsx"] }
],
"react/prop-types": "off",
"react/jsx-props-no-spreading": "off",
"import/no-unresolved": "off",
"import/prefer-default-export": ["off"],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"prettier/prettier": [
"error",
{
"singleQuote": true,
"trailingComma": "es5",
"tabWidth": 2
}
]
}
}