This repository has been archived by the owner on May 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.js
92 lines (92 loc) · 1.98 KB
/
.eslintrc.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
module.exports = {
root: true,
env: {
browser: true,
node: true,
jest: true,
},
parserOptions: {
parser: "@babel/eslint-parser",
requireConfigFile: false,
},
extends: [
"@nuxtjs",
"plugin:nuxt/recommended",
"plugin:vuejs-accessibility/recommended",
"plugin:sonarjs/recommended",
"prettier",
"plugin:cypress/recommended",
],
plugins: ["vuejs-accessibility", "promise", "sonarjs", "jest"],
// add your custom rules here
rules: {
"comma-dangle": 0,
semi: ["off"],
quotes: ["off"],
indent: ["off"],
"no-console": 0,
"jsx-a11y/click-events-have-key": "off",
"padded-blocks": ["off"],
"vue/singleline-html-element-content-newline": 0,
"vue/html-indent": 0,
"vue/html-closing-bracket-spacing": 0,
"vue/no-v-html": 0,
"vue/max-attributes-per-line": [
"off",
{
singleline: {
max: 3,
},
multiline: {
max: 3,
},
},
],
"vue/html-closing-bracket-newline": [
"off",
{
singleline: "never",
multiline: "never",
},
],
"vue/multi-word-component-names": [
"warn",
{
ignores: ["Accordion"],
},
],
"vue/html-self-closing": [
"warn",
{
html: {
void: "any",
normal: "any",
component: "any",
},
svg: "always",
math: "always",
},
],
"vue/first-attribute-linebreak": [
"warn",
{
singleline: "ignore",
multiline: "below",
},
],
"vuejs-accessibility/label-has-for": [
"error",
{
components: ["VLabel"],
controlComponents: ["VInput"],
required: {
every: ["id"],
},
allowChildren: false,
},
],
// https://open-wc.org/docs/linting/eslint-plugin-lit-a11y/rules/no-invalid-change-handler/
// Seems to be a thing for older browsers
"vuejs-accessibility/no-onchange": ["off"],
},
}