-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc
33 lines (33 loc) · 1.16 KB
/
.eslintrc
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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"tsconfigRootDir": "./"
},
"plugins": ["@typescript-eslint", "prettier"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier"
],
"env": {
"node": true,
"es6": true
},
"rules": {
// more accurate and less maintenance to let the type be deduced by TypeScript
"@typescript-eslint/explicit-function-return-type": "off",
// “hoisting” is not an issue with ES6
"@typescript-eslint/no-use-before-define": "off",
// database model properties are never camelcase
"@typescript-eslint/camelcase": "off",
// false positives in idiomatic code https://github.com/eslint/eslint/issues/11899
"require-atomic-updates": "off",
// makes code less clear, no evidence it’s faster: https://bit.ly/2kAohRM
"@typescript-eslint/prefer-regexp-exec": "off",
// for this specific use case, we don’t prefer includes
"@typescript-eslint/prefer-includes": "off"
}
}