generated from shockerqt/typescript-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
56 lines (56 loc) · 1.57 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
// eslint-disable-next-line no-undef
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:jest-dom/recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
'block-spacing': 'warn',
'brace-style': ['warn', '1tbs'],
'camelcase': ['warn', { 'properties': 'always' }],
'comma-dangle': ['warn', 'always-multiline'],
'comma-spacing': 'warn',
'comma-style': 'warn',
'eol-last': 'warn',
'indent': ['error', 2],
'jsx-quotes': 'warn',
'key-spacing': 'warn',
'keyword-spacing': 'warn',
'no-await-in-loop': 'error',
'no-console': 'warn',
'no-trailing-spaces': 'warn',
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
'semi-spacing': 'warn',
'semi-style': 'warn',
'sort-vars': 'warn',
'no-var': 'error',
'prefer-const': 'error',
'prefer-destructuring': 'error',
'prefer-rest-params': 'error',
'prefer-spread': 'error',
'prefer-template': 'error',
'rest-spread-spacing': 'error',
'template-curly-spacing': 'warn',
'object-shorthand': 'warn',
'no-useless-rename': 'warn',
'prefer-arrow-callback': 'warn',
'no-duplicate-imports': 'error',
'arrow-spacing': 'warn',
'array-callback-return': 'error',
'block-scoped-var': 'error',
'class-methods-use-this': 'error',
'consistent-return': 'error',
'dot-location': 'error',
'dot-notation': 'error',
'eqeqeq': 'error',
'guard-for-in': 'error',
'no-multi-spaces': 'warn',
},
};