-
Notifications
You must be signed in to change notification settings - Fork 13
/
.eslintrc.json
86 lines (86 loc) · 2.25 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": {
"browser": true,
"es2021": true,
"es6": true,
"jquery": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"plugin:mdx/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"mdx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"react",
"spellcheck"
],
"ignorePatterns": ["glideslider.js","stories/assets/js/lib/*.js"],
"rules": {
"import/prefer-default-export": "off",
"react/prop-types": "off",
"no-unused-vars": "off",
"camelcase": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/role-has-required-aria-props": "off",
"jsx-a11y/control-has-associated-label": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/img-redundant-alt": "off",
"jsx-a11y/no-noninteractive-tabindex": "off",
"no-mixed-operators": "off",
"jsx-a11y/role-supports-aria-props": "off",
"no-param-reassign": "off",
"react/jsx-first-prop-new-line": "off",
"no-restricted-globals": ["error", "event", "fdescribe"],
"no-undef": "off",
"no-var": "off",
"no-plusplus": "off",
"no-shadow": "off",
"no-script-url": "off",
"prefer-rest-params": "off",
"class-methods-use-this": "off",
"block-scoped-var": "off",
"max-len": "off",
"react/no-array-index-key": [0],
"eqeqeq": "off",
"enforceForClassFields": [0],
"react/button-has-type": "off",
"no-empty-pattern": "off",
"no-sequences":"off",
"react/style-prop-object": "off",
"vars-on-top": "off",
"no-redeclare": "off",
"mdx/no-unused-expressions": "off",
"prefer-const": "off",
"jsx-a11y/anchor-has-content": "off",
"import/no-unresolved": [0],
"react/no-unescaped-entities": [0],
"react-a11y-role-has-required-aria-props": [0],
"@typescript-eslint/no-empty-interface": [0],
"import/no-extraneous-dependencie": "off",
"react/jsx-props-no-spreading": "off",
"import/no-extraneous-dependencies": "off",
"no-console": "off",
"no-return-assign": ["warn", "always"],
"func-names": ["warn", "never"],
"no-underscore-dangle": [0],
"no-use-before-define": "off",
"react/jsx-no-duplicate-props": [1, { "ignoreCase": false }],
"linebreak-style": "off"
},
"settings": {
"mdx/code-blocks": true
},
"overrides": [
{
"files": ["stories/**/*.jsx", "stories/**/*.mdx"]
}
]
}