This repository has been archived by the owner on Mar 13, 2023. It is now read-only.
forked from Naartti/apply-to-nested-strings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
66 lines (65 loc) · 1.64 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
module.exports = {
root: true,
parserOptions: {
parser: '@typescript-eslint/parser',
},
env: {
browser: true,
},
extends: [
"standard",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
],
plugins: [
'@typescript-eslint',
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
// allow async-await
'generator-star-spacing': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
indent: [2, 2],
'no-tabs': 0,
'comma-dangle': ['error', 'always-multiline'],
'@typescript-eslint/member-delimiter-style': [1, {
multiline: {
delimiter: 'none',
requireLast: false,
},
singleline: {
delimiter: 'comma',
requireLast: false,
},
}],
'no-unused-vars': 'off',
'no-unused-expressions': 'off',
'@typescript-eslint/no-unused-expressions': 1,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-use-before-define': 0,
'@typescript-eslint/no-extra-semi': 0,
'@typescript-eslint/no-unused-vars': [1, {
vars: 'all',
args: 'after-used',
ignoreRestSiblings: false,
argsIgnorePattern: '^_',
}],
},
overrides: [
{
files: ['*.js'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
},
},
{
files: ['**/*.d.ts'],
rules: {
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "error",
},
}
],
}