/
.eslintrc.js
38 lines (38 loc) · 1.08 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
module.exports = {
root: true,
overrides: [
{
files: ['*.js', '*.ts', '*.cjs'],
},
],
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
ecmaVersion: 'latest',
},
plugins: [
'@typescript-eslint',
],
extends: [
'airbnb-base',
'plugin:import/typescript',
],
rules: {
// ES
'linebreak-style': 'off',
'no-console': 'off',
indent: ['error', 4, { MemberExpression: 'off', SwitchCase: 1 }],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['warn'],
'arrow-parens': ['error', 'as-needed'],
'brace-style': ['error', 'stroustrup'],
'nonblock-statement-body-position': ['error', 'below'],
'max-len': 'off',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': ['error'],
// Import
'import/prefer-default-export': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'import/extensions': 'off',
},
};