forked from camel-tooling/camel-dap-client-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
60 lines (60 loc) · 1.54 KB
/
.eslintrc.json
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "commonjs",
"project": "./tsconfig.json",
"ecmaFeatures": {
"impliedStrict": true
}
},
"env": {
"browser": true,
"es2022": true,
"mocha": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript"
],
"plugins": [
"@typescript-eslint",
"eslint-plugin-import", // required by no-extraneous-dependencies
"@stylistic",
"chai-friendly"
],
"rules": {
"@typescript-eslint/no-var-requires": "off", /** allows require statements outside of imports **/
"no-async-promise-executor": "off", /* Deactivated for now as i do not know how to fix it safely*/
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "variable",
"format": ["camelCase", "UPPER_CASE"]
}
],
"@stylistic/semi": "warn",
"curly": "warn",
"eqeqeq": "warn",
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"no-throw-literal": "warn",
"@typescript-eslint/no-floating-promises": "warn",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/test/**",
"**/ui-test/**"
],
"optionalDependencies": false,
"peerDependencies": false
}
],
"no-unused-expressions": 0, // disable original rule, use the chai friendly one
"chai-friendly/no-unused-expressions": 2
}
}