@byloth/eslint-config-nuxt 3.1.0 → 3.2.0-rc.1

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.
Files changed (3) hide show
  1. package/index.d.ts +1 -1
  2. package/index.mjs +42 -3
  3. package/package.json +4 -5
package/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import type { Linter } from "eslint";
2
2
 
3
- export default Readonly<Linter.RulesRecord>[];
3
+ export default Array<Linter.Config>;
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/main/packages/eslint-plugin/src/configs/eslint-recommended.ts
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,45 @@ 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
+ }, {
31
+ files: ["**/*.vue"],
32
+ rules: {
33
+ "vue/multiline-html-element-content-newline": ["error", {
34
+ ignoreWhenEmpty: true,
35
+ ignores: [
36
+ "pre",
37
+ "textarea",
38
+ "router-link",
39
+ "RouterLink",
40
+ "nuxt-link",
41
+ "NuxtLink",
42
+ "u-link",
43
+ "ULink",
44
+
45
+ ...INLINE_ELEMENTS
46
+ ],
47
+ allowEmptyLines: false
48
+ }],
49
+ "vue/singleline-html-element-content-newline": ["error", {
50
+ ignoreWhenNoAttributes: true,
51
+ ignoreWhenEmpty: true,
52
+ ignores: [
53
+ "pre",
54
+ "textarea",
55
+ "router-link",
56
+ "RouterLink",
57
+ "nuxt-link",
58
+ "NuxtLink",
59
+ "u-link",
60
+ "ULink",
61
+
62
+ ...INLINE_ELEMENTS
63
+ ],
64
+ externalIgnores: []
65
+ }],
27
66
  }
28
67
  }, {
29
68
  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.1.0",
3
+ "version": "3.2.0-rc.1",
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.1.0",
36
- "@byloth/eslint-config-vue": "3.1.0"
37
- },
38
- "packageManager": "pnpm@9.12.1+sha512.e5a7e52a4183a02d5931057f7a0dbff9d5e9ce3161e33fa68ae392125b79282a8a8a470a51dfc8a0ed86221442eb2fb57019b0990ed24fab519bf0e1bc5ccfc4"
35
+ "@byloth/eslint-config-typescript": "3.2.0-rc.1",
36
+ "@byloth/eslint-config-vue": "3.2.0-rc.1"
37
+ }
39
38
  }