forked from jjangga0214/hasura-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
47 lines (47 loc) · 1.27 KB
/
.eslintrc.js
File metadata and controls
47 lines (47 loc) · 1.27 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
module.exports = {
parser: '@typescript-eslint/parser',
root: true,
env: {
node: true,
es6: true,
'jest/globals': true,
},
plugins: ['@typescript-eslint', 'prettier', 'jest', 'markdown', 'json'],
extends: [
'plugin:jest/all',
'plugin:import/errors',
'plugin:import/warnings',
'airbnb-base',
'prettier',
'plugin:import/typescript',
'prettier/@typescript-eslint',
'plugin:@typescript-eslint/recommended',
],
rules: {
'prettier/prettier': 'error',
'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',
'jest/expect-expect': 'off',
'jest/prefer-expect-assertions': 'off',
'jest/no-test-return-statement': 'off',
'import/prefer-default-export': 'off',
'import/extensions': 'off',
'no-console': 'off',
'no-iterator': 'off',
'no-restricted-syntax': 'off',
'no-await-in-loop': 'off',
'consistent-return': 'off',
'no-shadow': 'off',
'no-unused-vars': 'off',
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
'@typescript-eslint/member-delimiter-style': 'off',
},
settings: {
'import/resolver': {
typescript: {},
},
},
}