-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
60 lines (60 loc) · 1.47 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
module.exports = {
root: true,
extends: [
'eslint-config-airbnb-base',
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
'plugin:import/typescript',
],
plugins: ['prettier', '@typescript-eslint'],
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
allowImportExportEverywhere: false,
codeFrame: false,
},
env: {
node: true,
},
rules: {
'@typescript-eslint/camelcase': 'off',
'import/prefer-default-export': 'off',
'no-useless-constructor': 'off',
'import/no-duplicates': 'off',
'no-await-in-loop': 'off',
strict: 'error',
'import/extensions': 'off',
'import/no-named-as-default': 0,
'no-param-reassign': 'off',
'no-underscore-dangle': 'off',
'no-restricted-syntax': 'off',
'class-methods-use-this': 'off',
'prettier/prettier': 'error',
'import/no-extraneous-dependencies': [
'error',
{ devDependencies: ['**/*.test.js', '**/*.spec.js', 'jest/*.js', 'jest.config.js'] },
],
'no-multi-spaces': 0,
indent: ['error', 'tab'],
'no-tabs': 0,
'spaced-comment': 0,
'no-trailing-spaces': 0,
'arrow-body-style': [1, 'as-needed'],
},
overrides: [
{
files: ['*.test.js', '*.spec.js', 'test/**/*.js', '*.spec.ts'],
env: {
jest: true,
},
rules: {
'@typescript-eslint/no-empty-function': 'off',
'max-classes-per-file': 'off',
'no-console': 'off',
'no-plusplus': 'off',
'import/no-extraneous-dependencies': 'off',
},
},
],
};