-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
44 lines (43 loc) · 935 Bytes
/
.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
const { join } = require('path');
module.exports = {
root: true,
env: {
es2021: true,
},
extends: [
'airbnb-base',
'airbnb-typescript/base',
'plugin:import/typescript',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 13,
sourceType: 'module',
project: join(__dirname, 'tsconfig.json'),
},
plugins: [
'@typescript-eslint',
],
rules: {
'@typescript-eslint/no-shadow': ['error'],
'class-methods-use-this': 'off',
'import/extensions': 'off',
'import/no-extraneous-dependencies': ['error', {
devDependencies: ['import/**'],
}],
'max-len': ['error', {
code: 120,
}],
'no-shadow': 'off',
'no-continue': 'off',
'no-plusplus': 'off',
'no-restricted-syntax': [
'off',
{
selector: 'ForOfStatement',
},
],
'semi-style': 'off',
},
};