-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
56 lines (55 loc) · 1.34 KB
/
.eslintrc.cjs
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
require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
node: true,
jest: true,
},
extends: [
"eslint:recommended",
"plugin:vue/vue3-recommended",
"@vue/eslint-config-typescript",
"prettier",
],
parser: "vue-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser",
ecmaVersion: 13,
sourceType: "module",
},
plugins: ["vue"],
rules: {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "warn",
"vue/multi-word-component-names": "off",
"vue/attribute-hyphenation": ["error", "never"],
"vue/v-on-event-hyphenation": ["error", "never"],
"vue/component-definition-name-casing": "off",
"vue/component-name-in-template-casing": [
"warn",
"PascalCase",
{
registeredComponentsOnly: false,
ignores: ["component", "router-link", "router-view"],
},
],
},
globals: {
axios: true,
Echo: true,
},
overrides: [
// cypress should only be linted in cypress/
{
files: ["**/cypress/**/*.js"],
extends: ["plugin:cypress/recommended"],
},
// this keeps jest from linting cypress files
{
files: ["**/resources/assets/js/**/*.js"],
extends: ["plugin:jest/recommended", "plugin:jest/style"],
},
],
};