-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
44 lines (43 loc) · 1.06 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
/* eslint-disable */
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier'
],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
rules: {
'@typescript-eslint/camelcase': ['off', { properties: 'never' }],
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/quotes': ['error', 'single', { avoidEscape: true }],
camelcase: 'off',
'comma-dangle': 2,
'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'],
curly: 'error',
semi: ['error', 'never']
},
settings: {
react: {
version: 'detect'
}
}
}