-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
63 lines (63 loc) · 1.68 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
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'airbnb-base',
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
],
parser: '@typescript-eslint/parser',
// parserOptions: {
// ecmaVersion: 12,
// sourceType: 'module',
// project: ['./tsconfig.json'],
// },
overrides: [
{
files: ['*.ts', '*.tsx'], // Your TypeScript files extension
parserOptions: {
project: ['./tsconfig.json'], // Specify it only for TypeScript files
},
},
],
plugins: ['@typescript-eslint', 'prettier', 'import'],
settings: {
'import/resolver': {
typescript: {},
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
paths: ['src/', 'node_modules/'],
},
},
},
rules: {
'no-console': 0,
'@typescript-eslint/no-empty-function': 0,
'prettier/prettier': ['warn'],
'import/extensions': 0,
'no-use-before-define': 0,
'@typescript-eslint/no-empty-interface': 0,
'lines-between-class-members': 0,
'import/no-named-as-default': 0,
'no-param-reassign': 0,
'no-plusplus': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'no-explicit-any': 0,
'import/prefer-default-export': 0,
'max-classes-per-file': 0,
'no-shadow': 'off',
'@typescript-eslint/no-shadow': ['error'],
'class-methods-use-this': 0,
'consistent-return': 0,
'no-underscore-dangle': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'no-nested-ternary': 0,
},
};