@alexlit/lint-kit 106.1.4 → 106.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/lint-kit",
3
- "version": "106.1.4",
3
+ "version": "106.2.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": [
@@ -65,13 +65,13 @@
65
65
  },
66
66
  "dependencies": {
67
67
  "@alexlit/config-commitlint": "^10.1.0",
68
- "@alexlit/config-eslint": "^70.0.0",
68
+ "@alexlit/config-eslint": "^70.1.2",
69
69
  "@alexlit/config-hooks": "^0.0.2",
70
70
  "@alexlit/config-htmllint": "^1.0.1",
71
71
  "@alexlit/config-markdownlint": "^2.0.2",
72
72
  "@alexlit/config-npmlint": "^5.0.1",
73
73
  "@alexlit/config-prettier": "^14.0.2",
74
- "@alexlit/config-stylelint": "^38.1.1"
74
+ "@alexlit/config-stylelint": "^38.5.0"
75
75
  },
76
76
  "devDependencies": {
77
77
  "changelogen": "latest",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-commitlint",
3
- "version": "10.1.0",
3
+ "version": "10.2.0",
4
4
  "private": false,
5
5
  "description": "Commitlint config",
6
6
  "keywords": [
@@ -31,8 +31,8 @@
31
31
  "up": "../../scripts/up.sh"
32
32
  },
33
33
  "dependencies": {
34
- "@commitlint/cli": "^18.2.0",
35
- "@commitlint/config-conventional": "^18.1.0",
34
+ "@commitlint/cli": "^18.4.0",
35
+ "@commitlint/config-conventional": "^18.4.0",
36
36
  "conventional-changelog-cli": "^4.1.0"
37
37
  }
38
- }
38
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-eslint",
3
- "version": "70.1.0",
3
+ "version": "70.4.0",
4
4
  "private": false,
5
5
  "description": "Eslint config",
6
6
  "keywords": [
@@ -34,10 +34,10 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@intlify/eslint-plugin-vue-i18n": "^2.0.0",
37
- "@tanstack/eslint-plugin-query": "^5.0.5",
38
- "@typescript-eslint/eslint-plugin": "^6.9.1",
39
- "@typescript-eslint/parser": "^6.9.1",
40
- "eslint": "^8.52.0",
37
+ "@tanstack/eslint-plugin-query": "^5.6.0",
38
+ "@typescript-eslint/eslint-plugin": "^6.10.0",
39
+ "@typescript-eslint/parser": "^6.10.0",
40
+ "eslint": "^8.53.0",
41
41
  "eslint-config-airbnb-base": "^15.0.0",
42
42
  "eslint-config-prettier": "^9.0.0",
43
43
  "eslint-define-config": "^1.24.1",
@@ -50,7 +50,7 @@
50
50
  "eslint-plugin-ext": "^0.1.0",
51
51
  "eslint-plugin-filenames": "^1.3.2",
52
52
  "eslint-plugin-import": "^2.29.0",
53
- "eslint-plugin-jsdoc": "^46.8.2",
53
+ "eslint-plugin-jsdoc": "^46.9.0",
54
54
  "eslint-plugin-jsx-a11y": "^6.8.0",
55
55
  "eslint-plugin-lit": "^1.10.1",
56
56
  "eslint-plugin-lit-a11y": "^4.1.1",
@@ -67,21 +67,21 @@
67
67
  "eslint-plugin-regexp": "^2.1.1",
68
68
  "eslint-plugin-security": "^1.7.1",
69
69
  "eslint-plugin-simple-import-sort": "^10.0.0",
70
- "eslint-plugin-sonarjs": "^0.22.0",
70
+ "eslint-plugin-sonarjs": "^0.23.0",
71
71
  "eslint-plugin-sort-class-members": "^1.19.0",
72
72
  "eslint-plugin-sort-destructure-keys": "^1.5.0",
73
73
  "eslint-plugin-sort-keys-fix": "^1.1.2",
74
74
  "eslint-plugin-spellcheck": "^0.0.20",
75
75
  "eslint-plugin-sql": "^2.5.0",
76
- "eslint-plugin-testing-library": "^6.1.0",
76
+ "eslint-plugin-testing-library": "^6.1.2",
77
77
  "eslint-plugin-typescript-sort-keys": "^3.1.0",
78
78
  "eslint-plugin-unicorn": "^49.0.0",
79
79
  "eslint-plugin-unused-imports": "^3.0.0",
80
- "eslint-plugin-vitest": "^0.3.8",
80
+ "eslint-plugin-vitest": "^0.3.9",
81
81
  "eslint-plugin-vue": "^9.18.1",
82
82
  "eslint-plugin-vuejs-accessibility": "^2.2.0",
83
83
  "eslint-plugin-wc": "^2.0.4",
84
84
  "eslint-plugin-write-good-comments": "^0.2.0",
85
85
  "typescript": "^5.2.2"
86
86
  }
