generated from damilaredevone/ts-plugin-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
43 lines (43 loc) · 1.07 KB
/
.eslintrc.cjs
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
module.exports = {
extends: '@damilaredev/eslint-config-typescript',
plugins: ['prettier'],
rules: {
'no-restricted-imports': [
'error',
{
paths: ['path'],
},
],
'import/no-named-as-default': 'off',
quotes: [
0,
'single',
{
avoidEscape: true,
allowTemplateLiterals: true,
},
],
'@typescript-eslint/consistent-type-imports': [
'error',
{ prefer: 'type-imports' },
],
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-extra-semi': 'off',
'no-useless-constructor': 'warn',
'space-before-function-paren': 'off',
'no-console': 'off',
'@typescript-eslint/no-shadow': 'off',
'import/named': 'off',
},
overrides: [
{
// enable the rule specifically for TypeScript files
files: ['*.ts', '*.mts', '*.cts', '*.tsx'],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/indent': 'off',
},
},
],
}