@ntnyq/eslint-config 7.0.0-beta.23 → 7.0.0-beta.24
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 +32 -0
- package/dist/index.mjs +6 -0
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -5067,6 +5067,11 @@ interface RuleOptions {
|
|
|
5067
5067
|
* @see https://eslint-plugin.ntnyq.com/rules/prefer-object-method-syntax.html
|
|
5068
5068
|
*/
|
|
5069
5069
|
'ntnyq/prefer-object-method-syntax'?: Linter.RuleEntry<NtnyqPreferObjectMethodSyntax>;
|
|
5070
|
+
/**
|
|
5071
|
+
* require multiline formatting for directly returned objects
|
|
5072
|
+
* @see https://eslint-plugin.ntnyq.com/rules/return-object-multiline.html
|
|
5073
|
+
*/
|
|
5074
|
+
'ntnyq/return-object-multiline'?: Linter.RuleEntry<[]>;
|
|
5070
5075
|
/**
|
|
5071
5076
|
* Enforce consistent line breaks after opening and before closing braces
|
|
5072
5077
|
* @see https://eslint.org/docs/latest/rules/object-curly-newline
|
|
@@ -8985,11 +8990,21 @@ interface RuleOptions {
|
|
|
8985
8990
|
* @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/define-macros-type-style.md
|
|
8986
8991
|
*/
|
|
8987
8992
|
'vue-perfectionist/define-macros-type-style'?: Linter.RuleEntry<VuePerfectionistDefineMacrosTypeStyle>;
|
|
8993
|
+
/**
|
|
8994
|
+
* enforce naming patterns for function result bindings.
|
|
8995
|
+
* @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/prefer-function-result-pattern.md
|
|
8996
|
+
*/
|
|
8997
|
+
'vue-perfectionist/prefer-function-result-pattern'?: Linter.RuleEntry<VuePerfectionistPreferFunctionResultPattern>;
|
|
8988
8998
|
/**
|
|
8989
8999
|
* enforce a naming pattern for Vue template references.
|
|
8990
9000
|
* @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/prefer-ref-pattern.md
|
|
8991
9001
|
*/
|
|
8992
9002
|
'vue-perfectionist/prefer-ref-pattern'?: Linter.RuleEntry<VuePerfectionistPreferRefPattern>;
|
|
9003
|
+
/**
|
|
9004
|
+
* require simple expressions in Vue template event handlers.
|
|
9005
|
+
* @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/prefer-simple-event-handler.md
|
|
9006
|
+
*/
|
|
9007
|
+
'vue-perfectionist/prefer-simple-event-handler'?: Linter.RuleEntry<VuePerfectionistPreferSimpleEventHandler>;
|
|
8993
9008
|
/**
|
|
8994
9009
|
* require configured props at Vue component usage sites.
|
|
8995
9010
|
* @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/require-component-props.md
|
|
@@ -19333,11 +19348,28 @@ type VuePerfectionistDefineMacrosTypeStyle = [] | [{
|
|
|
19333
19348
|
defineSlots?: (("inline" | "local" | "imported") | [("inline" | "local" | "imported"), ...(("inline" | "local" | "imported"))[]] | false);
|
|
19334
19349
|
};
|
|
19335
19350
|
}];
|
|
19351
|
+
// ----- vue-perfectionist/prefer-function-result-pattern -----
|
|
19352
|
+
type VuePerfectionistPreferFunctionResultPattern = [] | [{
|
|
19353
|
+
targets?: {
|
|
19354
|
+
source: string;
|
|
19355
|
+
names: [string, ...(string)[]];
|
|
19356
|
+
pattern: string;
|
|
19357
|
+
returnIndex?: number;
|
|
19358
|
+
booleanOnly?: boolean;
|
|
19359
|
+
autoImport?: boolean;
|
|
19360
|
+
}[];
|
|
19361
|
+
}];
|
|
19336
19362
|
// ----- vue-perfectionist/prefer-ref-pattern -----
|
|
19337
19363
|
type VuePerfectionistPreferRefPattern = [] | [{
|
|
19338
19364
|
pattern?: string;
|
|
19339
19365
|
targets?: ("template" | "useTemplateRef" | "render")[];
|
|
19340
19366
|
}];
|
|
19367
|
+
// ----- vue-perfectionist/prefer-simple-event-handler -----
|
|
19368
|
+
type VuePerfectionistPreferSimpleEventHandler = [] | [{
|
|
19369
|
+
allowInlineFunctions?: boolean;
|
|
19370
|
+
allowConditional?: boolean;
|
|
19371
|
+
allowLogical?: boolean;
|
|
19372
|
+
}];
|
|
19341
19373
|
// ----- vue-perfectionist/require-component-props -----
|
|
19342
19374
|
type VuePerfectionistRequireComponentProps = [] | [{
|
|
19343
19375
|
targets?: {
|
package/dist/index.mjs
CHANGED
|
@@ -642,6 +642,11 @@ const configVue = (options = {}) => {
|
|
|
642
642
|
"vue-perfectionist/consistent-template-ref-name": "error",
|
|
643
643
|
"vue-perfectionist/define-macros-newline": "error",
|
|
644
644
|
"vue-perfectionist/prefer-ref-pattern": "error",
|
|
645
|
+
"vue-perfectionist/prefer-simple-event-handler": ["error", {
|
|
646
|
+
allowConditional: true,
|
|
647
|
+
allowInlineFunctions: false,
|
|
648
|
+
allowLogical: true
|
|
649
|
+
}],
|
|
645
650
|
"vue-perfectionist/sort-script-setup": ["error", { groups: [
|
|
646
651
|
["interface", "type"],
|
|
647
652
|
"define-props",
|
|
@@ -1685,6 +1690,7 @@ const configNtnyq = (options = {}) => [{
|
|
|
1685
1690
|
avoidQuotes: true,
|
|
1686
1691
|
fix: true
|
|
1687
1692
|
}],
|
|
1693
|
+
"ntnyq/return-object-multiline": "error",
|
|
1688
1694
|
...options.overrides
|
|
1689
1695
|
}
|
|
1690
1696
|
}];
|
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.24",
|
|
5
5
|
"description": "An opinionated ESLint config preset of ntnyq",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"eslint",
|
|
@@ -103,11 +103,11 @@
|
|
|
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.2.
|
|
106
|
+
"eslint-plugin-jsdoc": "^65.2.4",
|
|
107
107
|
"eslint-plugin-jsonc": "^3.4.2",
|
|
108
108
|
"eslint-plugin-n": "^18.4.1",
|
|
109
109
|
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
110
|
-
"eslint-plugin-ntnyq": "^0.
|
|
110
|
+
"eslint-plugin-ntnyq": "^0.19.1",
|
|
111
111
|
"eslint-plugin-oxfmt": "^0.27.0",
|
|
112
112
|
"eslint-plugin-perfectionist": "^5.12.1",
|
|
113
113
|
"eslint-plugin-pinia": "^0.4.2",
|
|
@@ -117,8 +117,8 @@
|
|
|
117
117
|
"eslint-plugin-toml": "^1.5.0",
|
|
118
118
|
"eslint-plugin-unicorn": "^77.0.0",
|
|
119
119
|
"eslint-plugin-vue": "^10.11.1",
|
|
120
|
-
"eslint-plugin-vue-perfectionist": "^0.
|
|
121
|
-
"eslint-plugin-yml": "^3.
|
|
120
|
+
"eslint-plugin-vue-perfectionist": "^0.5.0",
|
|
121
|
+
"eslint-plugin-yml": "^3.9.0",
|
|
122
122
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
123
123
|
"globals": "^17.13.0",
|
|
124
124
|
"jsonc-eslint-parser": "^3.3.0",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"yaml-eslint-parser": "^2.1.0"
|
|
130
130
|
},
|
|
131
131
|
"devDependencies": {
|
|
132
|
-
"@types/node": "^26.6.
|
|
132
|
+
"@types/node": "^26.6.5",
|
|
133
133
|
"@typescript-eslint/types": "^8.71.1",
|
|
134
134
|
"@typescript/native-preview": "npm:typescript@^7.0.2",
|
|
135
135
|
"bumpp": "^12.3.0",
|