@ntnyq/eslint-config 7.0.0-beta.26 → 7.0.0-beta.27
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.mts +19 -5
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -9025,6 +9025,11 @@ interface RuleOptions {
|
|
|
9025
9025
|
* @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/prefer-composable-options.md
|
|
9026
9026
|
*/
|
|
9027
9027
|
'vue-perfectionist/prefer-composable-options'?: Linter.RuleEntry<VuePerfectionistPreferComposableOptions>;
|
|
9028
|
+
/**
|
|
9029
|
+
* require function declarations at the top level of SFCs and composables.
|
|
9030
|
+
* @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/prefer-function-declaration.md
|
|
9031
|
+
*/
|
|
9032
|
+
'vue-perfectionist/prefer-function-declaration'?: Linter.RuleEntry<VuePerfectionistPreferFunctionDeclaration>;
|
|
9028
9033
|
/**
|
|
9029
9034
|
* enforce naming patterns for function result bindings.
|
|
9030
9035
|
* @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/prefer-function-result-pattern.md
|
|
@@ -19455,17 +19460,26 @@ type VuePerfectionistNoComplexVForSource = [] | [{
|
|
|
19455
19460
|
allowLiteral?: boolean;
|
|
19456
19461
|
}];
|
|
19457
19462
|
// ----- vue-perfectionist/padding-line-between-tags -----
|
|
19458
|
-
type VuePerfectionistPaddingLineBetweenTags = [] | [
|
|
19459
|
-
|
|
19460
|
-
|
|
19461
|
-
|
|
19462
|
-
|
|
19463
|
+
type VuePerfectionistPaddingLineBetweenTags = [] | [{
|
|
19464
|
+
targets?: ({
|
|
19465
|
+
[k: string]: unknown | undefined;
|
|
19466
|
+
} | {
|
|
19467
|
+
[k: string]: unknown | undefined;
|
|
19468
|
+
})[];
|
|
19469
|
+
}];
|
|
19463
19470
|
// ----- vue-perfectionist/prefer-composable-options -----
|
|
19464
19471
|
type VuePerfectionistPreferComposableOptions = [] | [{
|
|
19465
19472
|
maxPositionalParams?: number;
|
|
19466
19473
|
functionPattern?: string;
|
|
19467
19474
|
ignoreNames?: string[];
|
|
19468
19475
|
}];
|
|
19476
|
+
// ----- vue-perfectionist/prefer-function-declaration -----
|
|
19477
|
+
type VuePerfectionistPreferFunctionDeclaration = [] | [{
|
|
19478
|
+
scopes?: ("sfc" | "composables")[];
|
|
19479
|
+
functionPattern?: string;
|
|
19480
|
+
ignoreNames?: string[];
|
|
19481
|
+
allowTypeAnnotation?: boolean;
|
|
19482
|
+
}];
|
|
19469
19483
|
// ----- vue-perfectionist/prefer-function-result-pattern -----
|
|
19470
19484
|
type VuePerfectionistPreferFunctionResultPattern = [] | [{
|
|
19471
19485
|
targets?: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ntnyq/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.0-beta.
|
|
4
|
+
"version": "7.0.0-beta.27",
|
|
5
5
|
"description": "An opinionated ESLint config preset of ntnyq",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"eslint",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"eslint-plugin-depend": "^1.5.0",
|
|
104
104
|
"eslint-plugin-github-action": "^0.4.0",
|
|
105
105
|
"eslint-plugin-import-x": "^4.17.1",
|
|
106
|
-
"eslint-plugin-jsdoc": "^65.3.
|
|
106
|
+
"eslint-plugin-jsdoc": "^65.3.12",
|
|
107
107
|
"eslint-plugin-jsonc": "^3.4.2",
|
|
108
108
|
"eslint-plugin-n": "^18.5.0",
|
|
109
109
|
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"eslint-plugin-toml": "^1.5.0",
|
|
118
118
|
"eslint-plugin-unicorn": "^78.0.0",
|
|
119
119
|
"eslint-plugin-vue": "^10.11.1",
|
|
120
|
-
"eslint-plugin-vue-perfectionist": "^0.
|
|
120
|
+
"eslint-plugin-vue-perfectionist": "^0.10.0",
|
|
121
121
|
"eslint-plugin-yml": "^3.9.0",
|
|
122
122
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
123
123
|
"globals": "^17.13.0",
|