-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
42 lines (41 loc) · 952 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
module.exports = {
root: true,
env: {
es6: true,
node: true,
},
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
extends: [
'airbnb-base',
'airbnb-typescript/base',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
parserOptions: {
ecmaVersion: 2020,
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
},
plugins: [
'@typescript-eslint',
],
rules: {
'@typescript-eslint/indent': 'off',
'import/prefer-default-export': 'off',
'linebreak-style': 'off',
'no-console': 'off',
'max-len': 'off',
'no-restricted-syntax': 'warn',
indent: [
'error', 4,
],
'no-new': 'off',
},
ignorePatterns: [
'.eslintrc.js',
'local',
],
};