-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
64 lines (58 loc) · 1.55 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
module.exports = {
root: true,
extends: [
'neon/common',
'neon/browser',
'neon/typescript',
'neon/prettier',
],
parserOptions: {
project: ['./tsconfig.json'],
},
ignorePatterns: ['dist/**', '**/*.js'],
env: {
browser : true,
greasemonkey: true,
},
rules: {
'@typescript-eslint/comma-dangle': [2, 'always-multiline'],
'@typescript-eslint/comma-spacing': [2, { after: true }],
'@typescript-eslint/indent': [2, 'tab', { SwitchCase: 1 }],
'@typescript-eslint/no-extra-semi': 2,
'@typescript-eslint/quotes': [2, 'single', { avoidEscape: true }],
'@typescript-eslint/semi': [2, 'always', { omitLastInOneLineBlock: false }],
'typescript-sort-keys/interface': 0,
// Disable normal rules that are covered by @typescript-esLint
'comma-dangle': 0,
'comma-spacing': 0,
indent: 0,
quotes: 0,
semi: 0,
// Extra Rules
'consistent-return': 0,
'eol-last': 2,
'func-names': 0,
'id-length': 0,
'import/order': 0,
'line-comment-position': 0,
'no-extra-semi': 0,
'no-inline-comments': 0,
'no-multi-spaces': 2,
'sonarjs/no-unused-collection': 0,
// WIP
'no-shadow': 0,
'no-warning-comments': 0,
'no-trailing-spaces': 2,
'object-curly-newline': 0,
'object-curly-spacing': 2,
'object-property-newline': 0,
'padded-blocks': 2,
'prefer-named-capture-group': 0,
'quote-props': [2, 'as-needed'],
'semi-spacing': [2, { before: false, after: true }],
'semi-style': [2, 'last'],
'promise/prefer-await-to-callbacks': 0,
'unicorn/numeric-separators-style': 0,
'unicorn/no-array-method-this-argument': 0,
},
};