@so1ve/eslint-config 3.3.0 → 3.3.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.
- package/dist/index.d.ts +10 -0
- package/dist/index.js +1 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -2954,6 +2954,11 @@ interface RuleOptions {
|
|
|
2954
2954
|
* @see require-async-with-await
|
|
2955
2955
|
*/
|
|
2956
2956
|
'so1ve/require-async-with-await'?: Linter.RuleEntry<[]>;
|
|
2957
|
+
/**
|
|
2958
|
+
* Sort attributes of root <script>, <template>, and <style> elements in Vue files.
|
|
2959
|
+
* @see vue-root-element-sort-attributes
|
|
2960
|
+
*/
|
|
2961
|
+
'so1ve/vue-root-element-sort-attributes'?: Linter.RuleEntry<So1VeVueRootElementSortAttributes>;
|
|
2957
2962
|
/**
|
|
2958
2963
|
* Disallow early returns in components. Solid components only run once, and so conditionals should be inside JSX.
|
|
2959
2964
|
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/components-return-once.md
|
|
@@ -9138,6 +9143,11 @@ type SemiSpacing = [] | [{
|
|
|
9138
9143
|
}];
|
|
9139
9144
|
// ----- semi-style -----
|
|
9140
9145
|
type SemiStyle = [] | [("last" | "first")];
|
|
9146
|
+
// ----- so1ve/vue-root-element-sort-attributes -----
|
|
9147
|
+
type So1VeVueRootElementSortAttributes = [] | [{
|
|
9148
|
+
script?: string[];
|
|
9149
|
+
[k: string]: unknown | undefined;
|
|
9150
|
+
}];
|
|
9141
9151
|
// ----- solid/event-handlers -----
|
|
9142
9152
|
type SolidEventHandlers = [] | [{
|
|
9143
9153
|
ignoreCase?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -1406,6 +1406,7 @@ async function vue({ overrides, typescript: typescript$1 } = {}) {
|
|
|
1406
1406
|
math: "always"
|
|
1407
1407
|
}],
|
|
1408
1408
|
"vue/no-useless-concat": "error",
|
|
1409
|
+
"so1ve/vue-root-element-sort-attributes": "error",
|
|
1409
1410
|
"vue/no-multiple-template-root": "off",
|
|
1410
1411
|
"vue/multiline-html-element-content-newline": "off",
|
|
1411
1412
|
"vue/singleline-html-element-content-newline": "off",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@so1ve/eslint-config",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"author": "Ray <i@mk1.io> (https://github.com/so1ve/)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Ray's eslint config.",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"typescript-eslint": "^8.34.0",
|
|
70
70
|
"vue-eslint-parser": "^10.1.3",
|
|
71
71
|
"yaml-eslint-parser": "^1.3.0",
|
|
72
|
-
"@so1ve/eslint-plugin": "3.3.
|
|
73
|
-
"@so1ve/eslint-plugin-sort-imports": "3.3.
|
|
72
|
+
"@so1ve/eslint-plugin": "3.3.1",
|
|
73
|
+
"@so1ve/eslint-plugin-sort-imports": "3.3.1"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@typescript-eslint/utils": "^8.34.0"
|