-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.eslintrc.js
31 lines (31 loc) · 880 Bytes
/
.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
/* eslint-env node */
module.exports = {
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', "plugin:react/recommended"],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'react'],
root: true,
rules: {
'comma-dangle': 0,
'no-irregular-whitespace': ['error', { skipComments: true }],
'no-console': ['error', { allow: ['warn', 'error'] }],
semi: 0,
'@typescript-eslint/comma-dangle': ['error', 'always-multiline'],
'@typescript-eslint/member-delimiter-style': ['error', {
multiline: {
delimiter: 'semi',
requireLast: true,
},
singleline: {
delimiter: 'semi',
requireLast: true,
},
multilineDetection: 'brackets',
}],
'@typescript-eslint/semi': ['error', 'always'],
},
settings: {
react: {
version: 'detect',
},
},
};