@alexlit/lint-kit 105.0.0 → 105.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.
package/.huskyrc.js CHANGED
@@ -1,6 +1,3 @@
1
1
  module.exports = {
2
- hooks: {
3
- 'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
4
- 'pre-commit': 'lint-staged',
5
- },
2
+ ...require('@alexlit/config-hooks/husky'),
6
3
  };
package/.lintstagedrc.js CHANGED
@@ -1,43 +1,3 @@
1
- /* eslint-disable vue/sort-keys */
2
- const eslint = 'eslint --fix';
3
- const htmllint = 'linthtml';
4
- const lockfilelint = 'lockfile-lint --type npm --path package-lock.json';
5
- const markdownlint = 'markdownlint --config .markdownlintrc.js --fix';
6
- const npmlint = 'npmPkgJsonLint';
7
- const prettier = 'prettier --write';
8
- const stylelint = 'stylelint --fix';
9
-
10
1
  module.exports = {
11
- '*.cjs': [eslint, prettier],
12
- '*.css': [stylelint, prettier],
13
- '*.cts': [eslint, prettier],
14
- '*.erb': [prettier],
15
- '*.html': [htmllint, prettier],
16
- '*.jade': [prettier],
17
- '*.js': [eslint, prettier],
18
- '*.json,!package-lock.json': [prettier],
19
- '*.jsx': [eslint, prettier],
20
- '*.md': [prettier, markdownlint],
21
- '*.mjs': [eslint, prettier],
22
- '*.mts': [eslint, prettier],
23
- '*.pcss': [stylelint, prettier],
24
- '*.php': [prettier],
25
- '*.postcss': [stylelint, prettier],
26
- '*.pug': [prettier],
27
- '*.rb': [prettier],
28
- '*.sass': [stylelint, prettier],
29
- '*.scss': [stylelint, prettier],
30
- '*.sh': [prettier],
31
- '*.sol': [prettier],
32
- '*.sql': [prettier],
33
- '*.svg': [prettier],
34
- '*.ts': [eslint, prettier],
35
- '*.tsx': [eslint, prettier],
36
- '*.vue': [eslint, stylelint, prettier],
37
- '*.xml': [prettier],
38
- '*.yaml': [prettier],
39
- '*.yml': [prettier],
40
- 'package-lock.json': [lockfilelint],
41
- // eslint-disable-next-line sort-keys
42
- 'package.json': [npmlint],
2
+ ...require('@alexlit/config-hooks/lint-staged'),
43
3
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/lint-kit",
3
- "version": "105.0.0",
3
+ "version": "105.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": [
@@ -64,15 +64,13 @@
64
64
  },
65
65
  "dependencies": {
66
66
  "@alexlit/config-commitlint": "^10.0.0",
67
- "@alexlit/config-eslint": "^69.1.0",
67
+ "@alexlit/config-eslint": "^69.2.0",
68
+ "@alexlit/config-hooks": "^0.0.1",
68
69
  "@alexlit/config-htmllint": "^1.0.1",
69
70
  "@alexlit/config-markdownlint": "^2.0.2",
70
71
  "@alexlit/config-npmlint": "^5.0.1",
71
72
  "@alexlit/config-prettier": "^14.0.1",
72
- "@alexlit/config-stylelint": "^38.0.1",
73
- "@commitlint/cli": "^18.0.0",
74
- "husky": "^4.3.8",
75
- "lint-staged": "^15.0.2"
73
+ "@alexlit/config-stylelint": "^38.1.0"
76
74
  },
77
75
  "devDependencies": {
78
76
  "standard-version": "^9.5.0",
@@ -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
+ ## [69.2.0](https://github.com/alex-lit/lint-kit/compare/v105.0.0...v69.2.0) (2023-10-25)
6
+
5
7
  ## [69.1.0](https://github.com/alex-lit/lint-kit/compare/v10.0.0...v69.1.0) (2023-10-24)
6
8
 
7
9
  ### [69.0.1](https://github.com/alex-lit/lint-kit/compare/v38.0.0...v69.0.1) (2023-10-20)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-eslint",
3
- "version": "69.1.0",
3
+ "version": "69.2.0",
4
4
  "private": false,
5
5
  "description": "Eslint config",
6
6
  "keywords": [
@@ -52,7 +52,7 @@
52
52
  "eslint-plugin-import": "^2.29.0",
53
53
  "eslint-plugin-jsdoc": "^46.8.2",
54
54
  "eslint-plugin-jsx-a11y": "^6.7.1",
55
- "eslint-plugin-lit": "^1.9.1",
55
+ "eslint-plugin-lit": "^1.10.1",
56
56
  "eslint-plugin-lit-a11y": "^4.1.0",
57
57
  "eslint-plugin-more": "^1.0.5",
58
58
  "eslint-plugin-no-await-in-promise": "^1.1.5",
@@ -0,0 +1,5 @@
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)
@@ -0,0 +1,23 @@
1
+ # Hooks Configuration
2
+
3
+ ## Installation
4
+
5
+ ```sh
6
+ npm i @alexlit/config-hooks -D
7
+ ```
8
+
9
+ ## Connection
10
+
11
+ ```js
12
+ // .huskyrc.js
13
+ module.exports = {
14
+ ...require('@alexlit/config-hooks/husky'),
15
+ };
16
+ ```
17
+
18
+ ```js
19
+ // ..lintstagedrc.js
20
+ module.exports = {
21
+ ...require('@alexlit/config-hooks/lint-staged'),
22
+ };
23
+ ```
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ hooks: {
3
+ 'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
4
+ 'pre-commit': 'lint-staged',
5
+ },
6
+ };
@@ -0,0 +1,43 @@
1
+ /* eslint-disable vue/sort-keys */
2
+ const eslint = 'eslint --fix';
3
+ const htmllint = 'linthtml';
4
+ const lockfilelint = 'lockfile-lint --type npm --path package-lock.json';
5
+ const markdownlint = 'markdownlint --config .markdownlintrc.js --fix';
6
+ const npmlint = 'npmPkgJsonLint';
7
+ const prettier = 'prettier --write';
8
+ const stylelint = 'stylelint --fix';
9
+
10
+ module.exports = {
11
+ '*.cjs': [eslint, prettier],
12
+ '*.css': [stylelint, prettier],
13
+ '*.cts': [eslint, prettier],
14
+ '*.erb': [prettier],
15
+ '*.html': [htmllint, prettier],
16
+ '*.jade': [prettier],
17
+ '*.js': [eslint, prettier],
18
+ '*.json,!package-lock.json': [prettier],
19
+ '*.jsx': [eslint, prettier],
20
+ '*.md': [prettier, markdownlint],
21
+ '*.mjs': [eslint, prettier],
22
+ '*.mts': [eslint, prettier],
23
+ '*.pcss': [stylelint, prettier],
24
+ '*.php': [prettier],
25
+ '*.postcss': [stylelint, prettier],
26
+ '*.pug': [prettier],
27
+ '*.rb': [prettier],
28
+ '*.sass': [stylelint, prettier],
29
+ '*.scss': [stylelint, prettier],
30
+ '*.sh': [prettier],
31
+ '*.sol': [prettier],
32
+ '*.sql': [prettier],
33
+ '*.svg': [prettier],
34
+ '*.ts': [eslint, prettier],
35
+ '*.tsx': [eslint, prettier],
36
+ '*.vue': [eslint, stylelint, prettier],
37
+ '*.xml': [prettier],
38
+ '*.yaml': [prettier],
39
+ '*.yml': [prettier],
40
+ 'package-lock.json': [lockfilelint],
41
+ // eslint-disable-next-line sort-keys
42
+ 'package.json': [npmlint],
43
+ };
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "@alexlit/config-hooks",
3
+ "version": "0.0.2",
4
+ "private": false,
5
+ "description": "Hooks config",
6
+ "keywords": [
7
+ "hooks",
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-hooks"
18
+ },
19
+ "license": "MIT",
20
+ "author": "Alexey Litovchenko",
21
+ "maintainers": [
22
+ "Alexey Litovchenko <alex.lit@outlook.com> (https://alexlit.gitlab.io)"
23
+ ],
24
+ "main": "",
25
+ "files": [
26
+ "README.md",
27
+ "husky.js",
28
+ "lint-staged.js"
29
+ ],
30
+ "scripts": {
31
+ "semver": "../../scripts/semver.sh",
32
+ "up": "../../scripts/up.sh"
33
+ },
34
+ "dependencies": {
35
+ "husky": "^4.3.8",
36
+ "lint-staged": "^15.0.2"
37
+ }
38
+ }
@@ -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
+ ## [38.1.0](https://github.com/alex-lit/lint-kit/compare/v0.0.2...v38.1.0) (2023-10-25)
6
+
5
7
  ### [38.0.1](https://github.com/alex-lit/lint-kit/compare/v5.0.1...v38.0.1) (2023-10-20)
