-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
37 lines (36 loc) · 1.05 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
const path = require('path');
const currentPath = path.resolve(__dirname);
module.exports = {
env: {
node: true,
commonjs: true
},
extends: [
'airbnb-base',
'airbnb-typescript/base',
'plugin:@typescript-eslint/recommended',
'plugin:import/typescript',
],
overrides: [],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: path.join(currentPath, 'tsconfig.json')
},
plugins: ['prettier', '@typescript-eslint'],
rules: {
'class-methods-use-this': 'off',
'import/prefer-default-export': 'off',
'max-classes-per-file': 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-function-return-types': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'linebreak-style':'off',
'@typescript-eslint/comma-dangle':'off',
'curly':'off',
'nonblock-statement-body-position':'off'
}
};