@byloth/eslint-config-nuxt 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1 -1
- package/index.mjs +17 -3
- package/package.json +4 -5
package/index.d.ts
CHANGED
package/index.mjs
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import eslintTs from "@byloth/eslint-config-typescript";
|
|
2
|
-
import eslintVue from "@byloth/eslint-config-vue";
|
|
2
|
+
import eslintVue, { INLINE_ELEMENTS } from "@byloth/eslint-config-vue";
|
|
3
3
|
|
|
4
4
|
export default [...eslintTs, ...eslintVue, {
|
|
5
5
|
|
|
6
6
|
// Include TypeScript ESLint rules in `*.vue` files...
|
|
7
|
-
// - https://github.com/typescript-eslint/typescript-eslint/blob/
|
|
7
|
+
// - https://github.com/typescript-eslint/typescript-eslint/blob/42527dfe3ca7e0e10b306849251db57b92e3e545/packages/eslint-plugin/src/configs/eslint-recommended-raw.ts
|
|
8
8
|
//
|
|
9
9
|
files: ["**/*.vue"],
|
|
10
10
|
rules: {
|
|
11
11
|
"constructor-super": "off",
|
|
12
12
|
"getter-return": "off",
|
|
13
|
+
"no-class-assign": "off",
|
|
13
14
|
"no-const-assign": "off",
|
|
14
15
|
"no-dupe-args": "off",
|
|
15
16
|
"no-dupe-class-members": "off",
|
|
@@ -23,7 +24,20 @@ export default [...eslintTs, ...eslintVue, {
|
|
|
23
24
|
"no-this-before-super": "off",
|
|
24
25
|
"no-undef": "off",
|
|
25
26
|
"no-unreachable": "off",
|
|
26
|
-
"no-unsafe-negation": "off"
|
|
27
|
+
"no-unsafe-negation": "off",
|
|
28
|
+
"no-with": "off",
|
|
29
|
+
|
|
30
|
+
"vue/multiline-html-element-content-newline": ["error", {
|
|
31
|
+
ignoreWhenEmpty: true,
|
|
32
|
+
ignores: ["pre", "textarea", "router-link", "RouterLink", "nuxt-link", "NuxtLink", "u-link", "ULink", ...INLINE_ELEMENTS],
|
|
33
|
+
allowEmptyLines: false
|
|
34
|
+
}],
|
|
35
|
+
"vue/singleline-html-element-content-newline": ["error", {
|
|
36
|
+
ignoreWhenNoAttributes: true,
|
|
37
|
+
ignoreWhenEmpty: true,
|
|
38
|
+
ignores: ["pre", "textarea", "router-link", "RouterLink", "nuxt-link", "NuxtLink", "u-link", "ULink", ...INLINE_ELEMENTS],
|
|
39
|
+
externalIgnores: []
|
|
40
|
+
}],
|
|
27
41
|
}
|
|
28
42
|
}, {
|
|
29
43
|
files: ["**/app.vue", "**/error.vue", "**/layouts/**/*.vue", "**/pages/**/*.vue"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byloth/eslint-config-nuxt",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "A collection of some common sense linting rules for Nuxt.js projects. ✔",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ESLint",
|
|
@@ -32,8 +32,7 @@
|
|
|
32
32
|
"main": "index.mjs",
|
|
33
33
|
"types": "index.d.ts",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@byloth/eslint-config-typescript": "3.
|
|
36
|
-
"@byloth/eslint-config-vue": "3.
|
|
37
|
-
}
|
|
38
|
-
"packageManager": "pnpm@9.12.1+sha512.e5a7e52a4183a02d5931057f7a0dbff9d5e9ce3161e33fa68ae392125b79282a8a8a470a51dfc8a0ed86221442eb2fb57019b0990ed24fab519bf0e1bc5ccfc4"
|
|
35
|
+
"@byloth/eslint-config-typescript": "3.2.0",
|
|
36
|
+
"@byloth/eslint-config-vue": "3.2.0"
|
|
37
|
+
}
|
|
39
38
|
}
|