forked from guacsec/trustify-da-javascript-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
54 lines (53 loc) · 1.25 KB
/
Copy patheslint.config.js
File metadata and controls
54 lines (53 loc) · 1.25 KB
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
import js from "@eslint/js";
import importPlugin from "eslint-plugin-import-x";
import globals from "globals";
export default [
js.configs.recommended,
{
plugins: {
"import-x": importPlugin,
},
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.node,
...globals.mocha,
...globals.es2021,
},
},
rules: {
...importPlugin.configs.recommended.rules,
"no-unused-vars": ["error", { "caughtErrors": "none" }],
"preserve-caught-error": "off",
// editorconfig enforcement (replaces eslint-plugin-editorconfig)
"eol-last": ["error", "always"],
"indent": ["error", "tab"],
"linebreak-style": ["error", "unix"],
"no-trailing-spaces": "error",
"unicode-bom": ["error", "never"],
"curly": "warn",
"eqeqeq": ["warn", "always", {"null": "never"}],
"no-throw-literal": "warn",
"import-x/order": ["warn", {
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true,
},
}],
},
settings: {
"typescript": {},
"import-x/resolver": {
"typescript": {
"extensions": [".js"],
},
},
},
},
{
ignores: ["index.js", "dist/**"],
},
];