forked from FormidableLabs/nuka-carousel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
50 lines (50 loc) · 1.17 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
{
"extends": [
"eslint:recommended",
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:cypress/recommended",
"plugin:react/recommended"
],
"env": {
"node": true,
"browser": true,
"jest": true
},
"settings": {
"react": {
"version": "detect"
}
},
"globals": {
"page": true
},
"ignorePatterns": ["packages/nuka/dist"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["react", "react-hooks", "prettier", "@typescript-eslint"],
"rules": {
"max-params": 0,
"max-statements": 0,
"no-invalid-this": 0,
"no-magic-numbers": 0,
"no-unused-expressions": 0,
"prettier/prettier": "error",
"react/no-multi-comp": 0,
"react/prefer-es6-class": 0,
"react/prop-types": 0,
"react/sort-prop-types": 0,
"react/no-string-refs": 0,
"react/no-did-update-set-state": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"@typescript-eslint/no-unused-vars": ["error"],
"@typescript-eslint/no-var-requires": 0
}
}