-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext.js
33 lines (30 loc) · 1.08 KB
/
ext.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
const mainConfigRules = require("./guard").rules;
module.exports = {
"extends": [
"ts-guard",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"rules": {
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-meaningless-void-operator": "error",
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
"@typescript-eslint/no-unnecessary-condition": "error",
"@typescript-eslint/no-unnecessary-qualifier": "error",
"@typescript-eslint/prefer-return-this-type": "error",
"@typescript-eslint/require-array-sort-compare": [
"error",
{
"ignoreStringArrays": true
}
],
"@typescript-eslint/restrict-plus-operands": [
"error",
{
"checkCompoundAssignments": true
}
],
// Extension Rules
"dot-notation": "off",
"@typescript-eslint/dot-notation": mainConfigRules['dot-notation']
}
};