-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.js
38 lines (38 loc) · 1.04 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
38
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
parserOptions: {
project: ["./tsconfig.eslint.json"] // Specify it only for TypeScript files
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier"
],
rules: {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ varsIgnorePattern: "^_", argsIgnorePattern: "^_", ignoreRestSiblings: true }
],
"@typescript-eslint/no-unnecessary-condition": "error"
},
overrides: [
{
files: ["src/antlr/SqlBaseLexer.ts", "src/antlr/SqlBaseParser.ts"],
rules: {
"no-useless-escape": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-unnecessary-condition": "off"
}
},
{
files: ["src/antlr/SqlBaseParser.ts"],
rules: {
"no-empty": "off"
}
}
]
};