@itcase/lint 1.1.111 → 1.1.113

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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [1.1.113](https://github.com/ITCase/itcase-lint/compare/v1.1.112...v1.1.113) (2026-05-14)
2
+
3
+ ### Refactoring
4
+
5
+ * **other:** Add sotr in props ([d300544](https://github.com/ITCase/itcase-lint/commit/d300544e1cc46d3cc6c8bec67c0d6b3923d62fd6))
6
+
7
+ ## [1.1.112](https://github.com/ITCase/itcase-lint/compare/v1.1.111...v1.1.112) (2026-05-13)
8
+
9
+ ### Refactoring
10
+
11
+ * **perfectionist:** Yup sort ([788fc5b](https://github.com/ITCase/itcase-lint/commit/788fc5b5c420f120b850c52b4c0fd3358fabeda3))
12
+
1
13
  ## [1.1.111](https://github.com/ITCase/itcase-lint/compare/v1.1.110...v1.1.111) (2026-05-13)
2
14
 
3
15
  ### Features
@@ -1,4 +1,4 @@
1
- export { i as sortEnums, c as sortExports, h as sortInterfaces, g as sortIntersectionTypes, f as sortJSXProps, e as sortMaps, d as sortNamedExports, a as sortObjectTypes, b as sortObjects, s as sortUnionTypes } from '../sortUnionTypes_B60tZBM_.js';
1
+ export { i as sortEnums, c as sortExports, h as sortInterfaces, g as sortIntersectionTypes, f as sortJSXProps, e as sortMaps, d as sortNamedExports, a as sortObjectTypes, b as sortObjects, s as sortUnionTypes } from '../sortUnionTypes_DpNdQEFU.js';
2
2
 
3
3
  const sortClasses = [
4
4
  'error',
@@ -1,3 +1,3 @@
1
1
  import 'eslint-plugin-storybook';
2
- export { s as default } from '../index_Bb7Jg_Ul.js';
2
+ export { s as default } from '../index_xJLF6yi0.js';
3
3
  import '@typescript-eslint/utils';
package/dist/eslint.js CHANGED
@@ -11,9 +11,9 @@ import eslintReact from 'eslint-plugin-react';
11
11
  import eslintReactHooks from 'eslint-plugin-react-hooks';
12
12
  import globals from 'globals';
13
13
  import eslintTypeScript from 'typescript-eslint';
14
- import { s as sortUnionTypes, a as sortObjectTypes, b as sortObjects, c as sortExports, d as sortNamedExports, e as sortMaps, f as sortJSXProps, g as sortIntersectionTypes, h as sortInterfaces, i as sortEnums } from './sortUnionTypes_B60tZBM_.js';
14
+ import { s as sortUnionTypes, a as sortObjectTypes, b as sortObjects, c as sortExports, d as sortNamedExports, e as sortMaps, f as sortJSXProps, g as sortIntersectionTypes, h as sortInterfaces, i as sortEnums } from './sortUnionTypes_DpNdQEFU.js';
15
15
  import parser from '@typescript-eslint/parser';
16
- import { i as itcaseLintPlugin, p as pluginName, r as ruleName, a as pluginName$1, b as ruleName$1, s as storybookConfig } from './index_Bb7Jg_Ul.js';
16
+ import { i as itcaseLintPlugin, p as pluginName, r as ruleName, a as pluginName$1, b as ruleName$1, s as storybookConfig } from './index_xJLF6yi0.js';
17
17
  import { noRestrictedSyntaxRestrictWords } from './eslint/restrictWords.js';
18
18
  export { default as eslintFigma } from './eslint/figma.js';
19
19
  import 'eslint-plugin-storybook';
@@ -414,18 +414,18 @@ const MESSAGE_IDS = {
414
414
  requiredMustUseKeyMessageObject: 'requiredMustUseKeyMessageObject',
415
415
  yupMethodOrderViolation: 'yupMethodOrderViolation',
416
416
  };
417
- const YUP_ORDERED_METHODS = 'label → required → matches → min → max';
417
+ const YUP_ORDERED_METHODS = 'label → matches → min → max → required';
418
418
  const MESSAGES = {
419
419
  [MESSAGE_IDS.requiredMustUseKeyMessageObject]: "On yup chains rooted at `yup`, call .required() with exactly one object argument that includes both `key` and `message` (e.g. .required({ key: 'required', message: FIELDS_MESSAGES.field.required })).",
420
- [MESSAGE_IDS.yupMethodOrderViolation]: `When any of .label(), .required(), .matches(), .min(), .max() appear on a yup chain, use this order: ${YUP_ORDERED_METHODS}. Other calls (e.g. .test()) may appear between them without breaking this relative order.`,
420
+ [MESSAGE_IDS.yupMethodOrderViolation]: `When any of .label(), .matches(), .min(), .max(), .required() appear on a yup chain, use this order: ${YUP_ORDERED_METHODS}. Other calls (e.g. .test()) may appear between them without breaking this relative order.`,
421
421
  };
422
422
 
423
423
  const ORDERED_YUP_METHOD_NAMES = [
424
424
  'label',
425
- 'required',
426
425
  'matches',
427
426
  'min',
428
427
  'max',
428
+ 'required',
429
429
  ];
430
430
  const METHOD_ORDER_RANK = new Map(ORDERED_YUP_METHOD_NAMES.map((name, index) => [name, index]));
431
431
  const isYupRoot = (node) => node.type === AST_NODE_TYPES.Identifier && node.name === 'yup';
@@ -563,7 +563,7 @@ const ruleMeta = {
563
563
  type: 'suggestion',
564
564
  messages: MESSAGES,
565
565
  docs: {
566
- description: 'Enforce yup .required({ key, message }) and method order label → required → matches → min → max when those calls appear.',
566
+ description: 'Enforce yup .required({ key, message }) and method order label → matches → min → max → required when those calls appear.',
567
567
  },
568
568
  schema: [],
569
569
  };
@@ -418,6 +418,7 @@ const props = [
418
418
  'layout',
419
419
  'sourceLink',
420
420
  // 'tags', // duplicate
421
+ 'play',
421
422
  'render',
422
423
  'device',
423
424
  'design',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/lint",
3
- "version": "1.1.111",
3
+ "version": "1.1.113",
4
4
  "author": "ITCase",
5
5
  "description": "Code style linter configuration presets",
6
6
  "engines": {