-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
26 lines (26 loc) · 850 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
module.exports = {
env: {
node: true,
},
parser: "@typescript-eslint/parser",
plugins: [
'import',
'@typescript-eslint',
],
parserOptions: {
// follow the recommandation https://github.com/typescript-eslint/typescript-eslint/issues/890
project: './tsconfig.eslint.json',
},
extends: [
'airbnb-typescript/base',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/ban-ts-comment": "off",
// this rule usualy differnt with TS formatter, open this if you are using eslint as formatter
"@typescript-eslint/indent": "off",
"@typescript-eslint/no-use-before-define": ["error", { "functions": false }]
},
};