forked from JMcAmmond/react-select-datepicker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
115 lines (115 loc) · 2.7 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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"env": {
"browser": true,
"es6": true,
"jest": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"plugin:import/typescript",
"plugin:prettier/recommended",
"plugin:you-dont-need-lodash-underscore/compatible"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"react",
"@typescript-eslint",
"react-hooks",
"sort-imports-es6-autofix"
],
"rules": {
"jsx-a11y/label-has-associated-control": "off",
"react/jsx-filename-extension": "off",
"react/jsx-closing-bracket-location": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": ["**/*.spec.{ts,tsx}", "**/*webpack.*.js"],
"optionalDependencies": true,
"peerDependencies": false,
"bundledDependencies": true
}
],
"import/extensions": [
"error",
{
"js": "never",
"ts": "never",
"tsx": "never"
}
],
"no-unused-vars": "off",
"linebreak-style": "off",
"max-len": [
"error",
{
"code": 120,
"ignorePattern": "^import [\\s\\S]"
}
],
"react/jsx-props-no-spreading": "off",
"import/prefer-default-export": "off",
"react/prefer-stateless-function": "off",
"react/destructuring-assignment": "off",
"operator-linebreak": "off",
"react/static-property-placement": ["error", "static public field"],
"no-array-constructor": "off",
"react/prop-types": "off",
"no-undef": "off",
"import/no-cycle": 0,
"object-curly-newline": [
"error",
{
"ObjectExpression": {
"minProperties": 4,
"multiline": true,
"consistent": true
},
"ObjectPattern": {
// "minProperties": 4, disabling for destructuring syntax
"multiline": true,
"consistent": true
},
"ImportDeclaration": {
// "minProperties": 4, disabling for named imports (another form of destructuring)
"multiline": true,
"consistent": true
},
"ExportDeclaration": {
"minProperties": 4,
"multiline": true,
"consistent": true
}
}
],
"no-param-reassign": [
"error",
{
"props": false
}
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
},
"overrides": [
{
"files": ["*.spec.{ts,tsx}"],
"rules": {
"no-param-reassign": "off",
"max-len": "off"
}
}
]
}