forked from hpi-schul-cloud/nuxt-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
44 lines (44 loc) · 984 Bytes
/
.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
module.exports = {
root: true,
extends: ["@schul-cloud/eslint-config/javascriptVue"],
rules: {
"vue/require-direct-export": "off",
},
overrides: [
{
files: ["**/*.vue"],
rules: {
"max-lines": [
"warn",
{ max: 500, skipBlankLines: true, skipComments: true },
],
},
},
{
files: ["**/*.stories.js"],
rules: {
"max-lines": [
"warn",
{ max: 500, skipBlankLines: true, skipComments: true },
],
},
},
{
files: ["**/*.unit.js"],
extends: ["@schul-cloud/eslint-config/javascriptJest"],
globals: {
mount: false,
shallowMount: false,
createComponentMocks: false,
},
rules: {
// you should be allowed to write as much tests as needed
"max-lines": 0,
// the following rules do not understand spreading - https://github.com/jest-community/eslint-plugin-jest/issues/518
"jest/expect-expect": "off",
"jest/no-disabled-tests": "off",
"jest/valid-title": "off",
},
},
],
};