-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
30 lines (29 loc) · 863 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
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "prettier", "deprecation"],
parserOptions: {
"ecmaVersion": 2017,
"sourceType": "module",
"project": "./tsconfig.*json"
},
ignorePatterns: ["**/generated/**"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier",
],
rules: {
"no-console": 1, // Means warning
"prettier/prettier": 2, // Means error
"deprecation/deprecation": "warn",
"@typescript-eslint/strict-boolean-expressions": ["error", {"allowString": false, "allowNumber": false, "allowNullableObject": false}],
},
// overrides: [{
// files: ["src/**/*.ts"],
// extends: [
// ],
// parserOptions: {}
// }]
};