-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.eslintrc.js
73 lines (73 loc) · 2.01 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
64
65
66
67
68
69
70
71
72
73
module.exports = {
root: true,
reportUnusedDisableDirectives: false,
extends: [
'eslint:recommended',
'plugin:node/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
allowImportExportEverywhere: true,
},
plugins: ['node', 'lit'],
settings: {},
env: {
node: true,
es6: true,
jest: true,
browser: true,
},
rules: {
quotes: ['error', 'single', { avoidEscape: true, allowTemplateLiterals: false }],
'no-process-exit': 'off',
'no-template-curly-in-string': 'error',
'no-caller': 'error',
'no-extra-bind': 'error',
'no-loop-func': 'error',
'no-unused-vars': 'off',
'no-prototype-builtins': 'off',
'no-case-declarations': 'off',
'no-empty': 'off',
'no-redeclare': 'off',
'no-fallthrough': 'off',
'no-useless-escape': 'off',
'no-async-promise-executor': 'off',
'prettier/prettier': 'off',
'no-multiple-empty-lines': 'off',
'node/no-unpublished-require': 'off',
'node/no-missing-require': 'off',
'node/no-extraneous-import': 'off',
'node/no-missing-import': 'off',
'node/no-unsupported-features/es-syntax': 'off',
'node/no-unpublished-import': 'off',
'node/no-extraneous-require': 'off',
},
overrides: [
{
settings: {
node: {
tryExtensions: ['.ts', '.tsx', '.js', '.jsx', '.json'],
},
},
files: ['**/*.ts'],
extends: [
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
rules: {
'node/no-unsupported-features/es-syntax': 'off',
'node/no-deprecated-api': 'off',
'prefer-const': 'off',
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/ban-types': 0,
},
},
],
};