@alexlit/lint-kit 110.0.0 → 110.1.0

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.
@@ -0,0 +1,5 @@
1
+ import { lintStagedConfig } from '@alexlit/config-hooks';
2
+
3
+ export default {
4
+ ...lintStagedConfig,
5
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/lint-kit",
3
- "version": "110.0.0",
3
+ "version": "110.1.0",
4
4
  "private": false,
5
5
  "description": "Preset of configuration files and dependencies for linting web applications (designed for Vue.js with TypeScript)",
6
6
  "keywords": [
@@ -39,14 +39,14 @@
39
39
  "files": [
40
40
  ".eslintrc.cjs",
41
41
  ".linthtmlrc.cjs",
42
- ".lintstagedrc.cjs",
43
42
  ".markdownlintrc.cjs",
44
43
  ".npmpackagejsonlintrc.json",
45
44
  ".npmrc",
46
45
  "commitlint.config.js",
46
+ "lint-staged.config.js",
47
+ "packages",
47
48
  "prettier.config.js",
48
49
  "stylelint.config.js",
49
- "packages",
50
50
  "scripts"
51
51
  ],
52
52
  "workspaces": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-commitlint",
3
- "version": "11.1.0",
3
+ "version": "11.2.0",
4
4
  "private": false,
5
5
  "description": "Commitlint config",
6
6
  "keywords": [
@@ -32,7 +32,7 @@
32
32
  "up": "../../scripts/up.sh"
33
33
  },
34
34
  "dependencies": {
35
- "@commitlint/cli": "^19.1.0",
35
+ "@commitlint/cli": "^19.2.0",
36
36
  "@commitlint/config-conventional": "^19.1.0",
37
37
  "conventional-changelog-cli": "^4.1.0"
38
38
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-eslint",
3
- "version": "76.7.0",
3
+ "version": "76.7.1",
4
4
  "private": false,
5
5
  "description": "Eslint config",
6
6
  "keywords": [
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@intlify/eslint-plugin-vue-i18n": "^2.0.0",
37
- "@tanstack/eslint-plugin-query": "^5.27.3",
37
+ "@tanstack/eslint-plugin-query": "^5.27.7",
38
38
  "@typescript-eslint/eslint-plugin": "^6.21.0",
39
39
  "@typescript-eslint/parser": "^6.21.0",
40
40
  "eslint": "^8.57.0",
@@ -8,12 +8,30 @@ npm i @alexlit/config-htmllint -D
8
8
 
9
9
  ## Connection
10
10
 
11
- ```js
12
- // .linthtmlrc.js
13
- module.exports = {
14
- ...require('@alexlit/config-htmllint'),
15
- };
16
- ```
11
+ - Default
12
+ ([see rules enabled by default](https://github.com/alex-lit/lint-kit/blob/master/packages/config-htmllint/index.js))
13
+
14
+ ```js
15
+ // linthtml.config.js
16
+ import { createConfig } from '@alexlit/config-htmllint';
17
+
18
+ export default createConfig();
19
+ ```
20
+
21
+ - Custom
22
+
23
+ ```js
24
+ // linthtml.config.js
25
+ import { createConfig } from '@alexlit/config-htmllint';
26
+
27
+ export default createConfig({
28
+ 'attr-name-ignore-regex': false,
29
+
30
+ rules: {
31
+ 'indent-width': [true, 4],
32
+ },
33
+ });
34
+ ```
17
35
 
18
36
  ## VSCode extention
19
37
 
@@ -1,11 +1,27 @@
1
- /** @see [linthtml](https://github.com/linthtml/linthtml/blob/develop/docs/rules.md) */
2
- module.exports = {
1
+ /**
2
+ * Create linthtml config
3
+ *
4
+ * @param options LintHTML options
5
+ *
6
+ * @see [linthtml](https://github.com/linthtml/linthtml)
7
+ */
8
+ export const createConfig = (options = {}) => ({
3
9
  'attr-name-ignore-regex': false,
4
- extends: '@linthtml/linthtml-config-recommended',
5
10
  'id-class-ignore-regex': false,
6
11
  'line-max-len-ignore-regex': false,
7
12
  maxerr: false,
8
13
  'raw-ignore-regex': false,
14
+ 'spec-char-escape': false,
15
+ 'text-ignore-regex': false,
16
+
17
+ ...options,
18
+
19
+ extends: [
20
+ '@linthtml/linthtml-config-recommended',
21
+ ...(options.extends ?? []),
22
+ ],
23
+
24
+ ignoreFiles: [...(options.rules ?? [])],
9
25
 
10
26
  rules: {
11
27
  'attr-order': [true, ['id', 'class']],
@@ -23,8 +39,7 @@ module.exports = {
23
39
  'lang-style': [true, 'case'],
24
40
  'tag-name-match': true,
25
41
  'title-max-len': false,
26
- },
27
42
 
28
- 'spec-char-escape': false,
29
- 'text-ignore-regex': false,
30
- };
43
+ ...options.rules,
44
+ },
45
+ });
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-htmllint",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "private": false,
5
5
  "description": "htmllint config",
6
6
  "keywords": [
@@ -23,6 +23,7 @@
23
23
  "maintainers": [
24
24
  "Alexey Litovchenko <alex.lit@outlook.com> (https://alexlit.gitlab.io)"
25
25
  ],
26
+ "type": "module",
26
27
  "main": "index.js",
27
28
  "files": [
28
29
  "README.md",
@@ -33,7 +34,7 @@
33
34
  "up": "../../scripts/up.sh"
34
35
  },
35
36
  "dependencies": {
36
- "@linthtml/linthtml": "^0.9.5",
37
+ "@linthtml/linthtml": "^0.10.0-beta.5",
37
38
  "@linthtml/linthtml-config-recommended": "^0.1.0"
38
39
  }
39
- }
40
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-prettier",
3
- "version": "17.0.0",
3
+ "version": "18.0.0",
4
4
  "private": false,
5
5
  "description": "prettier config",
6
6
  "keywords": [
@@ -42,7 +42,7 @@
42
42
  "prettier-plugin-packagejson": "^2.4.12",
43
43
  "prettier-plugin-sh": "^0.14.0",
44
44
  "prettier-plugin-solidity": "^1.3.1",
45
- "prettier-plugin-sort-json": "^3.1.0",
45
+ "prettier-plugin-sort-json": "^4.0.0",
46
46
  "prettier-plugin-sql": "^0.18.0",
47
47
  "prettier-plugin-svelte": "^3.2.2",
48
48
  "prettier-plugin-tailwindcss": "^0.5.12",
@@ -84,7 +84,7 @@ const createPluginsList = (plugins = {}) => {
84
84
  * Create stylelint config
85
85
  *
86
86
  * @param {PLUGINS} plugins Enabled/disabled plugins list
87
- * @param {import('stylelint').Config} options Stylelint config
87
+ * @param {import('stylelint').Config} options Stylelint options
88
88
  */
89
89
  const createConfig = (plugins = {}, options = {}) => ({
90
90
  ...options,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-stylelint",
3
- "version": "45.0.2",
3
+ "version": "45.1.0",
4
4
  "private": false,
5
5
  "description": "Stylelint config",
6
6
  "keywords": [
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@double-great/stylelint-a11y": "^3.0.2",
37
- "postcss": "^8.4.35",
37
+ "postcss": "^8.4.36",
38
38
  "postcss-html": "^1.6.0",
39
39
  "prettier": "^3.2.5",
40
40
  "stylelint": "^16.2.1",
@@ -51,7 +51,7 @@
51
51
  "stylelint-no-unresolved-module": "^2.2.2",
52
52
  "stylelint-no-unsupported-browser-features": "^8.0.1",
53
53
  "stylelint-order": "^6.0.4",
54
- "stylelint-plugin-logical-css": "^1.0.0",
54
+ "stylelint-plugin-logical-css": "^1.2.0",
55
55
  "stylelint-prettier": "^5.0.0",
56
56
  "stylelint-scss": "^6.2.1",
57
57
  "stylelint-selector-no-empty": "^1.0.9",
package/.linthtmlrc.cjs DELETED
@@ -1,5 +0,0 @@
1
- const config = require('@alexlit/config-htmllint');
2
-
3
- module.exports = {
4
- ...config,
5
- };