@rebilly/eslint-config 4.20.11 → 4.21.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/README.md +5 -5
- package/index.cjs +0 -1
- package/package.json +1 -1
- package/prettier.cjs +5 -1
package/README.md
CHANGED
|
@@ -19,11 +19,11 @@ module.exports = [...vueConfig];
|
|
|
19
19
|
|
|
20
20
|
## Configs
|
|
21
21
|
|
|
22
|
-
| Config | Import
|
|
23
|
-
| ---------- |
|
|
24
|
-
| Base | `@rebilly/eslint-config`
|
|
25
|
-
| TypeScript | `@rebilly/eslint-config/typescript`
|
|
26
|
-
| Vue | `@rebilly/eslint-config/vue`
|
|
22
|
+
| Config | Import | Description |
|
|
23
|
+
| ---------- | ----------------------------------- | ----------------------------------------------------------------------------- |
|
|
24
|
+
| Base | `@rebilly/eslint-config` | Base config for all projects, containing generic JavaScript and Vitest rules. |
|
|
25
|
+
| TypeScript | `@rebilly/eslint-config/typescript` | TypeScript projects. |
|
|
26
|
+
| Vue | `@rebilly/eslint-config/vue` | Vue 3 projects written in TypeScript. |
|
|
27
27
|
|
|
28
28
|
## Flat Config Format
|
|
29
29
|
|
package/index.cjs
CHANGED
package/package.json
CHANGED
package/prettier.cjs
CHANGED
|
@@ -8,6 +8,10 @@ module.exports = {
|
|
|
8
8
|
...prettier,
|
|
9
9
|
rules: {
|
|
10
10
|
...prettier.rules,
|
|
11
|
-
quotes: [
|
|
11
|
+
quotes: [
|
|
12
|
+
'error',
|
|
13
|
+
'single',
|
|
14
|
+
{ avoidEscape: true, allowTemplateLiterals: true },
|
|
15
|
+
],
|
|
12
16
|
},
|
|
13
17
|
};
|