forked from bigcommerce/big-design
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
75 lines (74 loc) · 2.66 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
require('@bigcommerce/eslint-config/patch');
module.exports = {
root: true,
extends: ['@bigcommerce/eslint-config'],
parserOptions: {
project: [
'./packages/big-design/tsconfig.json',
'./packages/big-design-icons/tsconfig.json',
'./packages/big-design-theme/tsconfig.json',
'./packages/docs/tsconfig.json',
'./packages/examples/tsconfig.json',
],
tsconfigRootDir: __dirname,
},
settings: {
'import/resolver': {
typescript: {
alwaysTryTypes: true,
project: 'packages/*/tsconfig.json',
},
},
},
overrides: [
{
files: ['**/*.ts', '**/*.tsx', '**/*.js'],
rules: {
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-shadow': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-unnecessary-condition': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/member-ordering': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/no-misused-promises': 'off',
'@typescript-eslint/require-await': 'off',
'@typescript-eslint/await-thenable': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/unified-signatures': 'off',
'func-names': 'off',
'import/no-dynamic-require': 'off',
'import/no-named-default': 'off',
'import/no-extraneous-dependencies': 'off',
'import/dynamic-import-chunkname': 'off',
'jest/no-conditional-expect': 'off',
'jest/no-restricted-matchers': 'off',
'jest/no-identical-title': 'off',
'jsdoc/require-param-type': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'jsx-a11y/no-autofocus': 'off',
'jsx-a11y/aria-role': 'off',
'react/destructuring-assignment': 'off',
'react/jsx-pascal-case': 'off',
'react/jsx-no-useless-fragment': 'off',
'array-callback-return': 'off',
complexity: 'off',
'no-param-reassign': 'off',
'no-restricted-syntax': 'off',
'no-restricted-globals': 'off',
'no-plusplus': 'off',
'no-nested-ternary': 'off',
'no-underscore-dangle': 'off',
'no-shadow': 'off',
'no-unused-vars': 'off',
radix: 'off',
},
},
],
};