-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
59 lines (59 loc) · 1.53 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
57
58
59
module.exports = {
globals: {
axios: true,
},
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:vue/vue3-recommended",
"prettier",
],
parserOptions: {
ecmaVersion: "latest",
parser: "@typescript-eslint/parser",
sourceType: "module",
},
plugins: ["@typescript-eslint", "vue"],
ignorePatterns: ["resources/js/cla-vue-template"],
rules: {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-empty-function": "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/no-reserved-component-names": "off",
"vue/no-undef-components": [
"error",
{
ignorePatterns: ["router-link", "router-view"],
},
],
"vue/component-name-in-template-casing": [
"warn",
"PascalCase",
{
registeredComponentsOnly: false,
ignores: ["component", "router-link", "router-view"],
},
],
},
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"],
// },
],
};