@ntnyq/eslint-config 7.0.0-beta.28 → 7.0.0-beta.29

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 CHANGED
@@ -8950,6 +8950,11 @@ interface RuleOptions {
8950
8950
  * @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/max-lines-per-callback.md
8951
8951
  */
8952
8952
  'vue-perfectionist/max-lines-per-callback'?: Linter.RuleEntry<VuePerfectionistMaxLinesPerCallback>;
8953
+ /**
8954
+ * enforce limits on logical operators and conditional nesting in Vue templates.
8955
+ * @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/no-complex-template-expression.md
8956
+ */
8957
+ 'vue-perfectionist/no-complex-template-expression'?: Linter.RuleEntry<VuePerfectionistNoComplexTemplateExpression>;
8953
8958
  /**
8954
8959
  * disallow complex expressions in Vue v-for sources.
8955
8960
  * @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/no-complex-v-for-source.md
@@ -8980,6 +8985,11 @@ interface RuleOptions {
8980
8985
  * @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/prefer-function-result-pattern.md
8981
8986
  */
8982
8987
  'vue-perfectionist/prefer-function-result-pattern'?: Linter.RuleEntry<VuePerfectionistPreferFunctionResultPattern>;
8988
+ /**
8989
+ * require scope-based cleanup in named Vue composables.
8990
+ * @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/prefer-on-scope-dispose.md
8991
+ */
8992
+ 'vue-perfectionist/prefer-on-scope-dispose'?: Linter.RuleEntry<VuePerfectionistPreferOnScopeDispose>;
8983
8993
  /**
8984
8994
  * enforce a naming pattern for Vue template references.
8985
8995
  * @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/prefer-ref-pattern.md
@@ -9015,6 +9025,11 @@ interface RuleOptions {
9015
9025
  * @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/require-component-slots.md
9016
9026
  */
9017
9027
  'vue-perfectionist/require-component-slots'?: Linter.RuleEntry<VuePerfectionistRequireComponentSlots>;
9028
+ /**
9029
+ * disallow string keys in Vue provide and inject calls.
9030
+ * @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/require-injection-key.md
9031
+ */
9032
+ 'vue-perfectionist/require-injection-key'?: Linter.RuleEntry<VuePerfectionistRequireInjectionKey>;
9018
9033
  /**
9019
9034
  * require exact call-site names for Vue macro type arguments.
9020
9035
  * @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/require-macro-type-name.md
@@ -9355,11 +9370,21 @@ interface RuleOptions {
9355
9370
  * @see https://eslint.vuejs.org/rules/no-constant-condition.html
9356
9371
  */
9357
9372
  'vue/no-constant-condition'?: Linter.RuleEntry<VueNoConstantCondition>;
9373
+ /**
9374
+ * disallow content outside of the top-level blocks
9375
+ * @see https://eslint.vuejs.org/rules/no-content-outside-block.html
9376
+ */
9377
+ 'vue/no-content-outside-block'?: Linter.RuleEntry<[]>;
9358
9378
  /**
9359
9379
  * disallow custom modifiers on v-model used on the component
9360
9380
  * @see https://eslint.vuejs.org/rules/no-custom-modifiers-on-v-model.html
9361
9381
  */
9362
9382
  'vue/no-custom-modifiers-on-v-model'?: Linter.RuleEntry<[]>;
9383
+ /**
9384
+ * disallow default values in `defineModel`
9385
+ * @see https://eslint.vuejs.org/rules/no-define-model-default.html
9386
+ */
9387
+ 'vue/no-define-model-default'?: Linter.RuleEntry<[]>;
9363
9388
  /**
9364
9389
  * disallow using deprecated object declaration on data (in Vue.js 3.0.0+)
9365
9390
  * @see https://eslint.vuejs.org/rules/no-deprecated-data-object-declaration.html
@@ -9595,6 +9620,11 @@ interface RuleOptions {
9595
9620
  * @see https://eslint.vuejs.org/rules/no-potential-component-option-typo.html
9596
9621
  */
9597
9622
  'vue/no-potential-component-option-typo'?: Linter.RuleEntry<VueNoPotentialComponentOptionTypo>;
9623
+ /**
9624
+ * disallow declarations that shadow props in `<script setup>`
9625
+ * @see https://eslint.vuejs.org/rules/no-props-shadow.html
9626
+ */
9627
+ 'vue/no-props-shadow'?: Linter.RuleEntry<[]>;
9598
9628
  /**
9599
9629
  * disallow use of value wrapped by `ref()` (Composition API) as an operand
9600
9630
  * @see https://eslint.vuejs.org/rules/no-ref-as-operand.html
@@ -19684,6 +19714,14 @@ type VuePerfectionistMaxLinesPerCallback = [] | [{
19684
19714
  skipBlankLines?: boolean;
19685
19715
  skipComments?: boolean;
19686
19716
  }];
19717
+ // ----- vue-perfectionist/no-complex-template-expression -----
19718
+ type VuePerfectionistNoComplexTemplateExpression = [] | [{
19719
+ maxLogicalExpressions?: number;
19720
+ maxConditionalDepth?: number;
19721
+ directives?: ("if" | "else-if" | "show" | "bind" | "text" | "html" | "model" | "memo")[];
19722
+ checkInterpolations?: boolean;
19723
+ ignoreScopeReferences?: boolean;
19724
+ }];
19687
19725
  // ----- vue-perfectionist/no-complex-v-for-source -----
19688
19726
  type VuePerfectionistNoComplexVForSource = [] | [{
19689
19727
  allowCallExpression?: boolean;
@@ -19721,6 +19759,14 @@ type VuePerfectionistPreferFunctionResultPattern = [] | [{
19721
19759
  autoImport?: boolean;
19722
19760
  }[];
19723
19761
  }];
19762
+ // ----- vue-perfectionist/prefer-on-scope-dispose -----
19763
+ type VuePerfectionistPreferOnScopeDispose = [] | [{
19764
+ functionPattern?: string;
19765
+ ignoreNames?: string[];
19766
+ hooks?: ("onUnmounted" | "onBeforeUnmount")[];
19767
+ vueGlobals?: string[];
19768
+ vueImportSources?: string[];
19769
+ }];
19724
19770
  // ----- vue-perfectionist/prefer-ref-pattern -----
19725
19771
  type VuePerfectionistPreferRefPattern = [] | [{
19726
19772
  pattern?: string;
@@ -19761,6 +19807,13 @@ type VuePerfectionistRequireComponentSlots = [] | [{
19761
19807
  }[];
19762
19808
  unknownSlots?: ("report" | "ignore");
19763
19809
  }];
19810
+ // ----- vue-perfectionist/require-injection-key -----
19811
+ type VuePerfectionistRequireInjectionKey = [] | [{
19812
+ strict?: boolean;
19813
+ allowStrings?: string[];
19814
+ vueGlobals?: string[];
19815
+ vueImportSources?: string[];
19816
+ }];
19764
19817
  // ----- vue-perfectionist/require-macro-type-name -----
19765
19818
  type VuePerfectionistRequireMacroTypeName = [] | [{
19766
19819
  macros?: {
@@ -20015,6 +20068,7 @@ type VueBlockLang = [] | [{
20015
20068
  [k: string]: {
20016
20069
  lang?: (string | string[]);
20017
20070
  allowNoLang?: boolean;
20071
+ required?: boolean;
20018
20072
  };
20019
20073
  }];
20020
20074
  // ----- vue/block-order -----
@@ -21057,6 +21111,7 @@ type VueRequireDirectExport = [] | [{
21057
21111
  // ----- vue/require-explicit-emits -----
21058
21112
  type VueRequireExplicitEmits = [] | [{
21059
21113
  allowProps?: boolean;
21114
+ ignoreMixins?: boolean;
21060
21115
  }];
21061
21116
  // ----- vue/require-macro-variable-name -----
21062
21117
  type VueRequireMacroVariableName = [] | [{
package/dist/index.mjs CHANGED
@@ -534,6 +534,9 @@ const configVue = (options = {}) => {
534
534
  multiline: 1,
535
535
  singleline: 1
536
536
  }],
537
+ "vue/no-content-outside-block": "error",
538
+ "vue/no-define-model-default": "error",
539
+ "vue/no-props-shadow": "error",
537
540
  "vue/order-in-components": ["error", { order: [
538
541
  "el",
539
542
  "name",
@@ -641,6 +644,7 @@ const configVue = (options = {}) => {
641
644
  "vue-perfectionist/callback-style": "error",
642
645
  "vue-perfectionist/consistent-template-ref-name": "error",
643
646
  "vue-perfectionist/define-macros-newline": "error",
647
+ "vue-perfectionist/no-complex-template-expression": "error",
644
648
  "vue-perfectionist/no-complex-v-for-source": "error",
645
649
  "vue-perfectionist/prefer-ref-pattern": "error",
646
650
  "vue-perfectionist/prefer-simple-event-handler": ["error", {
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.28",
4
+ "version": "7.0.0-beta.29",
5
5
  "description": "An opinionated ESLint config preset of ntnyq",
6
6
  "keywords": [
7
7
  "eslint",
@@ -89,8 +89,8 @@
89
89
  "@eslint-community/eslint-plugin-eslint-comments": "^4.8.1",
90
90
  "@eslint/js": "^10.0.1",
91
91
  "@eslint/markdown": "^8.0.3",
92
- "@ntnyq/utils": "^0.23.0",
93
- "@unocss/eslint-plugin": "^66.11.0",
92
+ "@ntnyq/utils": "^0.24.0",
93
+ "@unocss/eslint-plugin": "^66.12.0",
94
94
  "@vitest/eslint-plugin": "^1.6.28",
95
95
  "eslint-config-flat-gitignore": "^2.4.0",
96
96
  "eslint-flat-config-utils": "^3.2.0",
@@ -108,42 +108,42 @@
108
108
  "eslint-plugin-n": "^18.5.0",
109
109
  "eslint-plugin-no-only-tests": "^3.4.0",
110
110
  "eslint-plugin-ntnyq": "^0.19.1",
111
- "eslint-plugin-oxfmt": "^0.29.0",
111
+ "eslint-plugin-oxfmt": "^0.30.0",
112
112
  "eslint-plugin-perfectionist": "^5.13.0",
113
113
  "eslint-plugin-pinia": "^0.4.2",
114
114
  "eslint-plugin-prettier": "^5.5.7",
115
- "eslint-plugin-regexp": "^3.3.1",
115
+ "eslint-plugin-regexp": "^3.3.2",
116
116
  "eslint-plugin-svgo": "^0.14.1",
117
117
  "eslint-plugin-toml": "^1.5.0",
118
118
  "eslint-plugin-unicorn": "^79.0.0",
119
- "eslint-plugin-vue": "^10.11.1",
120
- "eslint-plugin-vue-perfectionist": "^0.12.0",
119
+ "eslint-plugin-vue": "^10.12.0",
120
+ "eslint-plugin-vue-perfectionist": "^0.13.0",
121
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",
125
125
  "local-pkg": "^1.2.1",
126
126
  "toml-eslint-parser": "^1.0.3",
127
- "typescript-eslint": "^8.72.0",
127
+ "typescript-eslint": "^8.72.1",
128
128
  "vue-eslint-parser": "^10.4.1",
129
129
  "yaml-eslint-parser": "^2.1.0"
130
130
  },
131
131
  "devDependencies": {
132
- "@types/node": "^26.6.5",
133
- "@typescript-eslint/types": "^8.72.0",
132
+ "@types/node": "^26.6.6",
133
+ "@typescript-eslint/types": "^8.72.1",
134
134
  "@typescript/native-preview": "npm:typescript@^7.0.2",
135
135
  "bumpp": "^12.3.0",
136
136
  "consola": "^3.4.2",
137
137
  "eslint": "^10.13.0",
138
- "eslint-typegen": "^2.3.1",
138
+ "eslint-typegen": "^2.3.2",
139
139
  "husky": "^9.1.7",
140
140
  "jiti": "^2.7.0",
141
141
  "nano-staged": "^1.0.2",
142
142
  "npm-run-all2": "^9.0.4",
143
- "oxfmt": "^0.74.0",
143
+ "oxfmt": "^0.75.0",
144
144
  "prettier": "^3.9.10",
145
145
  "tinyglobby": "^0.2.17",
146
- "tsdown": "^0.23.2",
146
+ "tsdown": "^0.23.4",
147
147
  "tsx": "^4.23.15",
148
148
  "typescript": "npm:@typescript/typescript6@^6.0.2",
149
149
  "uncase": "^0.3.0",