forked from sah/material-ui-dropzone
-
Notifications
You must be signed in to change notification settings - Fork 14
/
.eslintrc.json
86 lines (86 loc) · 2.12 KB
/
.eslintrc.json
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"env": {
"es6": true,
"browser": true,
"mocha": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
}
},
"globals": {
"React": true,
"JSX": true
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".d.ts", ".ts", ".tsx"]
}
},
"react": {
"version": "detect"
}
},
"plugins": [
"babel",
"@typescript-eslint",
"react-hooks",
"react",
"simple-import-sort",
"import"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/errors",
"plugin:import/typescript",
"prettier"
],
"rules": {
"@typescript-eslint/no-shadow": ["error", { "hoist": "never" }],
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "after-used",
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true,
"varsIgnorePattern": "^_"
}
],
"arrow-body-style": 0,
"camelcase": 0,
"class-methods-use-this": 0,
"import/no-deprecated": "warn",
"import/no-duplicates": "error",
"import/no-extraneous-dependencies": 0,
"import/order": "off",
"no-confusing-arrow": 0,
"no-console": "warn",
"no-else-return": 0,
"no-nested-ternary": 0,
"no-param-reassign": ["error", { "props": false }],
"no-restricted-syntax": 0,
"no-return-assign": [2, "except-parens"],
"no-underscore-dangle": 0,
"no-unreachable": "error",
"no-unused-expressions": ["error", { "allowTernary": true }],
"prefer-arrow-callback": ["error", { "allowNamedFunctions": true }],
"react-hooks/exhaustive-deps": "error",
"react-hooks/rules-of-hooks": "error",
"react/destructuring-assignment": 0,
"react/jsx-filename-extension": 0,
"react/no-multi-comp": 0,
"react/no-unescaped-entities": 0,
"react/prop-types": 0,
"simple-import-sort/exports": "error",
"simple-import-sort/imports": "error",
"sort-imports": "off"
}
}