-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
50 lines (50 loc) · 1.26 KB
/
.eslintrc.js
File metadata and controls
50 lines (50 loc) · 1.26 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
module.exports = {
extends: ['airbnb-typescript-prettier', 'plugin:jest/recommended'],
plugins: ['jest'],
rules: {
'import/no-named-as-default': 'off',
'consistent-return': 'off',
'no-void': 'off',
'jest/no-disabled-tests': 'warn',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/prefer-to-have-length': 'warn',
'jest/valid-expect': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-shadow': 'off',
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
ignoreRestSiblings: true,
argsIgnorePattern: '^_',
},
],
'import/prefer-default-export': 'off',
'jsx-a11y/label-has-associated-control': ['error', { assert: 'either' }],
},
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
sourceType: 'module',
},
overrides: [
{
files: ['**/*.test.ts'],
env: {
jest: true,
browser: false,
es6: true,
},
},
],
settings: {
'import/resolver': {
node: {
extensions: ['.ts', '.js'],
},
extensions: ['.ts', '.js'],
},
},
};