6
8
 
7
9
  ## [38.0.0](https://github.com/alex-lit/lint-kit/compare/v14.0.0...v38.0.0) (2023-10-20)
@@ -15,8 +15,9 @@ module.exports = {
15
15
  '@alexlit/config-stylelint',
16
16
 
17
17
  /* optional */
18
+ '@alexlit/config-stylelint/plugins/optional/gamut',
18
19
  '@alexlit/config-stylelint/plugins/optional/no-indistinguishable-colors',
19
- '@alexlit/config-stylelint/plugins/optional/use-logical-spec',
20
+ '@alexlit/config-stylelint/plugins/optional/logical-css',
20
21
  ],
21
22
 
22
23
  ignoreFiles: [...require('@alexlit/config-stylelint').ignoreFiles],
@@ -30,9 +31,3 @@ module.exports = {
30
31
  ```sh
31
32
  npx stylelint-find-new-rules
32
33
  ```
33
-
34
- - Check rules that are in conflict with Prettier
35
-
36
- ```sh
37
- npx stylelint-config-prettier-check
38
- ```
@@ -23,7 +23,6 @@ module.exports = {
23
23
  // './plugins/gamut',
24
24
  // './plugins/no-indistinguishable-colors',
25
25
  // './plugins/optional/logical-css',
26
- // './plugins/optional/use-logical-spec',
27
26
  ].map((config) => require.resolve(config)),
28
27
  ],
