-
Notifications
You must be signed in to change notification settings - Fork 719
/
.eslintrc.js
76 lines (76 loc) · 2.37 KB
/
.eslintrc.js
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
module.exports = {
root: true,
extends: [
// these are relics of nimbus, we could definitely simplify + consolidate
'./config-eslint/base.js',
'./config-eslint/next.js',
'./config-eslint/typescript.js',
'./config-eslint/prettier.js',
],
overrides: [
{
files: '*.test.{js,jsx,ts,tsx}',
rules: {
'import/no-extraneous-dependencies': 'off',
'jest/require-to-throw-message': 'off',
},
},
{
files: '*.{js,jsx,ts,tsx}',
rules: {
'arrow-parens': 'off',
'consistent-return': 'off',
'import/prefer-default-export': 'off',
'linebreak-style': 'off',
'lines-between-class-members': 'off',
'no-console': 'off',
'no-nested-ternary': 'off',
'no-param-reassign': 'warn',
'no-restricted-syntax': 'off',
'no-use-before-define': 'off',
'no-useless-rename': 'off',
'object-curly-newline': 'off',
'operator-linebreak': 'off',
'promise/param-names': 'off',
'react/destructuring-assignment': 'off',
'react/forbid-prop-types': 'off',
'react/jsx-curly-brace-presence': 'off',
'react/jsx-filename-extension': 'off',
'react/jsx-no-literals': 'off',
'react/jsx-props-no-spreading': 'off',
'react/jsx-sort-default-props': 'off',
'react/jsx-sort-props': 'off',
'react/no-array-index-key': 'off',
'react/no-children-prop': 'off',
'react/require-default-props': 'off',
'react/sort-comp': 'off',
'react/sort-prop-types': 'off',
'unicorn/catch-error-name': 'off',
'unicorn/no-fn-reference-in-iterator': 'off',
'unicorn/prefer-node-append': 'off',
},
},
{
files: './packages/visx-demo/**',
rules: {
'import/no-unresolved': [
'error',
{
ignore: ['^!!raw-loader!.*'],
},
],
'import/no-webpack-loader-syntax': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'jsx-a11y/label-has-associated-control': 'off',
'jsx-a11y/no-onchange': 'off',
'no-alert': 'off',
'no-param-reassign': 'off',
'react/button-has-type': 'off',
'react/no-danger': 'off',
'react/no-unescaped-entities': 'off',
'react/prop-types': 'off',
'react/state-in-constructor': 'off',
},
},
],
};