Skip to content

Commit 04c6bd5

Browse files
author
devgioele
committed
add rules to ts preset
1 parent 7b818a8 commit 04c6bd5

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

ts.js

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,27 @@ module.exports = {
1111
sourceType: 'module',
1212
ecmaVersion: 2020
1313
},
14-
overrides: [
15-
{
16-
extends: [
17-
'plugin:@typescript-eslint/recommended-requiring-type-checking'
18-
],
19-
files: ['./**/*.{ts,tsx}']
20-
}
21-
],
14+
plugins: ['@typescript-eslint'],
2215
env: {
2316
node: true,
2417
browser: true,
2518
es6: true,
2619
commonjs: true
2720
},
28-
plugins: ['@typescript-eslint'],
2921
settings: {
3022
'import/resolver': {
3123
typescript: true,
3224
node: true
3325
}
3426
},
27+
overrides: [
28+
{
29+
extends: [
30+
'plugin:@typescript-eslint/recommended-requiring-type-checking'
31+
],
32+
files: ['./**/*.{ts,tsx}']
33+
}
34+
],
3535
rules: {
3636
'@typescript-eslint/no-unused-vars': [
3737
'error',
@@ -61,6 +61,10 @@ module.exports = {
6161
{
6262
allowNullableBoolean: true
6363
}
64-
]
64+
],
65+
'no-implicit-coercion': 'error',
66+
curly: ['error', 'all'],
67+
'object-shorthand': ['error'],
68+
eqeqeq: 'error'
6569
}
6670
}

0 commit comments

Comments
 (0)