@saasmakers/eslint 0.1.55 → 0.1.57
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/eslint.config.cjs +5 -4
- package/dist/eslint.config.d.cts +4 -1
- package/dist/eslint.config.d.mts +4 -1
- package/dist/eslint.config.d.ts +4 -1
- package/dist/eslint.config.mjs +4 -1
- package/dist/index.cjs +1 -14
- package/dist/index.mjs +0 -11
- package/package.json +1 -1
package/dist/eslint.config.cjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
const antfu = require('@antfu/eslint-config');
|
|
6
4
|
const storybook = require('eslint-plugin-storybook');
|
|
7
5
|
|
|
@@ -17,7 +15,10 @@ const eslint_config = antfu__default(
|
|
|
17
15
|
unocss: true,
|
|
18
16
|
vue: {
|
|
19
17
|
a11y: true
|
|
20
|
-
}
|
|
18
|
+
},
|
|
19
|
+
ignores: [
|
|
20
|
+
"apps/api/ace.js"
|
|
21
|
+
]
|
|
21
22
|
},
|
|
22
23
|
...storybook__default.configs["flat/recommended"],
|
|
23
24
|
// Override rules defined by Antfu ESLint config
|
|
@@ -28,4 +29,4 @@ const eslint_config = antfu__default(
|
|
|
28
29
|
}
|
|
29
30
|
);
|
|
30
31
|
|
|
31
|
-
exports
|
|
32
|
+
module.exports = eslint_config;
|
package/dist/eslint.config.d.cts
CHANGED
package/dist/eslint.config.d.mts
CHANGED
package/dist/eslint.config.d.ts
CHANGED
package/dist/eslint.config.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
const require$$0 = require('eslint');
|
|
6
4
|
const require$$1 = require('eslint/use-at-your-own-risk');
|
|
7
5
|
|
|
@@ -14112,7 +14110,6 @@ var distExports = requireDist();
|
|
|
14112
14110
|
const rule$b = {
|
|
14113
14111
|
meta: {
|
|
14114
14112
|
docs: {
|
|
14115
|
-
category: "Stylistic Issues",
|
|
14116
14113
|
description: "Enforce one-line ternaries if under a character limit, multiline otherwise",
|
|
14117
14114
|
recommended: true
|
|
14118
14115
|
},
|
|
@@ -14175,7 +14172,6 @@ const rule$b = {
|
|
|
14175
14172
|
const rule$a = {
|
|
14176
14173
|
meta: {
|
|
14177
14174
|
docs: {
|
|
14178
|
-
category: "Stylistic Issues",
|
|
14179
14175
|
description: "Enforce multiline formatting for union types with more than N items",
|
|
14180
14176
|
recommended: false
|
|
14181
14177
|
},
|
|
@@ -14292,7 +14288,6 @@ function getTestPriority(testName) {
|
|
|
14292
14288
|
const rule$9 = {
|
|
14293
14289
|
meta: {
|
|
14294
14290
|
docs: {
|
|
14295
|
-
category: "Best Practices",
|
|
14296
14291
|
description: "Enforce sorted test functions grouped by method with sorted errors, exceptions and middlewares",
|
|
14297
14292
|
recommended: true
|
|
14298
14293
|
},
|
|
@@ -14445,7 +14440,6 @@ function getAllKeys$1(object, prefix = "") {
|
|
|
14445
14440
|
const rule$8 = {
|
|
14446
14441
|
meta: {
|
|
14447
14442
|
docs: {
|
|
14448
|
-
category: "Possible Errors",
|
|
14449
14443
|
description: "Enforce consistent i18n locale keys across translations",
|
|
14450
14444
|
recommended: true
|
|
14451
14445
|
},
|
|
@@ -14509,7 +14503,6 @@ const rule$8 = {
|
|
|
14509
14503
|
const rule$7 = {
|
|
14510
14504
|
meta: {
|
|
14511
14505
|
docs: {
|
|
14512
|
-
category: "Best Practices",
|
|
14513
14506
|
description: "Enforce using t() instead of $t() in Vue templates",
|
|
14514
14507
|
recommended: true
|
|
14515
14508
|
},
|
|
@@ -14596,7 +14589,6 @@ function sortObjectKeys(object) {
|
|
|
14596
14589
|
const rule$6 = {
|
|
14597
14590
|
meta: {
|
|
14598
14591
|
docs: {
|
|
14599
|
-
category: "Best Practices",
|
|
14600
14592
|
description: "Enforce consistent indentation and sorted keys in i18n blocks",
|
|
14601
14593
|
recommended: true
|
|
14602
14594
|
},
|
|
@@ -14678,7 +14670,6 @@ function getAllKeys(object, prefix = "") {
|
|
|
14678
14670
|
const rule$5 = {
|
|
14679
14671
|
meta: {
|
|
14680
14672
|
docs: {
|
|
14681
|
-
category: "Best Practices",
|
|
14682
14673
|
description: "Detect unused strings in the English locale",
|
|
14683
14674
|
recommended: true
|
|
14684
14675
|
},
|
|
@@ -14790,7 +14781,6 @@ const rule$4 = {
|
|
|
14790
14781
|
const rule$3 = {
|
|
14791
14782
|
meta: {
|
|
14792
14783
|
docs: {
|
|
14793
|
-
category: "Best Practices",
|
|
14794
14784
|
description: "Enforce typed emits in Vue components",
|
|
14795
14785
|
recommended: true
|
|
14796
14786
|
},
|
|
@@ -14840,7 +14830,6 @@ ${typedEvents}
|
|
|
14840
14830
|
const rule$2 = {
|
|
14841
14831
|
meta: {
|
|
14842
14832
|
docs: {
|
|
14843
|
-
category: "Best Practices",
|
|
14844
14833
|
description: "enforce order of compiler macros (`defineProps`, `defineEmits`, etc.)",
|
|
14845
14834
|
recommended: true
|
|
14846
14835
|
},
|
|
@@ -14865,7 +14854,6 @@ const rule$2 = {
|
|
|
14865
14854
|
const rule$1 = {
|
|
14866
14855
|
meta: {
|
|
14867
14856
|
docs: {
|
|
14868
|
-
category: "Best Practices",
|
|
14869
14857
|
description: "Prevent unnecessary props. and $props. prefixes in Vue templates",
|
|
14870
14858
|
recommended: true
|
|
14871
14859
|
},
|
|
@@ -14920,7 +14908,6 @@ const rule$1 = {
|
|
|
14920
14908
|
const rule = {
|
|
14921
14909
|
meta: {
|
|
14922
14910
|
docs: {
|
|
14923
|
-
category: "Best Practices",
|
|
14924
14911
|
description: 'Remove unnecessary ="true" attributes in Vue templates, except for aria- attributes',
|
|
14925
14912
|
recommended: true
|
|
14926
14913
|
},
|
|
@@ -14992,4 +14979,4 @@ const index = {
|
|
|
14992
14979
|
}
|
|
14993
14980
|
};
|
|
14994
14981
|
|
|
14995
|
-
exports
|
|
14982
|
+
module.exports = index;
|
package/dist/index.mjs
CHANGED
|
@@ -14103,7 +14103,6 @@ var distExports = requireDist();
|
|
|
14103
14103
|
const rule$b = {
|
|
14104
14104
|
meta: {
|
|
14105
14105
|
docs: {
|
|
14106
|
-
category: "Stylistic Issues",
|
|
14107
14106
|
description: "Enforce one-line ternaries if under a character limit, multiline otherwise",
|
|
14108
14107
|
recommended: true
|
|
14109
14108
|
},
|
|
@@ -14166,7 +14165,6 @@ const rule$b = {
|
|
|
14166
14165
|
const rule$a = {
|
|
14167
14166
|
meta: {
|
|
14168
14167
|
docs: {
|
|
14169
|
-
category: "Stylistic Issues",
|
|
14170
14168
|
description: "Enforce multiline formatting for union types with more than N items",
|
|
14171
14169
|
recommended: false
|
|
14172
14170
|
},
|
|
@@ -14283,7 +14281,6 @@ function getTestPriority(testName) {
|
|
|
14283
14281
|
const rule$9 = {
|
|
14284
14282
|
meta: {
|
|
14285
14283
|
docs: {
|
|
14286
|
-
category: "Best Practices",
|
|
14287
14284
|
description: "Enforce sorted test functions grouped by method with sorted errors, exceptions and middlewares",
|
|
14288
14285
|
recommended: true
|
|
14289
14286
|
},
|
|
@@ -14436,7 +14433,6 @@ function getAllKeys$1(object, prefix = "") {
|
|
|
14436
14433
|
const rule$8 = {
|
|
14437
14434
|
meta: {
|
|
14438
14435
|
docs: {
|
|
14439
|
-
category: "Possible Errors",
|
|
14440
14436
|
description: "Enforce consistent i18n locale keys across translations",
|
|
14441
14437
|
recommended: true
|
|
14442
14438
|
},
|
|
@@ -14500,7 +14496,6 @@ const rule$8 = {
|
|
|
14500
14496
|
const rule$7 = {
|
|
14501
14497
|
meta: {
|
|
14502
14498
|
docs: {
|
|
14503
|
-
category: "Best Practices",
|
|
14504
14499
|
description: "Enforce using t() instead of $t() in Vue templates",
|
|
14505
14500
|
recommended: true
|
|
14506
14501
|
},
|
|
@@ -14587,7 +14582,6 @@ function sortObjectKeys(object) {
|
|
|
14587
14582
|
const rule$6 = {
|
|
14588
14583
|
meta: {
|
|
14589
14584
|
docs: {
|
|
14590
|
-
category: "Best Practices",
|
|
14591
14585
|
description: "Enforce consistent indentation and sorted keys in i18n blocks",
|
|
14592
14586
|
recommended: true
|
|
14593
14587
|
},
|
|
@@ -14669,7 +14663,6 @@ function getAllKeys(object, prefix = "") {
|
|
|
14669
14663
|
const rule$5 = {
|
|
14670
14664
|
meta: {
|
|
14671
14665
|
docs: {
|
|
14672
|
-
category: "Best Practices",
|
|
14673
14666
|
description: "Detect unused strings in the English locale",
|
|
14674
14667
|
recommended: true
|
|
14675
14668
|
},
|
|
@@ -14781,7 +14774,6 @@ const rule$4 = {
|
|
|
14781
14774
|
const rule$3 = {
|
|
14782
14775
|
meta: {
|
|
14783
14776
|
docs: {
|
|
14784
|
-
category: "Best Practices",
|
|
14785
14777
|
description: "Enforce typed emits in Vue components",
|
|
14786
14778
|
recommended: true
|
|
14787
14779
|
},
|
|
@@ -14831,7 +14823,6 @@ ${typedEvents}
|
|
|
14831
14823
|
const rule$2 = {
|
|
14832
14824
|
meta: {
|
|
14833
14825
|
docs: {
|
|
14834
|
-
category: "Best Practices",
|
|
14835
14826
|
description: "enforce order of compiler macros (`defineProps`, `defineEmits`, etc.)",
|
|
14836
14827
|
recommended: true
|
|
14837
14828
|
},
|
|
@@ -14856,7 +14847,6 @@ const rule$2 = {
|
|
|
14856
14847
|
const rule$1 = {
|
|
14857
14848
|
meta: {
|
|
14858
14849
|
docs: {
|
|
14859
|
-
category: "Best Practices",
|
|
14860
14850
|
description: "Prevent unnecessary props. and $props. prefixes in Vue templates",
|
|
14861
14851
|
recommended: true
|
|
14862
14852
|
},
|
|
@@ -14911,7 +14901,6 @@ const rule$1 = {
|
|
|
14911
14901
|
const rule = {
|
|
14912
14902
|
meta: {
|
|
14913
14903
|
docs: {
|
|
14914
|
-
category: "Best Practices",
|
|
14915
14904
|
description: 'Remove unnecessary ="true" attributes in Vue templates, except for aria- attributes',
|
|
14916
14905
|
recommended: true
|
|
14917
14906
|
},
|