87
- }
87
+ }
@@ -43,7 +43,51 @@ module.exports = {
43
43
 
44
44
  'import/first': 'error',
45
45
  'import/no-mutable-exports': 'error',
46
- 'import/order': 'off', // delegated to simple-import-sort plugin
46
+
47
+ 'import/order': [
48
+ 'error',
49
+ {
50
+ alphabetize: { caseInsensitive: true, order: 'asc' },
51
+
52
+ groups: [
53
+ 'builtin',
54
+ 'external',
55
+ 'internal',
56
+ 'parent',
57
+ 'sibling',
58
+ 'index',
59
+ ],
60
+
61
+ 'newlines-between': 'always',
62
+
63
+ pathGroups: [
64
+ { group: 'internal', pattern: '{@,~}/core/**', position: 'after' },
65
+ { group: 'internal', pattern: '{@,~}/modules/**', position: 'after' },
66
+ // FSD
67
+ {
68
+ group: 'internal',
69
+ pattern: '{@,~}/processes/**',
70
+ position: 'after',
71
+ },
72
+ { group: 'internal', pattern: '{@,~}/pages/**', position: 'after' },
73
+ { group: 'internal', pattern: '{@,~}/widgets/**', position: 'after' },
74
+ {
75
+ group: 'internal',
76
+ pattern: '{@,~}/features/**',
77
+ position: 'after',
78
+ },
79
+ {
80
+ group: 'internal',
81
+ pattern: '{@,~}/entities/**',
82
+ position: 'after',
83
+ },
84
+ { group: 'internal', pattern: '{@,~}/shared/**', position: 'after' },
85
+ ],
86
+
87
+ pathGroupsExcludedImportTypes: ['builtin'],
88
+ },
89
+ ],
90
+
47
91
  'import/prefer-default-export': 'off',
48
92
  },
49
93
 
@@ -66,7 +110,18 @@ module.exports = {
66
110
  ],
67
111
  },
68
112
 
69
- node: { extensions: ['.d.ts', '.js', '.json', '.mjs', '.mts', '.ts'] },
113
+ node: {
114
+ extensions: [
115
+ '.cjs',
116
+ '.cts',
117
+ '.d.ts',
118
+ '.js',
119
+ '.json',
120
+ '.mjs',
121
+ '.mts',
122
+ '.ts',
123
+ ],
124
+ },
70
125
  },
71
126
  },
72
127
  };
@@ -3,7 +3,6 @@ module.exports = {
3
3
  plugins: ['simple-import-sort'],
4
4
 
5
5
  rules: {
6
- 'simple-import-sort/exports': 'warn',
7
- 'simple-import-sort/imports': 'warn',
6
+ 'simple-import-sort/exports': 'error',
8
7
  },
9
8
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-npmlint",
3
- "version": "5.0.1",
3
+ "version": "5.1.0",
4
4
  "private": false,
5
5
  "description": "npmlint config",
6
6
  "keywords": [
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "lockfile-lint": "^4.12.1",
39
- "npm-package-json-lint": "^7.0.0",
39
+ "npm-package-json-lint": "^7.1.0",
40
40
  "npm-package-json-lint-config-default": "^6.0.0"
41
41
  }
42
- }
42
+ }
@@ -16,7 +16,7 @@ module.exports = {
16
16
  'prettier-plugin-sql',
17
17
  'prettier-plugin-svelte',
18
18
 
19
- 'prettier-plugin-tailwindcss',
19
+ // 'prettier-plugin-tailwindcss',
20
20
  ],
21
21
 
22
22
  proseWrap: 'always',
@@ -29,6 +29,6 @@ module.exports = {
29
29
  ...require('./plugins/pug'),
30
30
  ...require('./plugins/sort-json'),
31
31
  ...require('./plugins/svelte'),
32
- ...require('./plugins/tailwindcss'),
32
+ // ...require('./plugins/tailwindcss'),
33
33
  ...require('./plugins/xml'),
34
34
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-prettier",
3
- "version": "15.0.0",
3
+ "version": "15.3.0",
4
4
  "private": false,
5
5
  "description": "prettier config",
6
6
  "keywords": [
@@ -40,10 +40,10 @@
40
40
  "prettier-plugin-jsdoc": "^1.1.1",
41
41
  "prettier-plugin-packagejson": "^2.4.6",
42
42
  "prettier-plugin-sh": "^0.13.1",
43
- "prettier-plugin-solidity": "^1.1.3",
43
+ "prettier-plugin-solidity": "^1.2.0",
44
44
  "prettier-plugin-sort-json": "^3.1.0",
45
- "prettier-plugin-sql": "^0.15.1",
45
+ "prettier-plugin-sql": "^0.15.3",
46
46
  "prettier-plugin-svelte": "^3.0.3",
47
- "prettier-plugin-tailwindcss": "^0.5.6"
47
+ "prettier-plugin-tailwindcss": "^0.5.7"
48
48
  }
49
- }
49
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-stylelint",
3
- "version": "38.4.0",
3
+ "version": "38.5.1",
4
4
  "private": false,
