This repository has been archived by the owner on May 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
.eslintrc.js
61 lines (60 loc) · 1.55 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
/* eslint-disable-next-line no-undef */
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
jest: true,
},
extends: [
"eslint:recommended",
"plugin:vue/recommended",
"plugin:json/recommended",
"prettier", // Make sure "prettier" is the last element in this list.
],
// The vue-18n plugin wasn't happy with various json files, so limit it to specific directories
overrides: [
{
files: "{layouts,components}/*",
plugins: ["@intlify/vue-i18n"],
},
],
parserOptions: {
ecmaVersion: 12,
sourceType: "module",
},
plugins: ["vue"],
rules: {
"vue/attributes-order": 0,
"vue/v-slot-style": 0,
"vue/order-in-components": 0,
"vue/html-closing-bracket-newline": [
"error",
{
singleline: "never",
multiline: "never",
},
],
"no-console": "error",
// Details here: https://eslint-plugin-vue-i18n.intlify.dev/rules/no-raw-text.html#rule-details
"@intlify/vue-i18n/no-raw-text": [
"error",
{
// Icons have literal text
ignoreNodes: ["v-icon"],
// Ignore quotes and specific emoji used in design
ignorePattern: '^["✋☕]',
},
],
},
settings: {
"vue-i18n": {
// extension is glob formatting!
localeDir:
"./node_modules/node_modules/@ourjapanlife/findadoc-localization/locales/*.{json}",
// Specify the version of `vue-i18n` you are using.
// If not specified, the message will be parsed twice.
messageSyntaxVersion: "^9.0.0",
},
},
};