-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
49 lines (49 loc) · 1.09 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
module.exports = {
root: true,
env: {
browser: true,
es6: true,
'jest/globals': true,
},
extends: [
'standard',
'plugin:security/recommended',
'plugin:@typescript-eslint/recommended',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: [
'jest',
'@typescript-eslint',
'no-only-tests',
'spellcheck',
],
rules: {
indent: [ 'error', 'tab' ],
'no-tabs': [ 'error', { allowIndentationTabs: true } ],
'comma-dangle': [ 'error', 'always-multiline' ],
'no-unused-vars': [ 'warn' ],
'space-before-function-paren': [ 'error', {
anonymous: 'never',
named: 'never',
asyncArrow: 'always',
} ],
'space-in-parens': [ 'error', 'always' ],
'object-curly-spacing': [ 'error', 'always' ],
'array-bracket-spacing': [ 'error', 'always' ],
semi: [ 'error', 'always' ],
'@typescript-eslint/no-var-requires': [ 'off' ],
'no-only-tests/no-only-tests': 'error',
'spellcheck/spell-checker': [ 'warn', {
comments: true,
strings: false,
identifiers: false,
} ],
},
};