5
5
  "description": "Stylelint config",
6
6
  "keywords": [
@@ -41,7 +41,7 @@
41
41
  "stylelint-color-format": "^1.1.0",
42
42
  "stylelint-config-recommended-vue": "^1.5.0",
43
43
  "stylelint-config-standard": "^34.0.0",
44
- "stylelint-config-standard-scss": "^11.0.0",
44
+ "stylelint-config-standard-scss": "^11.1.0",
45
45
  "stylelint-declaration-block-no-ignored-properties": "^2.7.0",
46
46
  "stylelint-gamut": "^1.3.3",
47
47
  "stylelint-high-performance-animation": "^1.9.0",
@@ -52,8 +52,8 @@
52
52
  "stylelint-order": "^6.0.3",
53
53
  "stylelint-plugin-logical-css": "^0.13.2",
54
54
  "stylelint-prettier": "^4.0.2",
55
- "stylelint-scss": "^5.3.0",
55
+ "stylelint-scss": "^5.3.1",
56
56
  "stylelint-selector-no-empty": "^1.0.9",
57
57
  "stylelint-use-nesting": "^4.1.0"
58
58
  }
59
- }
59
+ }
package/scripts/semver.sh CHANGED
@@ -12,7 +12,11 @@ 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
+ changelogen --bump --${VERSION}
16
+
17
+ if [ $CURRENT_DIR != 'lint-kit' ]; then
18
+ rm CHANGELOG.md
19
+ fi
17
20
 
