forked from pokeclicker/pokeclicker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
52 lines (52 loc) · 1.99 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
module.exports = {
root: true,
'env': {
'browser': true,
'es6': true,
'es2020': true,
},
'globals': {
'Atomics': 'readonly',
'SharedArrayBuffer': 'readonly',
},
'parser': '@typescript-eslint/parser',
'parserOptions': {
'project': [
'./tsconfig.eslint.json',
'./tsconfig.json',
],
},
'extends': ['plugin:@typescript-eslint/recommended'],
'rules': {
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/triple-slash-reference': 'off',
'@typescript-eslint/consistent-type-assertions': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/naming-convention': ['error', {'selector': 'variable', 'format': ['camelCase', 'UPPER_CASE', 'PascalCase']}],
'indent': ['error', 4, { 'SwitchCase': 1 }],
'no-trailing-spaces': 'error',
'eol-last': ['error', 'always'],
'array-bracket-newline': ['error', { 'multiline': true }],
'comma-dangle': ['error', { 'arrays': 'always-multiline', 'objects': 'always-multiline', 'imports': 'always-multiline', 'exports': 'always-multiline' }],
'quotes': ['error', 'single', { 'avoidEscape': true }],
'no-useless-concat': 'error',
'prefer-template': 'error',
'template-curly-spacing': ['error', 'never'],
'curly': 'error',
'brace-style': 'error',
'semi': 'error',
'space-before-blocks': ['error', 'always'],
'keyword-spacing': 'error',
'no-tabs': 'error',
'array-bracket-spacing': ['error', 'never'],
'space-infix-ops': 'error',
'arrow-spacing': 'error',
'semi-spacing': 'error',
'quotes': ['error', 'single'],
'prefer-arrow-callback': 'error',
'no-alert': 'error',
},
};