-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
33 lines (33 loc) · 1.08 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
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2018
},
extends: ['prettier'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
rules: {
camelcase: [1, {properties: 'never'}],
// Temprorarily disable therse rules because of conflict with typescript analogues
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': [
2,
{
args: 'after-used',
argsIgnorePattern: '^_',
ignoreRestSiblings: true,
vars: 'all',
varsIgnorePattern: '^_'
}
],
'@typescript-eslint/no-non-null-assertion': 'warn',
// https://github.com/typescript-eslint/typescript-eslint/issues/1856
'no-use-before-define': 'off',
// https://github.com/typescript-eslint/typescript-eslint/issues/2477#issuecomment-686892459
'no-undef': 'off',
'import/order': 'off',
'comma-dangle': 'off',
'max-params': 'off',
'no-nested-ternary': 'off'
}
};