-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
63 lines (63 loc) · 1.88 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: { ecmaVersion: 2017 },
plugins: ['@typescript-eslint', 'prettier'],
extends: ['airbnb-base', 'plugin:import/typescript', 'prettier'],
env: { node: true, mocha: true, es6: true },
rules: {
camelcase: ['off', { properties: 'never' }],
'global-require': 'off',
'no-param-reassign': 'off',
'no-console': 'off',
'no-tabs': ['off', { allowIndentationTabs: true }],
'no-use-before-define': ['error', { functions: false }],
'no-underscore-dangle': 'off',
'prefer-destructuring': 'off',
'spaced-comment': 'off',
'import/prefer-default-export': 'off',
'import/extensions': 'off',
'class-methods-use-this': 'off',
'prettier/prettier': 'error',
'no-restricted-syntax': 'off',
'no-await-in-loop': 'off',
'no-continue': 'off',
'func-names': 'off',
'no-unused-vars': 'off',
'no-empty-function': 'off',
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: [
'**/*.test.js',
'**/*.spec.js',
'**/*.test.ts',
'**/*.spec.ts',
'./test/**/*.js',
'./test/**/*.ts',
],
},
],
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
},
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'import/no-unresolved': 'off',
'no-dupe-class-members': 'off',
'@typescript-eslint/no-dupe-class-members': ['error'],
'no-useless-constructor': 'off',
'@typescript-eslint/no-useless-constructor': ['error'],
'lines-between-class-members': 'off',
'@typescript-eslint/lines-between-class-members': ['error'],
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': ['error', { functions: false }],
'no-shadow': 'off',
'@typescript-eslint/no-shadow': ['error'],
'no-undef': 'off',
},
},
],
};