@alexlit/lint-kit 106.0.0 → 106.1.1

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.
Files changed (38) hide show
  1. package/package.json +80 -79
  2. package/packages/config-commitlint/package.json +38 -38
  3. package/packages/config-eslint/CHANGELOG.md +6 -0
  4. package/packages/config-eslint/dictionaries/index.js +3 -0
  5. package/packages/config-eslint/index.js +8 -7
  6. package/packages/config-eslint/package.json +87 -87
  7. package/packages/config-eslint/plugins/typescript/index.js +2 -0
  8. package/packages/config-hooks/package.json +38 -38
  9. package/packages/config-htmllint/package.json +39 -39
  10. package/packages/config-markdownlint/package.json +37 -37
  11. package/packages/config-npmlint/index.json +3 -3
  12. package/packages/config-npmlint/package.json +42 -42
  13. package/packages/config-prettier/CHANGELOG.md +2 -0
  14. package/packages/config-prettier/index.js +3 -0
  15. package/packages/config-prettier/package.json +49 -48
  16. package/packages/config-prettier/plugins/tailwindcss.js +4 -0
  17. package/packages/config-stylelint/CHANGELOG.md +4 -0
  18. package/packages/config-stylelint/package.json +59 -59
  19. package/packages/config-stylelint/plugins/scss.js +17 -2
  20. package/scripts/check.editorconfig.sh +10 -0
  21. package/scripts/semver.sh +4 -4
  22. package/packages/config-htmllint/test/html.html +0 -335
  23. package/packages/config-markdownlint/test/deepin-2.md +0 -106
  24. package/packages/config-prettier/test/Migrations.sol +0 -19
  25. package/packages/config-prettier/test/jsdoc.js +0 -27
  26. package/packages/config-prettier/test/json.json +0 -28
  27. package/packages/config-prettier/test/pug.jade +0 -14
  28. package/packages/config-prettier/test/ruby.example +0 -13
  29. package/packages/config-prettier/test/sql.sql +0 -6
  30. package/packages/config-prettier/test/svelte.svelte +0 -20
  31. package/packages/config-prettier/test/svg.svg +0 -67
  32. package/packages/config-prettier/test/twig.twig +0 -17
  33. package/packages/config-prettier/test/xml.xml +0 -43
  34. package/packages/config-stylelint/test/button.scss +0 -7
  35. package/packages/config-stylelint/test/comp-vue.vue +0 -36
  36. package/packages/config-stylelint/test/logical.scss +0 -35
  37. package/packages/config-stylelint/test/scss.scss +0 -457
  38. package/packages/config-stylelint/test/tailwind.css +0 -8
