forked from webpack/webpack-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
64 lines (64 loc) · 2.19 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
module.exports = {
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
env: {
node: true,
es6: true,
jest: true,
},
parser: '@typescript-eslint/parser',
root: true,
plugins: ['node'],
parserOptions: { ecmaVersion: 2017, sourceType: 'module' },
rules: {
'no-useless-escape': 'off',
'quote-props': ['error', 'as-needed'],
'no-dupe-keys': 'error',
'no-undef': 'error',
'no-extra-semi': 'error',
'quotes': ['error', 'single'],
'prettier/prettier': ['error', { singleQuote: true }],
'semi': 'error',
'no-template-curly-in-string': 'error',
'no-caller': 'error',
'global-require': 'off',
'brace-style': 'error',
'key-spacing': 'error',
'space-in-parens': ['error', 'never'],
'space-infix-ops': 'error',
'no-extra-bind': 'warn',
'no-empty': 'off',
'no-multiple-empty-lines': 'error',
'no-multi-spaces': 'error',
'no-process-exit': 'off',
'no-trailing-spaces': 'error',
'no-use-before-define': 'off',
'no-unused-vars': ['error', { args: 'none' }],
'no-unsafe-negation': 'error',
'no-loop-func': 'warn',
'space-before-function-paren': ['error', 'never'],
'space-before-blocks': 'error',
'object-curly-spacing': ['error', 'always'],
'object-curly-newline': ['error', { consistent: true }],
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'keyword-spacing': [
'error',
{
after: true,
overrides: {
const: { after: true },
try: { after: true },
throw: { after: true },
case: { after: true },
return: { after: true },
finally: { after: true },
do: { after: true },
},
},
],
'no-console': 'off',
'valid-jsdoc': 'error',
'eol-last': ['error', 'always'],
'newline-per-chained-call': 'off',
},
};