-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
37 lines (37 loc) · 1.08 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended'
],
settings: { react: { version: 'detect' } },
parserOptions: {
ecmaFeatures: { jsx: true },
ecmaVersion: 2018,
sourceType: 'module'
},
rules: {
'@typescript-eslint/camelcase': ['off', { 'properties': 'never' }],
'@typescript-eslint/member-delimiter-style': 0,
'@typescript-eslint/no-namespace': ['off'],
'@typescript-eslint/no-var-requires': ['off'],
'@typescript-eslint/quotes': ['error', 'single', { avoidEscape: true }],
'camelcase': 'off',
'comma-dangle': 2,
'no-control-regex': 0,
'no-extra-semi': 2,
'no-irregular-whitespace': 2,
'no-lonely-if': 2,
'no-multi-spaces': 2,
'no-multiple-empty-lines': 1,
'no-trailing-spaces': 2,
'no-unexpected-multiline': 2,
'no-unreachable': 'error',
'object-curly-spacing': ['error', 'always'],
'quotes': 'off',
'semi': ['error', 'never']
}
}