forked from lockdown-systems/cyd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
49 lines (48 loc) · 1.33 KB
/
eslint.config.js
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
const eslint = require("@eslint/js");
const tseslint = require("typescript-eslint");
const pluginVue = require("eslint-plugin-vue");
module.exports = tseslint.config(
{
ignores: [
"src/renderer/.vite/",
"src/renderer/vite.config.ts",
"src/renderer/cypress.config.cjs",
"src/renderer/cypress/",
],
},
eslint.configs.recommended,
...tseslint.configs.recommended,
...pluginVue.configs["flat/recommended"],
{
plugins: {
"typescript-eslint": tseslint.plugin,
},
languageOptions: {
parserOptions: {
parser: tseslint.parser,
project: "./packages/**/tsconfig.json",
extraFileExtensions: [".vue"],
sourceType: "module",
},
},
},
{
// Ignore @typescript-eslint/no-unused-vars that start with underscore
rules: {
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
},
],
// Ignore Vue style rules that conflict with my auto-formatting
"vue/max-attributes-per-line": "off",
"vue/html-indent": "off",
"vue/html-closing-bracket-newline": "off",
"vue/first-attribute-linebreak": "off",
// It's okay for me to use v-html because of no user-provided input in speech bubbles
"vue/no-v-html": "off",
},
}
);