-
Notifications
You must be signed in to change notification settings - Fork 853
Expand file tree
/
Copy patheslint.config.mjs
More file actions
47 lines (46 loc) · 1.38 KB
/
eslint.config.mjs
File metadata and controls
47 lines (46 loc) · 1.38 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
import importPlugin from "eslint-plugin-import";
export default [
{
files: ["webpack/**/*.{js,ts,jsx,tsx}", "svelte/**/*.{js,ts,jsx,tsx}"],
ignores: ["**/tests/**"],
plugins: {
import: importPlugin,
},
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
globals: {
// Browser globals
document: "readonly",
window: "readonly",
// Node.js globals
process: "readonly",
global: "readonly",
// Project-specific globals
Mzp: "readonly",
$: "readonly",
jQuery: "readonly",
gettext: "readonly",
interpolate: "readonly",
Mozilla: "readonly",
_gaq: "readonly",
RICKSHAW_NO_COMPAT: "readonly",
d: "readonly",
},
},
settings: {
"import/resolver": {
webpack: {
config: "./webpack.common.js",
},
},
},
rules: {
"no-undef": 2,
"import/extensions": ["error", "ignorePackages", { svelte: "always" }],
"import/first": 2,
"import/no-self-import": 2,
"import/no-cycle": 2,
},
},
];