-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
42 lines (42 loc) · 1.4 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
],
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module',
},
rules: {
'dot-location': ['error', 'property'],
'eqeqeq': ['error', 'always', { null: 'ignore' }],
'require-await': 'error',
'array-bracket-spacing': ['error', 'never'],
'block-spacing': ['error', 'always'],
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
'comma-dangle': ['error', 'always-multiline'],
'linebreak-style': ['error', 'unix'],
'no-tabs': 'error',
'no-trailing-spaces': 'error',
'no-unexpected-multiline': 'error',
'no-unneeded-ternary': 'error',
'object-curly-spacing': ['error', 'always'],
'object-shorthand': 'error',
'one-var-declaration-per-line': ['error', 'always'],
'quotes': ['error', 'single', { avoidEscape: true, allowTemplateLiterals: true }],
'semi': ['error', 'never'],
'space-before-function-paren': ['error', { anonymous: 'never', named: 'never', asyncArrow: 'always' }],
'space-before-blocks': 'error',
'space-infix-ops': 'error',
'unicode-bom': 'error',
'keyword-spacing': ['error', { before: true, after: true }],
'no-unused-vars': 'off',
'no-case-declarations': 'off',
'no-cond-assign': 'off',
},
}