generated from fumeapp/laranuxt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
58 lines (48 loc) · 1.62 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
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
extends: [
'plugin:vue/vue3-recommended',
'plugin:@typescript-eslint/recommended',
"@vue/typescript/recommended",
],
rules: {
// allow-dangle (syncs w/ laravel).
'comma-dangle': ['error', 'always-multiline'],
// Only allow curly braces of multi-line statements.
curly: ['error', 'multi'],
// for sanity - allow people to write console.log - DO NOT CHECK IN
'no-console': 'off',
'no-debugger': 'off',
// do not require default for properties
'vue/require-default-prop': 'off',
// lets allow content on the same line for short html
'vue/singleline-html-element-content-newline': 0,
// under discussion
camelcase: 'off',
// Allows for lexical declarations within case/default clauses.
'no-case-declarations': 'off',
// this restrictions functions and classes to be defined before they are used
// this is impossible to have on with model-typer
'no-use-before-define': 'off',
// note you must disable the base rule as it can report incorrect errors
'no-useless-constructor': 'off',
'@typescript-eslint/no-useless-constructor': ['error'],
// https://eslint.vuejs.org/rules/no-v-html.html
'vue/no-v-html': 'off',
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
"vue/max-attributes-per-line": ["error", {
"singleline": {
"max": 3,
},
"multiline": {
"max": 3,
},
}],
// Turn this off until we can figure out how to ignore pages/ and layouts/
"vue/multi-word-component-names": "off",
},
}