-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
50 lines (45 loc) · 1.19 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: [
'airbnb-base',
'airbnb-typescript/base',
'plugin:@typescript-eslint/recommended',
'prettier',
],
env: {
browser: true,
},
parserOptions: {
project: './tsconfig.json',
ecmaVersion: 2017,
sourceType: 'module',
ecmaFeatures: {
modules: true,
},
},
rules: {
'max-len': 'off', // just apply common-sense
'no-param-reassign': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: true }], // all dev deps
'no-bitwise': 'off', // for physics masks
// prefer named
'import/prefer-default-export': 'off',
'import/no-default-export': 'error',
'import/no-cycle': 'off', // fix + re-enable
// stylistic preferences
'@typescript-eslint/ban-ts-comment': 'warn',
'no-console': 'warn',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'class-methods-use-this': 'warn',
// tabs instead of spaces
'no-tabs': 'off',
indent: ['error', 'tab', { SwitchCase: 1 }],
'import/extensions': ['error', 'never'],
'no-multi-assign': 'off',
'no-plusplus': 'off',
'no-continue': 'off',
'lines-between-class-members': 'off',
},
};