-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
51 lines (51 loc) · 1.19 KB
/
Copy path.eslintrc.js
File metadata and controls
51 lines (51 loc) · 1.19 KB
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
module.exports = {
env: {
browser: true,
},
settings: {
'import/resolver': {
node: {
paths: ['src', './'],
},
},
react: {
version: 'latest',
},
},
extends: ['airbnb', 'prettier', 'prettier/react'],
parser: 'babel-eslint',
plugins: ['prettier', 'sort-destructure-keys', 'sort-keys-fix'],
rules: {
'jsx-a11y/label-has-for': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'jsx-a11y/click-events-have-key-events': 0,
'jsx-a11y/no-static-element-interactions': 0,
'import/extensions': 'off',
'no-nested-ternary': ['error'],
'react/destructuring-assignment': 'off',
'import/no-named-as-default': 'off',
'prettier/prettier': [
'error',
{
trailingComma: 'all',
singleQuote: true,
printWidth: 100,
},
],
'sort-destructure-keys/sort-destructure-keys': 2,
'sort-keys-fix/sort-keys-fix': 2,
},
overrides: [
{
files: ['.spec.jsx', '.spec.js'],
env: { jest: true },
},
{
files: ['.storybook/**', '*/stories/*'],
rules: {
'import/no-extraneous-dependencies': 'off',
'react/jsx-filename-extension': 0,
},
},
],
};