29
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-stylelint",
3
- "version": "38.0.1",
3
+ "version": "38.1.0",
4
4
  "private": false,
5
5
  "description": "Stylelint config",
6
6
  "keywords": [
@@ -54,7 +54,6 @@
54
54
  "stylelint-prettier": "^4.0.2",
55
55
  "stylelint-scss": "^5.2.1",
56
56
  "stylelint-selector-no-empty": "^1.0.9",
57
- "stylelint-use-logical-spec": "^5.0.0",
58
57
  "stylelint-use-nesting": "^4.1.0"
59
58
  }
60
59
  }
@@ -3,7 +3,13 @@ module.exports = {
3
3
  plugins: ['stylelint-plugin-logical-css'],
4
4
 
5
5
  rules: {
6
- 'plugin/use-logical-properties-and-values': [true, { severity: 'warning' }],
6
+ 'plugin/use-logical-properties-and-values': [
7
+ true,
8
+ {
9
+ ignore: ['overflow-y', 'overflow-x'],
10
+ severity: 'warning',
11
+ },
12
+ ],
7
13
 
8
14
  'plugin/use-logical-units': [true, { severity: 'warning' }],
9
15
  },
@@ -15,4 +15,4 @@ if [ $OPTION ] && [ $OPTION = 'fix' ]; then
15
15
  echo -e "${COLOR_ARROW}autofix:${COLOR_DEFAULT} true"
16
16
  fi
17
17
 
18
- eslint --ext ${FILES} --ignore-path .gitignore --ignore-path .eslintignore ./ --${OPTION}
18
+ eslint --ext ${FILES} --ignore-path .gitignore --ignore-path .eslintignore --ignore-path .prettierignore ./ --${OPTION}
@@ -1,8 +0,0 @@
1
- /** @see [stylelint-use-logical-spec](https://github.com/Jordan-Hall/stylelint-use-logical-spec) */
2
- module.exports = {
3
- plugins: ['stylelint-use-logical-spec'],
4
-
5
- rules: {
6
- 'liberty/use-logical-spec': ['always'],
7
- },
8
- };