@itcase/lint 1.1.79 → 1.1.80
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 +12 -0
- package/dist/eslint.js +17 -3
- package/package.json +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## <small>1.1.80 (2026-01-20)</small>
|
|
2
|
+
|
|
3
|
+
* Merge branch 'develop' ([32735a9](https://github.com/ITCase/itcase-lint/commit/32735a9))
|
|
4
|
+
* Merge branch 'develop' ([7914666](https://github.com/ITCase/itcase-lint/commit/7914666))
|
|
5
|
+
* Merge branch 'develop' into lesnoypudge/45 ([452da18](https://github.com/ITCase/itcase-lint/commit/452da18))
|
|
6
|
+
* Merge branch 'lesnoypudge/200' of https://github.com/itcase/itcase-lint into lesnoypudge/45 ([1e9f88d](https://github.com/ITCase/itcase-lint/commit/1e9f88d))
|
|
7
|
+
* Merge pull request #7 from itcase/lesnoypudge/45 ([cd4548b](https://github.com/ITCase/itcase-lint/commit/cd4548b)), closes [#7](https://github.com/ITCase/itcase-lint/issues/7) [#45](https://github.com/ITCase/itcase-lint/issues/45)
|
|
8
|
+
* patch(other(other): Correct hook use) ([9c31f1e](https://github.com/ITCase/itcase-lint/commit/9c31f1e))
|
|
9
|
+
* deps(other): Update hooks ([594b62d](https://github.com/ITCase/itcase-lint/commit/594b62d))
|
|
10
|
+
* other(other): Update husky ([dbf0452](https://github.com/ITCase/itcase-lint/commit/dbf0452))
|
|
11
|
+
* feat(eslint): add html-eslint and configure eslint-plugin-html ([05140db](https://github.com/ITCase/itcase-lint/commit/05140db))
|
|
12
|
+
|
|
1
13
|
## <small>1.1.79 (2026-01-19)</small>
|
|
2
14
|
|
|
3
15
|
* Merge branch 'develop' of https://github.com/itcase/itcase-lint into lesnoypudge/200 ([ea028b3](https://github.com/ITCase/itcase-lint/commit/ea028b3))
|
package/dist/eslint.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { fixupPluginRules } from '@eslint/compat';
|
|
2
2
|
import eslintJs from '@eslint/js';
|
|
3
3
|
import eslintMarkdown from '@eslint/markdown';
|
|
4
|
-
import
|
|
4
|
+
import eslintHtmlPlugin from '@html-eslint/eslint-plugin';
|
|
5
|
+
import eslintHtmlScriptPlugin from 'eslint-plugin-html';
|
|
5
6
|
import eslintImport from 'eslint-plugin-import';
|
|
6
7
|
import eslintJson from 'eslint-plugin-json';
|
|
7
8
|
import eslintPerfectionist from 'eslint-plugin-perfectionist';
|
|
@@ -274,7 +275,8 @@ const eslintConfig = [
|
|
|
274
275
|
// eslint-plugin-react-hooks already supports flat config, but fixupPluginRules
|
|
275
276
|
// is used for compatibility. Type assertion is needed due to type incompatibility.
|
|
276
277
|
'react-hooks': fixupPluginRules(eslintReactHooks),
|
|
277
|
-
|
|
278
|
+
htmlScript: eslintHtmlScriptPlugin,
|
|
279
|
+
'@html-eslint': eslintHtmlPlugin,
|
|
278
280
|
import: eslintImport,
|
|
279
281
|
perfectionist: eslintPerfectionist,
|
|
280
282
|
},
|
|
@@ -291,7 +293,19 @@ const eslintConfig = [
|
|
|
291
293
|
...eslintMarkdown.configs.recommended,
|
|
292
294
|
},
|
|
293
295
|
{
|
|
294
|
-
files
|
|
296
|
+
// Rules for HTML files
|
|
297
|
+
files: ['**/*.html'],
|
|
298
|
+
...eslintHtmlPlugin.configs['flat/recommended'],
|
|
299
|
+
rules: {
|
|
300
|
+
...eslintHtmlPlugin.configs['flat/all'].rules,
|
|
301
|
+
// Disabled rules due to conflicts with prettier
|
|
302
|
+
'@html-eslint/indent': 'off',
|
|
303
|
+
'@html-eslint/require-closing-tags': 'off',
|
|
304
|
+
'@html-eslint/no-extra-spacing-attrs': 'off',
|
|
305
|
+
},
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
files: ['**/*.{js,jsx,mjs,cjs,ts,tsx,html}'],
|
|
295
309
|
rules: {
|
|
296
310
|
// react-hooks configs recommended rules
|
|
297
311
|
...eslintReactHooks.configs.recommended.rules,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/lint",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.80",
|
|
4
4
|
"author": "ITCase",
|
|
5
5
|
"description": "Code style linter configuration presets ",
|
|
6
6
|
"engines": {
|
|
@@ -48,6 +48,8 @@
|
|
|
48
48
|
"@eslint/compat": "^2.0.1",
|
|
49
49
|
"@eslint/js": "^9.39.2",
|
|
50
50
|
"@eslint/markdown": "^7.5.1",
|
|
51
|
+
"@html-eslint/eslint-plugin": "^0.52.1",
|
|
52
|
+
"@html-eslint/parser": "^0.52.0",
|
|
51
53
|
"@ianvs/prettier-plugin-sort-imports": "^4.7.0",
|
|
52
54
|
"@typescript-eslint/eslint-plugin": "^8.53.0",
|
|
53
55
|
"@typescript-eslint/parser": "^8.53.0",
|