@tb-dev/eslint-config 3.4.0 → 3.4.2
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/dist/index.cjs +8 -7
- package/dist/index.js +8 -7
- package/package.json +7 -8
package/dist/index.cjs
CHANGED
|
@@ -287,8 +287,8 @@ async function perfectionist(options) {
|
|
|
287
287
|
async function typescript(options) {
|
|
288
288
|
const { project, overrides } = options;
|
|
289
289
|
const [tsParser, tsPlugin] = await Promise.all([
|
|
290
|
-
|
|
291
|
-
|
|
290
|
+
interopDefault(import("@typescript-eslint/parser")),
|
|
291
|
+
interopDefault(import("@typescript-eslint/eslint-plugin"))
|
|
292
292
|
]);
|
|
293
293
|
const files = [Glob.TYPESCRIPT];
|
|
294
294
|
if (options.vue)
|
|
@@ -350,7 +350,8 @@ async function typescript(options) {
|
|
|
350
350
|
"error",
|
|
351
351
|
{
|
|
352
352
|
selector: ["classProperty", "variable"],
|
|
353
|
-
format: ["strictCamelCase", "UPPER_CASE"]
|
|
353
|
+
format: ["strictCamelCase", "UPPER_CASE"],
|
|
354
|
+
leadingUnderscore: "allowSingleOrDouble"
|
|
354
355
|
},
|
|
355
356
|
{
|
|
356
357
|
selector: ["classicAccessor", "classMethod", "function", "parameter", "parameterProperty"],
|
|
@@ -663,9 +664,9 @@ async function vue(options) {
|
|
|
663
664
|
return [];
|
|
664
665
|
const [vuePlugin, vueParser, tsParser] = await Promise.all([
|
|
665
666
|
// @ts-expect-error no types
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
667
|
+
interopDefault(import("eslint-plugin-vue")),
|
|
668
|
+
interopDefault(import("vue-eslint-parser")),
|
|
669
|
+
interopDefault(import("@typescript-eslint/parser"))
|
|
669
670
|
]);
|
|
670
671
|
const rules = {
|
|
671
672
|
...vuePlugin.configs.base.rules,
|
|
@@ -709,7 +710,7 @@ async function vue(options) {
|
|
|
709
710
|
"vue/define-macros-order": [
|
|
710
711
|
"error",
|
|
711
712
|
{
|
|
712
|
-
order: ["defineOptions", "
|
|
713
|
+
order: ["defineOptions", "defineProps", "defineModel", "defineEmits", "defineSlots"],
|
|
713
714
|
defineExposeLast: true
|
|
714
715
|
}
|
|
715
716
|
],
|
package/dist/index.js
CHANGED
|
@@ -264,8 +264,8 @@ async function perfectionist(options) {
|
|
|
264
264
|
async function typescript(options) {
|
|
265
265
|
const { project, overrides } = options;
|
|
266
266
|
const [tsParser, tsPlugin] = await Promise.all([
|
|
267
|
-
|
|
268
|
-
|
|
267
|
+
interopDefault(import("@typescript-eslint/parser")),
|
|
268
|
+
interopDefault(import("@typescript-eslint/eslint-plugin"))
|
|
269
269
|
]);
|
|
270
270
|
const files = [Glob.TYPESCRIPT];
|
|
271
271
|
if (options.vue)
|
|
@@ -327,7 +327,8 @@ async function typescript(options) {
|
|
|
327
327
|
"error",
|
|
328
328
|
{
|
|
329
329
|
selector: ["classProperty", "variable"],
|
|
330
|
-
format: ["strictCamelCase", "UPPER_CASE"]
|
|
330
|
+
format: ["strictCamelCase", "UPPER_CASE"],
|
|
331
|
+
leadingUnderscore: "allowSingleOrDouble"
|
|
331
332
|
},
|
|
332
333
|
{
|
|
333
334
|
selector: ["classicAccessor", "classMethod", "function", "parameter", "parameterProperty"],
|
|
@@ -640,9 +641,9 @@ async function vue(options) {
|
|
|
640
641
|
return [];
|
|
641
642
|
const [vuePlugin, vueParser, tsParser] = await Promise.all([
|
|
642
643
|
// @ts-expect-error no types
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
644
|
+
interopDefault(import("eslint-plugin-vue")),
|
|
645
|
+
interopDefault(import("vue-eslint-parser")),
|
|
646
|
+
interopDefault(import("@typescript-eslint/parser"))
|
|
646
647
|
]);
|
|
647
648
|
const rules = {
|
|
648
649
|
...vuePlugin.configs.base.rules,
|
|
@@ -686,7 +687,7 @@ async function vue(options) {
|
|
|
686
687
|
"vue/define-macros-order": [
|
|
687
688
|
"error",
|
|
688
689
|
{
|
|
689
|
-
order: ["defineOptions", "
|
|
690
|
+
order: ["defineOptions", "defineProps", "defineModel", "defineEmits", "defineSlots"],
|
|
690
691
|
defineExposeLast: true
|
|
691
692
|
}
|
|
692
693
|
],
|
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tb-dev/eslint-config",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.2",
|
|
4
4
|
"description": "ESLint config",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"private": false,
|
|
8
|
-
"packageManager": "pnpm@8.15.5",
|
|
9
8
|
"homepage": "https://github.com/ferreira-tb/eslint-config",
|
|
10
9
|
"repository": {
|
|
11
10
|
"type": "git",
|
|
@@ -25,24 +24,24 @@
|
|
|
25
24
|
"eslint-plugin-unicorn": "^52.0.0",
|
|
26
25
|
"eslint-plugin-vitest": "^0.4.1",
|
|
27
26
|
"eslint-plugin-vue": "^9.24.0",
|
|
28
|
-
"globals": "^15.
|
|
27
|
+
"globals": "^15.1.0",
|
|
29
28
|
"vue-eslint-parser": "^9.4.2"
|
|
30
29
|
},
|
|
31
30
|
"devDependencies": {
|
|
32
31
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
33
|
-
"@types/node": "^20.12.
|
|
32
|
+
"@types/node": "^20.12.8",
|
|
34
33
|
"eslint": "^8.57.0",
|
|
35
34
|
"husky": "^9.0.11",
|
|
36
35
|
"lint-staged": "^15.2.2",
|
|
37
36
|
"prettier": "^3.2.5",
|
|
38
37
|
"tslib": "^2.6.2",
|
|
39
|
-
"typescript": "^5.4.
|
|
40
|
-
"vite": "^5.2.
|
|
41
|
-
"vite-plugin-dts": "^3.
|
|
38
|
+
"typescript": "^5.4.5",
|
|
39
|
+
"vite": "^5.2.11",
|
|
40
|
+
"vite-plugin-dts": "^3.9.0"
|
|
42
41
|
},
|
|
43
42
|
"peerDependencies": {
|
|
44
43
|
"eslint": "^8.57.0",
|
|
45
|
-
"typescript": "^5.
|
|
44
|
+
"typescript": "^5.4.0"
|
|
46
45
|
},
|
|
47
46
|
"engines": {
|
|
48
47
|
"node": ">=20"
|