Repository navigation
Expand file tree
/
Copy patheslint.config.js
More file actions
65 lines (64 loc) · 1.51 KB
/
Copy patheslint.config.js
File metadata and controls
65 lines (64 loc) · 1.51 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
55
56
57
58
59
60
61
62
63
64
65
import globals from "globals";
import pluginJs from "@eslint/js";
import Import from "eslint-plugin-import";
export default [
pluginJs.configs.recommended,
{
settings: {
'import/resolver': {
alias: {
map: [
[ "flatten-js", "./node_modules/@flatten-js/core/dist/main.mjs" ],
[ "gl-matrix", "./node_modules/gl-matrix/esm" ]
]
}
}
},
languageOptions: {
globals: { ...globals.browser },
ecmaVersion: "latest",
sourceType: "module"
},
plugins: {
Import
},
rules: {
"camelcase": "off",
"curly": "off",
"dot-notation": "warn",
"Import/no-unresolved": "warn",
"Import/named": "error",
"Import/namespace": "error",
"Import/default": "error",
"Import/export": "error",
"Import/no-named-as-default": "warn",
"Import/no-named-as-default-member": "warn",
"Import/no-duplicates": "warn",
"Import/first": "off",
"new-cap": "off",
"no-alert": "off",
"no-console": "off",
"no-debugger": "error",
"no-eval": "warn",
"no-fallthrough": "off",
"no-global-assign": "off",
"no-loop-func": "warn",
"no-mixed-spaces-and-tabs": "off",
"no-new": "off",
"no-prototype-builtins": "off",
"no-redeclare": [
"error",
{
"builtinGlobals": false
}
],
"no-trailing-spaces": "warn",
"no-underscore-dangle": "off",
"no-unused-vars": "off",
"no-useless-escape": "warn",
"no-use-before-define": "off",
"quotes": "off",
"strict": "off"
}
}
];