-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
51 lines (49 loc) · 1.15 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
module.exports = {
root: true,
extends: [
"alloy",
"alloy/vue",
"alloy/typescript",
"plugin:tailwindcss/recommended",
],
parser: "vue-eslint-parser",
parserOptions: {
parser: {
js: "@babel/eslint-parser",
jsx: "@babel/eslint-parser",
ts: "@typescript-eslint/parser",
tsx: "@typescript-eslint/parser",
// Leave the template parser unspecified, so that it could be determined by `<script lang="...">`
},
},
env: {
// Your environments (which contains several predefined global variables)
//
// browser: true,
// node: true,
// mocha: true,
// jest: true,
// jquery: true
},
globals: {
// Your global variables (setting to false means it's not allowed to be reassigned)
//
// myGlobal: false
useHead: true,
defineNuxtConfig: true,
},
rules: {
// Customize your rules
//
// Please keep this rule off because it requiresTypeChecking
// https://github.com/vuejs/vue-eslint-parser/issues/104
// https://github.com/typescript-eslint/typescript-eslint/pull/5318
"@typescript-eslint/prefer-optional-chain": "off",
"vue/no-duplicate-attributes": [
"error",
{
allowCoexistClass: true,
},
],
},
};