-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.js
More file actions
49 lines (46 loc) · 1.05 KB
/
Copy patheslint.config.js
File metadata and controls
49 lines (46 loc) · 1.05 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
import { defineConfig } from "eslint/config";
import { createConfig } from "@mutsuntsai/eslint";
export default defineConfig([
...createConfig({
ignores: ["docs/**/*", "lib/**/*.js"],
import: {
files: ["src/**/*.vue", "src/app/**/*.js", "**/*.ts", "./*.js"],
project: [
"src/app",
"src/api",
"src/gen",
"src/vue",
],
},
globals: {
esm: ["./*.{js,ts}", "test/mocha.env.js", "scripts/*.js"],
browser: ["src/**"],
},
html: {
"no-var": "off",
"vars-on-top": "off",
},
mocha: ["test/**"],
playwright: ["e2e/**"],
}),
/////////////////////////////////////////////////////////////////////////////////////////////////////
// Specific scopes
/////////////////////////////////////////////////////////////////////////////////////////////////////
{
files: ["src/app/**/*.js"],
languageOptions: {
globals: {
gtag: true,
isHttps: true,
},
},
},
{
files: ["src/**/*.{ts,vue}"],
rules: {
"@typescript-eslint/explicit-function-return-type": ["warn", {
allowExpressions: true,
}],
},
},
]);