-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
executable file
·27 lines (27 loc) · 1.05 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
module.exports = {
parser: '@typescript-eslint/parser',
extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
plugins: ['@typescript-eslint', 'prettier'],
env: {
browser: true,
node: true,
es6: true,
},
rules: {
'max-len': [1, { code: 120 }],
'prettier/prettier': 1,
'no-console': ['warn', { allow: ['warn', 'error'] }],
eqeqeq: ['warn', 'always'],
'prefer-const': ['error', { destructuring: 'all', ignoreReadBeforeAssign: true }],
'linebreak-style': 0,
'@typescript-eslint/indent': ['error', 2, { VariableDeclarator: 4, SwitchCase: 1 }],
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/interface-name-prefix': 0,
'@typescript-eslint/explicit-member-accessibility': 0,
'@typescript-eslint/no-triple-slash-reference': 0,
'@typescript-eslint/ban-ts-ignore': 0,
'@typescript-eslint/no-this-alias': 0,
'@typescript-eslint/triple-slash-reference': ['error', { path: 'always', types: 'never', lib: 'never' }],
},
ignorePatterns: ['dist/', 'node_modules/'],
};