Skip to content

Commit 208a25a

Browse files
committed
feat: better config files
1 parent 81f0cee commit 208a25a

5 files changed

Lines changed: 174 additions & 253 deletions

File tree

.eslintrc.cjs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,18 @@ module.exports = {
66
},
77
parser: '@typescript-eslint/parser',
88
parserOptions: {
9-
ecmaVersion: 15,
9+
ecmaVersion: 'latest',
1010
sourceType: 'module',
1111
project: './tsconfig.json',
1212
},
1313
extends: [
14-
'plugin:prettier/recommended',
1514
'eslint:recommended',
15+
'plugin:prettier/recommended',
1616
'plugin:@typescript-eslint/recommended',
1717
'plugin:@typescript-eslint/recommended-requiring-type-checking',
1818
],
1919
plugins: ['@typescript-eslint'],
2020
rules: {
21-
'no-console': 'off',
2221
'@typescript-eslint/explicit-module-boundary-types': 'off',
2322
'@typescript-eslint/no-explicit-any': 'off',
2423
'@typescript-eslint/restrict-template-expressions': 'off',
@@ -37,6 +36,7 @@ module.exports = {
3736
'@typescript-eslint/restrict-plus-operands': 'off',
3837
'@typescript-eslint/no-non-null-asserted-optional-chain': 'off',
3938
'@typescript-eslint/unbound-method': 'off',
39+
'no-console': 'off',
4040
'no-prototype-builtins': 'off',
4141
'no-inner-declarations': 'off',
4242
'no-constant-condition': 'off',
@@ -47,8 +47,6 @@ module.exports = {
4747
'no-empty': 'off',
4848
'no-irregular-whitespace': 'off',
4949
'no-control-regex': 'off',
50-
'no-useless-escape': 'off',
51-
'no-constant-condition': 'off',
5250
'no-empty-character-class': 'off',
5351
'prefer-rest-params': 'off',
5452
'prettier/prettier': [
@@ -58,4 +56,4 @@ module.exports = {
5856
},
5957
],
6058
},
61-
};
59+
};

0 commit comments

Comments
 (0)