-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
28 lines (28 loc) · 835 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
'no-console': ['warn'],
'no-extra-parens': ['warn'],
'no-promise-executor-return': ['error'],
'no-template-curly-in-string': ['error'],
'array-callback-return': ['error'],
'eqeqeq': ['error'],
'no-invalid-this': ['warn'],
'camelcase': ['error'],
'func-call-spacing': ['error', 'never'],
'indent': ['error', 4],
'key-spacing': ['error', { 'afterColon': true }],
'no-var': ['error'],
'prefer-spread': ['warn'],
'prefer-destructuring': ['warn'],
'prefer-template': ['warn']
}
};