18
- changelogen --bump --${VERSION} --release --push --publish
21
+ git add .
22
+ git commit -m "chore(${CURRENT_DIR}): bump version"
@@ -1,9 +0,0 @@
1
- # Changelog
2
-
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
-
5
- ## [10.1.0](https://github.com/alex-lit/lint-kit/compare/v105.1.2...v10.1.0) (2023-10-30)
6
-
7
- ## [10.0.0](https://github.com/alex-lit/lint-kit/compare/v104.0.0...v10.0.0) (2023-10-24)
8
-
9
- ### [9.0.14](https://github.com/alex-lit/lint-kit/compare/v9.0.13...v9.0.14) (2023-10-20)
@@ -1,47 +0,0 @@
1
- # Changelog
2
-
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
-
5
- ## [70.1.0](https://github.com/alex-lit/lint-kit/compare/v70.0.2...v70.1.0) (2023-11-02)
6
-
7
- ### [70.0.2](https://github.com/alex-lit/lint-kit/compare/v70.0.1...v70.0.2) (2023-11-01)
8
-
9
- ### [70.0.1](https://github.com/alex-lit/lint-kit/compare/v38.4.0...v70.0.1) (2023-11-01)
10
-
11
- ## [70.0.0](https://github.com/alex-lit/lint-kit/compare/v38.2.0...v70.0.0) (2023-10-30)
12
-
13
- ## [69.2.0](https://github.com/alex-lit/lint-kit/compare/v105.0.0...v69.2.0) (2023-10-25)
14
-
15
- ## [69.1.0](https://github.com/alex-lit/lint-kit/compare/v10.0.0...v69.1.0) (2023-10-24)
16
-
17
- ### [69.0.1](https://github.com/alex-lit/lint-kit/compare/v38.0.0...v69.0.1) (2023-10-20)
18
-
19
- ## [69.0.0](https://github.com/alex-lit/lint-kit/compare/v9.0.0...v69.0.0) (2023-10-20)
20
-
21
- ## [68.0.0](https://github.com/alex-lit/lint-kit/compare/v67.0.44...v68.0.0) (2023-10-20)
22
-
23
- ## [67.1.0](https://github.com/alex-lit/lint-kit/compare/v67.0.44...v67.1.0) (2023-10-20)
24
-
25
- ### [67.0.46](https://github.com/alex-lit/lint-kit/compare/v67.0.44...v67.0.46) (2023-10-20)
26
-
27
- ### [67.0.45](https://github.com/alex-lit/lint-kit/compare/v67.0.44...v67.0.45) (2023-10-20)
28
-
29
- ### [67.0.44](https://github.com/alex-lit/lint-kit/compare/v67.0.43...v67.0.44) (2023-10-20)
30
-
31
- ### [67.0.43](https://github.com/alex-lit/lint-kit/compare/v67.0.42...v67.0.43) (2023-10-20)
32
-
33
- ### [67.0.42](https://github.com/alex-lit/lint-kit/compare/v67.0.41...v67.0.42) (2023-10-20)
34
-
35
- ### [67.0.41](https://github.com/alex-lit/lint-kit/compare/v67.0.40...v67.0.41) (2023-10-20)
36
-
37
- ### [67.0.40](https://github.com/alex-lit/lint-kit/compare/v67.0.39...v67.0.40) (2023-10-20)
38
-
39
- ### [67.0.39](https://github.com/alex-lit/lint-kit/compare/v67.0.38...v67.0.39) (2023-10-20)
40
-
41
- ### [67.0.38](https://github.com/alex-lit/lint-kit/compare/v67.0.37...v67.0.38) (2023-10-20)
42
-
43
- ### [67.0.37](https://github.com/alex-lit/lint-kit/compare/v67.0.36...v67.0.37) (2023-10-20)
44
-
45
- ### [67.0.36](https://github.com/alex-lit/lint-kit/compare/v67.0.35...v67.0.36) (2023-10-20)
46
-
47
- ### [67.0.35](https://github.com/alex-lit/lint-kit/compare/v67.0.25...v67.0.35) (2023-10-20)
@@ -1,5 +0,0 @@
1
- # Changelog
2
-
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
-
5
- ### [0.0.2](https://github.com/alex-lit/lint-kit/compare/v69.2.0...v0.0.2) (2023-10-25)
@@ -1,7 +0,0 @@
1
- # Changelog
2
-
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
-
5
- ### [1.0.1](https://github.com/alex-lit/lint-kit/compare/v9.0.1...v1.0.1) (2023-10-20)
6
-
7
- ## [1.0.0](https://github.com/alex-lit/lint-kit/compare/v69.0.0...v1.0.0) (2023-10-20)
@@ -1,9 +0,0 @@
1
- # Changelog
2
-
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
-
5
- ### [2.0.2](https://github.com/alex-lit/lint-kit/compare/v38.0.1...v2.0.2) (2023-10-20)
6
-
7
- ### [2.0.1](https://github.com/alex-lit/lint-kit/compare/v9.0.1...v2.0.1) (2023-10-20)
8
-
9
- ## [2.0.0](https://github.com/alex-lit/lint-kit/compare/v1.0.0...v2.0.0) (2023-10-20)
@@ -1,7 +0,0 @@
1
- # Changelog
2
-
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
-
5
- ### [5.0.1](https://github.com/alex-lit/lint-kit/compare/v1.0.1...v5.0.1) (2023-10-20)
6
-
7
- ## [5.0.0](https://github.com/alex-lit/lint-kit/compare/v2.0.0...v5.0.0) (2023-10-20)
@@ -1,11 +0,0 @@
1
- # Changelog
2
-
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
-
5
- ## [15.0.0](https://github.com/alex-lit/lint-kit/compare/v106.0.0...v15.0.0) (2023-11-01)
6
-
7
- ### [14.0.2](https://github.com/alex-lit/lint-kit/compare/v105.1.2...v14.0.2) (2023-10-30)
8
-
9
- ### [14.0.1](https://github.com/alex-lit/lint-kit/compare/v1.0.1...v14.0.1) (2023-10-20)
10
-
11
- ## [14.0.0](https://github.com/alex-lit/lint-kit/compare/v5.0.0...v14.0.0) (2023-10-20)
@@ -1,16 +0,0 @@
1
- # Prettier Configuration
2
-
3
- ## Installation
4
-
5
- ```sh
6
- npm i @alexlit/config-prettier -D
7
- ```
8
-
9
- ## Connection
10
-
11
- ```js
12
- // .prettierrc.js
13
- module.exports = {
14
- ...require('@alexlit/config-prettier'),
15
- };
16
- ```
@@ -1,17 +0,0 @@
1
- # Changelog
2
-
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
-
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
-
9
- ## [38.2.0](https://github.com/alex-lit/lint-kit/compare/v14.0.2...v38.2.0) (2023-10-30)
10
-
11
- ### [38.1.1](https://github.com/alex-lit/lint-kit/compare/v105.1.1...v38.1.1) (2023-10-25)
12
-
13
- ## [38.1.0](https://github.com/alex-lit/lint-kit/compare/v0.0.2...v38.1.0) (2023-10-25)
14
-
15
- ### [38.0.1](https://github.com/alex-lit/lint-kit/compare/v5.0.1...v38.0.1) (2023-10-20)
16
-
17
- ## [38.0.0](https://github.com/alex-lit/lint-kit/compare/v14.0.0...v38.0.0) (2023-10-20)