-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
33 lines (33 loc) · 823 Bytes
/
Copy path.eslintrc.js
File metadata and controls
33 lines (33 loc) · 823 Bytes
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
// http://eslint.org/docs/user-guide/configuring
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parserOptions: {
sourceType: 'module',
},
extends: ['standard', 'plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/recommended'],
globals: {
NAME: true,
VERSION: true,
},
rules: {
semi: 'warn',
'no-new': 'error',
'comma-dangle': ['error', 'always-multiline'],
'comma-spacing': [
'error',
{
before: false,
after: true,
},
],
'spaced-comment': ['error', 'always', {
line: {
markers: ['/'],
exceptions: ['-', '+', '/'],
},
}],
'no-multi-spaces': ['error', { ignoreEOLComments: true }],
'@typescript-eslint/no-explicit-any': 'off',
},
}