forked from marchah/node-countries
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
57 lines (57 loc) · 1.56 KB
/
.eslintrc.js
File metadata and controls
57 lines (57 loc) · 1.56 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
51
52
53
54
55
56
57
module.exports = {
env: {
es6: true,
'jest/globals': true,
node: true,
},
extends: ['airbnb-base', 'plugin:prettier/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'jest'],
rules: {
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],
'@typescript-eslint/no-unused-expressions': [
'error',
{
allowShortCircuit: true,
allowTernary: true,
},
],
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'error',
'no-unused-expressions': 'off',
'arrow-body-style': 'off',
camelcase: 'off',
'consistent-return': 'off',
'func-names': 'off',
'global-require': 'off',
'import/no-extraneous-dependencies': 'off',
'import/no-unresolved': 'off',
'import/prefer-default-export': 'off',
is_disabled: 'off',
'jest/no-focused-tests': 'error',
'no-await-in-loop': 'off',
'no-console': 'off',
'no-continue': 'off',
'no-param-reassign': 'off',
'no-restricted-syntax': 'off',
'no-underscore-dangle': 'off',
'no-unused-vars': 'off',
'prefer-destructuring': 'off',
strict: 'off',
'object-shorthand': 'off',
},
// Disable 'no-undef' for ts files: typescript can already check undef variables with more accuracy than
// eslint, and newer eslint version doesn't support some global configs well (issues with undefined NodeJS namespace)
overrides: [
{
files: ['**.ts'],
rules: { 'no-undef': 'off' },
},
],
};