-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc.js
36 lines (34 loc) · 1009 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
"use strict"
module.exports = {
root: true,
extends: "plugin:@mysticatea/es2020",
overrides: [
// Use ES Modules syntax in source code.
{
files: [
"docs/.vuepress/components/**/*.{js,vue}",
"src/**/*.{js,vue}",
],
extends: "plugin:@mysticatea/+modules",
},
// Suppress `@mysticatea/node/no-missing-import` error for `"../../../dist/index.vue"`
{
files: "docs/.vuepress/components/eslint-playground.vue",
rules: {
"@mysticatea/node/no-missing-import": "off",
},
},
// Use the latest espree in vue files.
{
files: "**/*.vue",
parserOptions: {
parser: require.resolve("espree"),
},
},
// Use Node.js stuff in config.js.
{
files: "docs/.vuepress/config.js",
extends: "plugin:@mysticatea/+node",
},
],
}