-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.eslintrc.cjs
57 lines (57 loc) · 1.69 KB
/
.eslintrc.cjs
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
module.exports = {
parser: '@typescript-eslint/parser',
extends: ['airbnb', 'airbnb-typescript', 'plugin:prettier/recommended', 'plugin:@typescript-eslint/recommended'],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
project: ['./tsconfig.json', './packages/browser-wallet/tsconfig.eslint.json', './examples/*/tsconfig.json'],
tsconfigRootDir: __dirname,
},
env: {
browser: true,
jest: true,
node: true,
},
rules: {
'import/prefer-default-export': 0,
'no-restricted-exports': 0,
'no-restricted-syntax': ['error', 'ForInStatement', 'LabeledStatement', 'WithStatement'],
'react/jsx-props-no-spreading': 0,
'react/require-default-props': 0,
'class-methods-use-this': 0,
'jsx-a11y/no-autofocus': 0,
'no-await-in-loop': 0,
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: [
'**/*.stories.tsx',
'**/build/**/*',
'**/*.config.js',
'**/*.config.ts',
'**/test/**/*',
],
},
],
'jsx-a11y/label-has-associated-control': [
'error',
{
required: {
some: ['nesting', 'id'],
},
},
],
'prettier/prettier': [
'error',
{
trailingComma: 'es5',
singleQuote: true,
printWidth: 120,
tabWidth: 4,
},
],
},
};