@itcase/lint 1.1.108 → 1.1.109

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,9 @@
1
+ ## [1.1.109](https://github.com/ITCase/itcase-lint/compare/v1.1.108...v1.1.109) (2026-04-20)
2
+
3
+ ### Features
4
+
5
+ * **eslint:** add "react/jsx-boolean-value" rule, clean ([dfe64c0](https://github.com/ITCase/itcase-lint/commit/dfe64c05dd990bdd0804473862fa2e0c0b60b74b))
6
+
1
7
  ## [1.1.108](https://github.com/ITCase/itcase-lint/compare/v1.1.107...v1.1.108) (2026-04-14)
2
8
 
3
9
  ### Bug Fixes
package/dist/eslint.js CHANGED
@@ -57,7 +57,7 @@ const eslintConfig = [
57
57
  plugins: {
58
58
  ...pluginWithConfigs.configs.recommended.plugins,
59
59
  react: eslintReact,
60
- // eslint-plugin-react-hooks already supports flat config, but fixupPluginRules
60
+ // "eslint-plugin-react-hooks" already supports flat config, but "fixupPluginRules"
61
61
  // is used for compatibility. Type assertion is needed due to type incompatibility.
62
62
  'react-hooks': fixupPluginRules(eslintReactHooks),
63
63
  htmlScript: eslintHtmlScriptPlugin,
@@ -92,7 +92,7 @@ const eslintConfig = [
92
92
  {
93
93
  files: ['**/*.{js,jsx,mjs,cjs,ts,tsx,html}'],
94
94
  rules: {
95
- // react-hooks configs recommended rules
95
+ // "react-hooks" config recommended rules
96
96
  ...eslintReactHooks.configs.recommended.rules,
97
97
  ...pluginWithConfigs.configs.recommended.rules,
98
98
  'react/jsx-fragments': ['error', 'element'],
@@ -103,20 +103,22 @@ const eslintConfig = [
103
103
  // Sometimes you need an empty one, for example when extends
104
104
  '@typescript-eslint/no-empty-object-type': 'off',
105
105
  '@typescript-eslint/no-unused-expressions': 'off',
106
- // react
107
- // TODO: make rule "react/prop-types" as error only for JS(x) files
106
+ // React
107
+ // TODO: Make rule "react/prop-types" an error only for JS(x) files
108
108
  'react/prop-types': 'off',
109
109
  'react/react-in-jsx-scope': 'off',
110
- // react-hooks
110
+ // Prefer explicit boolean props in JSX for consistency
111
+ 'react/jsx-boolean-value': ['warn', 'always'],
112
+ // React-hooks
111
113
  'react-hooks/exhaustive-deps': 'warn',
112
114
  'react-hooks/rules-of-hooks': 'error',
113
- // Запрет определённых слов в качестве идентификаторов (список в restrictWords/config.ts)
115
+ // Restrict certain words as identifiers (list in restrictWords/config.ts)
114
116
  'no-restricted-syntax': noRestrictedSyntaxRestrictWords,
115
- // disables the requirement to format ternary operators in multiline form
117
+ // Disables the requirement to format ternary operators in multiline form
116
118
  'multiline-ternary': 'off',
117
- // shorthand for methods and properties of objects
119
+ // Shorthand for methods and properties of objects
118
120
  'object-shorthand': ['warn', 'consistent'],
119
- // import
121
+ // Import
120
122
  'import/no-default-export': 'warn',
121
123
  // Perfectionist
122
124
  'perfectionist/sort-classes': 'off',
@@ -137,8 +139,8 @@ const eslintConfig = [
137
139
  files: [
138
140
  '**/*.page.{ts,tsx,js,jsx}', // Next.js pages
139
141
  '**/*.config.*', // configs
140
- '**/*gulpfile*', // gulp
141
- '**/*.stories.*', // storybook
142
+ '**/*gulpfile*', // Gulp
143
+ '**/*.stories.*', // Storybook
142
144
  ],
143
145
  rules: {
144
146
  'import/no-default-export': 'off',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/lint",
3
- "version": "1.1.108",
3
+ "version": "1.1.109",
4
4
  "author": "ITCase",
5
5
  "description": "Code style linter configuration presets",
6
6
  "engines": {