@@ -1,37 +1,37 @@
1
- {
2
- "name": "@alexlit/config-markdownlint",
3
- "version": "2.0.2",
4
- "private": false,
5
- "description": "markdownlint config",
6
- "keywords": [
7
- "markdownlint",
8
- "config"
9
- ],
10
- "homepage": "https://github.com/alex-lit/lint-kit#readme",
11
- "bugs": {
12
- "url": "https://github.com/alex-lit/lint-kit/issues"
13
- },
14
- "repository": {
15
- "type": "git",
16
- "url": "https://github.com/alex-lit/lint-kit.git",
17
- "directory": "packages/config-markdownlint"
18
- },
19
- "license": "MIT",
20
- "author": "Alexey Litovchenko",
21
- "maintainers": [
22
- "Alexey Litovchenko <alex.lit@outlook.com> (https://alexlit.gitlab.io)"
23
- ],
24
- "main": "index.js",
25
- "files": [
26
- "README.md",
27
- "index.js"
28
- ],
29
- "scripts": {
30
- "semver": "../../scripts/semver.sh",
31
- "up": "../../scripts/up.sh"
32
- },
33
- "dependencies": {
34
- "markdownlint": "^0.31.1",
35
- "markdownlint-cli": "^0.37.0"
36
- }
37
- }
1
+ {
2
+ "name": "@alexlit/config-markdownlint",
3
+ "version": "2.0.2",
4
+ "private": false,
5
+ "description": "markdownlint config",
6
+ "keywords": [
7
+ "markdownlint",
8
+ "config"
9
+ ],
10
+ "homepage": "https://github.com/alex-lit/lint-kit#readme",
11
+ "bugs": {
12
+ "url": "https://github.com/alex-lit/lint-kit/issues"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/alex-lit/lint-kit.git",
17
+ "directory": "packages/config-markdownlint"
18
+ },
19
+ "license": "MIT",
20
+ "author": "Alexey Litovchenko",
21
+ "maintainers": [
22
+ "Alexey Litovchenko <alex.lit@outlook.com> (https://alexlit.gitlab.io)"
23
+ ],
24
+ "main": "index.js",
25
+ "files": [
26
+ "README.md",
27
+ "index.js"
28
+ ],
29
+ "scripts": {
30
+ "semver": "../../scripts/semver.sh",
31
+ "up": "../../scripts/up.sh"
32
+ },
33
+ "dependencies": {
34
+ "markdownlint": "^0.31.1",
35
+ "markdownlint-cli": "^0.37.0"
36
+ }
37
+ }
@@ -1,3 +1,3 @@
1
- {
2
- "extends": "npm-package-json-lint-config-default"
3
- }
1
+ {
2
+ "extends": "npm-package-json-lint-config-default"
3
+ }
@@ -1,42 +1,42 @@
1
- {
2
- "name": "@alexlit/config-npmlint",
3
- "version": "5.0.1",
4
- "private": false,
5
- "description": "npmlint config",
6
- "keywords": [
7
- "config",
8
- "json",
9
- "lint",
10
- "npm",
11
- "package",
12
- "npmlint"
13
- ],
14
- "homepage": "https://github.com/alex-lit/lint-kit#readme",
15
- "bugs": {
16
- "url": "https://github.com/alex-lit/lint-kit/issues"
17
- },
18
- "repository": {
19
- "type": "git",
20
- "url": "https://github.com/alex-lit/lint-kit.git",
21
- "directory": "packages/config-npmlint"
22
- },
23
- "license": "MIT",
24
- "author": "Alexey Litovchenko",
25
- "maintainers": [
26
- "Alexey Litovchenko <alex.lit@outlook.com> (https://alexlit.gitlab.io)"
27
- ],
28
- "main": "index.json",
29
- "files": [
30
- "README.md",
31
- "index.json"
32
- ],
33
- "scripts": {
34
- "semver": "../../scripts/semver.sh",
35
- "up": "../../scripts/up.sh"
36
- },
37
- "dependencies": {
38
- "lockfile-lint": "^4.12.1",
39
- "npm-package-json-lint": "^7.0.0",
40
- "npm-package-json-lint-config-default": "^6.0.0"
41
- }
42
- }
1
+ {
2
+ "name": "@alexlit/config-npmlint",
3
+ "version": "5.0.1",
4
+ "private": false,
5
+ "description": "npmlint config",
6
+ "keywords": [
7
+ "config",
8
+ "json",
9
+ "lint",
10
+ "npm",
11
+ "package",
12
+ "npmlint"
13
+ ],
14
+ "homepage": "https://github.com/alex-lit/lint-kit#readme",
15
+ "bugs": {
16
+ "url": "https://github.com/alex-lit/lint-kit/issues"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/alex-lit/lint-kit.git",
21
+ "directory": "packages/config-npmlint"
22
+ },
23
+ "license": "MIT",
24
+ "author": "Alexey Litovchenko",
25
+ "maintainers": [
26
+ "Alexey Litovchenko <alex.lit@outlook.com> (https://alexlit.gitlab.io)"
27
+ ],
28
+ "main": "index.json",
29
+ "files": [
30
+ "README.md",
31
+ "index.json"
32
+ ],
33
+ "scripts": {
34
+ "semver": "../../scripts/semver.sh",
35
+ "up": "../../scripts/up.sh"
36
+ },
37
+ "dependencies": {
38
+ "lockfile-lint": "^4.12.1",
39
+ "npm-package-json-lint": "^7.0.0",
40
+ "npm-package-json-lint-config-default": "^6.0.0"
41
+ }
42
+ }
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [15.0.0](https://github.com/alex-lit/lint-kit/compare/v106.0.0...v15.0.0) (2023-11-01)
6
+
5
7
  ### [14.0.2](https://github.com/alex-lit/lint-kit/compare/v105.1.2...v14.0.2) (2023-10-30)
6
8
 
7
9
  ### [14.0.1](https://github.com/alex-lit/lint-kit/compare/v1.0.1...v14.0.1) (2023-10-20)
@@ -15,6 +15,8 @@ module.exports = {
15
15
  'prettier-plugin-sort-json',
16
16
  'prettier-plugin-sql',
17
17
  'prettier-plugin-svelte',
18
+
19
+ 'prettier-plugin-tailwindcss',
18
20
  ],
19
21
 
20
22
  proseWrap: 'always',
@@ -27,5 +29,6 @@ module.exports = {
27
29
  ...require('./plugins/pug'),
28
30
  ...require('./plugins/sort-json'),
29
31
  ...require('./plugins/svelte'),
32
+ ...require('./plugins/tailwindcss'),
30
33
  ...require('./plugins/xml'),
31
34
  };
@@ -1,48 +1,49 @@
1
- {
2
- "name": "@alexlit/config-prettier",
3
- "version": "14.0.2",
4
- "private": false,
5
- "description": "prettier config",
6
- "keywords": [
7
- "prettier",
8
- "config"
9
- ],
10
- "homepage": "https://github.com/alex-lit/lint-kit#readme",
11
- "bugs": {
12
- "url": "https://github.com/alex-lit/lint-kit/issues"
13
- },
14
- "repository": {
15
- "type": "git",
16
- "url": "https://github.com/alex-lit/lint-kit.git",
17
- "directory": "packages/config-prettier"
18
- },
19
- "license": "MIT",
20
- "author": "Alexey Litovchenko",
21
- "maintainers": [
22
- "Alexey Litovchenko <alex.lit@outlook.com> (https://alexlit.gitlab.io)"
23
- ],
24
- "main": "index.js",
25
- "files": [
26
- "README.md",
27
- "index.js",
28
- "plugins"
29
- ],
30
- "scripts": {
31
- "semver": "../../scripts/semver.sh",
32
- "up": "../../scripts/up.sh"
33
- },
34
- "dependencies": {
35
- "@prettier/plugin-php": "^0.21.0",
36
- "@prettier/plugin-pug": "^3.0.0",
37
- "@prettier/plugin-ruby": "^4.0.2",
38
- "@prettier/plugin-xml": "^3.2.2",
39
- "prettier": "^3.0.3",
40
- "prettier-plugin-jsdoc": "^1.1.1",
41
- "prettier-plugin-packagejson": "^2.4.6",
42
- "prettier-plugin-sh": "^0.13.1",
43
- "prettier-plugin-solidity": "^1.1.3",
44
- "prettier-plugin-sort-json": "^3.1.0",
45
- "prettier-plugin-sql": "^0.15.1",
46
- "prettier-plugin-svelte": "^3.0.3"
47
- }
48
- }
1
+ {
2
+ "name": "@alexlit/config-prettier",
3
+ "version": "15.0.0",
4
+ "private": false,
5
+ "description": "prettier config",
6
+ "keywords": [
7
+ "prettier",
8
+ "config"
9
+ ],
10
+ "homepage": "https://github.com/alex-lit/lint-kit#readme",
11
+ "bugs": {
12
+ "url": "https://github.com/alex-lit/lint-kit/issues"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/alex-lit/lint-kit.git",
17
+ "directory": "packages/config-prettier"
18
+ },
19
+ "license": "MIT",
20
+ "author": "Alexey Litovchenko",
21
+ "maintainers": [
22
+ "Alexey Litovchenko <alex.lit@outlook.com> (https://alexlit.gitlab.io)"
23
+ ],
24
+ "main": "index.js",
25
+ "files": [
26
+ "README.md",
27
+ "index.js",
28
+ "plugins"
29
+ ],
30
+ "scripts": {
31
+ "semver": "../../scripts/semver.sh",
32
+ "up": "../../scripts/up.sh"
33
+ },
34
+ "dependencies": {
35
+ "@prettier/plugin-php": "^0.21.0",
36
+ "@prettier/plugin-pug": "^3.0.0",
37
+ "@prettier/plugin-ruby": "^4.0.2",
38
+ "@prettier/plugin-xml": "^3.2.2",
39
+ "prettier": "^3.0.3",
40
+ "prettier-plugin-jsdoc": "^1.1.1",
41
+ "prettier-plugin-packagejson": "^2.4.6",
42
+ "prettier-plugin-sh": "^0.13.1",
43
+ "prettier-plugin-solidity": "^1.1.3",
44
+ "prettier-plugin-sort-json": "^3.1.0",
45
+ "prettier-plugin-sql": "^0.15.1",
46
+ "prettier-plugin-svelte": "^3.0.3",
47
+ "prettier-plugin-tailwindcss": "^0.5.6"
48
+ }
49
+ }
@@ -0,0 +1,4 @@
1
+ /** @see [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) */
2
+ module.exports = {
3
+ tailwindFunctions: ['tw'],
4
+ };
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [38.4.0](https://github.com/alex-lit/lint-kit/compare/v38.3.0...v38.4.0) (2023-11-01)
6
+
7
+ ## [38.3.0](https://github.com/alex-lit/lint-kit/compare/v15.0.0...v38.3.0) (2023-11-01)
8
+
5
9
  ## [38.2.0](https://github.com/alex-lit/lint-kit/compare/v14.0.2...v38.2.0) (2023-10-30)
6
10
 
7
11
  ### [38.1.1](https://github.com/alex-lit/lint-kit/compare/v105.1.1...v38.1.1) (2023-10-25)
@@ -1,59 +1,59 @@
1
- {
2
- "name": "@alexlit/config-stylelint",
3
- "version": "38.2.0",
4
- "private": false,
5
- "description": "Stylelint config",
6
- "keywords": [
7
- "stylelint",
8
- "config"
9
- ],
10
- "homepage": "https://github.com/alex-lit/lint-kit#readme",
11
- "bugs": {
12
- "url": "https://github.com/alex-lit/lint-kit/issues"
13
- },
14
- "repository": {
15
- "type": "git",
16
- "url": "https://github.com/alex-lit/lint-kit.git",
17
- "directory": "packages/config-stylelint"
18
- },
19
- "license": "MIT",
20
- "author": "Alexey Litovchenko",
21
- "maintainers": [
22
- "Alexey Litovchenko <alex.lit@outlook.com> (https://alexlit.gitlab.io)"
23
- ],
24
- "main": "index.js",
25
- "files": [
26
- "README.md",
27
- "index.js",
28
- "plugins"
29
- ],
30
- "scripts": {
31
- "semver": "../../scripts/semver.sh",
32
- "up": "../../scripts/up.sh"
33
- },
34
- "dependencies": {
35
- "@double-great/stylelint-a11y": "^2.0.2",
36
- "postcss": "^8.4.31",
37
- "postcss-html": "^1.5.0",
38
- "prettier": "^3.0.3",
39
- "stylelint": "^15.11.0",
40
- "stylelint-at-rule-no-children": "^0.3.1",
41
- "stylelint-color-format": "^1.1.0",
42
- "stylelint-config-recommended-vue": "^1.5.0",
43
- "stylelint-config-standard": "^34.0.0",
44
- "stylelint-config-standard-scss": "^11.0.0",
45
- "stylelint-declaration-block-no-ignored-properties": "^2.7.0",
46
- "stylelint-gamut": "^1.3.3",
47
- "stylelint-high-performance-animation": "^1.9.0",
48
- "stylelint-no-indistinguishable-colors": "^1.3.2",
49
- "stylelint-no-nested-media": "^0.1.0",
50
- "stylelint-no-unresolved-module": "^2.2.1",
51
- "stylelint-no-unsupported-browser-features": "^7.0.0",
52
- "stylelint-order": "^6.0.3",
53
- "stylelint-plugin-logical-css": "^0.13.2",
54
- "stylelint-prettier": "^4.0.2",
55
- "stylelint-scss": "^5.3.0",
56
- "stylelint-selector-no-empty": "^1.0.9",
57
- "stylelint-use-nesting": "^4.1.0"
58
- }
59
- }
1
+ {
2
+ "name": "@alexlit/config-stylelint",
3
+ "version": "38.4.0",
4
+ "private": false,
5
+ "description": "Stylelint config",
6
+ "keywords": [
7
+ "stylelint",
8
+ "config"
9
+ ],
10
+ "homepage": "https://github.com/alex-lit/lint-kit#readme",
11
+ "bugs": {
12
+ "url": "https://github.com/alex-lit/lint-kit/issues"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/alex-lit/lint-kit.git",
17
+ "directory": "packages/config-stylelint"
18
+ },
19
+ "license": "MIT",
20
+ "author": "Alexey Litovchenko",
21
+ "maintainers": [
22
+ "Alexey Litovchenko <alex.lit@outlook.com> (https://alexlit.gitlab.io)"
23
+ ],
24
+ "main": "index.js",
25
+ "files": [
26
+ "README.md",
27
+ "index.js",
28
+ "plugins"
29
+ ],
30
+ "scripts": {
31
+ "semver": "../../scripts/semver.sh",
32
+ "up": "../../scripts/up.sh"
33
+ },
34
+ "dependencies": {
35
+ "@double-great/stylelint-a11y": "^2.0.2",
36
+ "postcss": "^8.4.31",
37
+ "postcss-html": "^1.5.0",
38
+ "prettier": "^3.0.3",
39
+ "stylelint": "^15.11.0",
40
+ "stylelint-at-rule-no-children": "^0.3.1",
41
+ "stylelint-color-format": "^1.1.0",
42
+ "stylelint-config-recommended-vue": "^1.5.0",
43
+ "stylelint-config-standard": "^34.0.0",
44
+ "stylelint-config-standard-scss": "^11.0.0",
45
+ "stylelint-declaration-block-no-ignored-properties": "^2.7.0",
46
+ "stylelint-gamut": "^1.3.3",
47
+ "stylelint-high-performance-animation": "^1.9.0",
48
+ "stylelint-no-indistinguishable-colors": "^1.3.2",
49
+ "stylelint-no-nested-media": "^0.1.0",
50
+ "stylelint-no-unresolved-module": "^2.2.1",
51
+ "stylelint-no-unsupported-browser-features": "^7.0.0",
52
+ "stylelint-order": "^6.0.3",
53
+ "stylelint-plugin-logical-css": "^0.13.2",
54
+ "stylelint-prettier": "^4.0.2",
55
+ "stylelint-scss": "^5.3.0",
56
+ "stylelint-selector-no-empty": "^1.0.9",
57
+ "stylelint-use-nesting": "^4.1.0"
58
+ }
59
+ }
@@ -25,8 +25,11 @@ module.exports = {
25
25
  true,
26
26
  {
27
27
  ignoreAtRules: [
28
- 'apply',
29
28
  'container',
29
+ // tailwind
30
+ 'apply',
31
+ 'config',
32
+ 'layer',
30
33
  'responsive',
31
34
  'screen',
32
35
  'tailwind',
@@ -63,7 +66,19 @@ module.exports = {
63
66
  'scss/dollar-variable-pattern': KEBAB_CASE_PATTERN,
64
67
  'scss/double-slash-comment-whitespace-inside': 'always',
65
68
  'scss/function-color-relative': true,
66
- 'scss/function-no-unknown': [true, { ignoreFunctions: ['v-bind'] }],
69
+
70
+ 'scss/function-no-unknown': [
71
+ true,
72
+ {
73
+ ignoreFunctions: [
74
+ // vue
75
+ 'v-bind',
76
+ // tailwind
77
+ 'theme',
78
+ ],
79
+ },
80
+ ],
81
+
67
82
  'scss/function-quote-no-quoted-strings-inside': true,
68
83
  'scss/function-unquote-no-unquoted-strings-inside': true,
69
84
  'scss/map-keys-quotes': 'always',
@@ -0,0 +1,10 @@
1
+ # Подсчет кол-ва строк кода в исходных файлах
2
+
3
+ YELLOW='\e[33m'
4
+ DEFAULT='\e[39m'
5
+
6
+ clear
7
+
8
+ echo -e "${YELLOW}Проверяю editorconfig...${DEFAULT}"
9
+
10
+ npx editorconfig-checker
package/scripts/semver.sh CHANGED
@@ -1,6 +1,6 @@
1
1
  # Обновляет версию пакета
2
2
 
3
- VERSION=${1:-patch} # <major | minor | patch>
3
+ VERSION=${1:-patch} # <major | minor | patch | premajor | preminor | prepatch | prerelease>
4
4
 
5
5
  DEFAULT='\e[39m'
6
6
  GREEN='\e[32m'
@@ -12,7 +12,7 @@ clear
12
12
 
13
13
  echo -e "${YELLOW}Поднимаю ${GREEN}${VERSION}${YELLOW} версию пакета ${GREEN}${CURRENT_DIR}${YELLOW}...${DEFAULT}"
14
14
 
15
- git add .
16
- git commit -m "chore(${CURRENT_DIR}): preparing for version update"
15
+ # git add .
16
+ # git commit -m "chore(${CURRENT_DIR}): preparing for version update"
17
17
 
18
- standard-version --release-as ${VERSION} --releaseCommitMessageFormat "chore(release:${CURRENT_DIR}): {{currentTag}}"
18
+ changelogen --bump --${VERSION} --release --push --publish