@alexlit/lint-kit 107.2.2 → 107.3.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": "107.2.2",
3
+ "version": "107.3.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": [
@@ -34,18 +34,19 @@
34
34
  "url": "https://alexlit.gitlab.io"
35
35
  }
36
36
  ],
37
+ "type": "module",
37
38
  "main": "README.md",
38
39
  "files": [
39
- ".commitlintrc.js",
40
- ".eslintrc.js",
41
- ".huskyrc.js",
42
- ".linthtmlrc.js",
43
- ".lintstagedrc.js",
44
- ".markdownlintrc.js",
40
+ ".commitlintrc.cjs",
41
+ ".eslintrc.cjs",
42
+ ".huskyrc.cjs",
43
+ ".linthtmlrc.cjs",
44
+ ".lintstagedrc.cjs",
45
+ ".markdownlintrc.cjs",
45
46
  ".npmpackagejsonlintrc.json",
46
47
  ".npmrc",
47
- ".prettierrc.js",
48
- ".stylelintrc.js",
48
+ ".prettierrc.cjs",
49
+ ".stylelintrc.cjs",
49
50
  "packages",
50
51
  "scripts"
51
52
  ],
@@ -65,6 +66,6 @@
65
66
  },
66
67
  "devDependencies": {
67
68
  "changelogen": "latest",
68
- "typescript": "^5.2.2"
69
+ "typescript": "^5.3.2"
69
70
  }
70
71
  }
@@ -23,8 +23,9 @@ const specialized = [
23
23
  module.exports = [
24
24
  ...programming,
25
25
  ...specialized,
26
- 'changelogen',
26
+ 'jsonc',
27
27
  'aave',
28
+ 'changelogen',
28
29
  'maxerr',
29
30
  'tailwindcss',
30
31
  'airbnb',
@@ -3,6 +3,7 @@
3
3
 
4
4
  const { defineConfig } = require('eslint-define-config');
5
5
 
6
+ /// <reference types="@eslint-types/typescript-eslint" />
6
7
  module.exports = defineConfig({
7
8
  env: {
8
9
  browser: true,
@@ -80,7 +81,7 @@ module.exports = defineConfig({
80
81
 
81
82
  overrides: [
82
83
  {
83
- files: ['.*.js', '.*.ts', '*.config.js', '*.config.ts'],
84
+ files: ['.*.cjs', '.*.js'],
84
85
 
85
86
  rules: {
86
87
  'global-require': 'off',
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-eslint",
3
- "version": "70.5.1",
3
+ "version": "72.1.0",
4
4
  "private": false,
5
5
  "description": "Eslint config",
6
6
  "keywords": [
@@ -35,12 +35,12 @@
35
35
  "dependencies": {
36
36
  "@intlify/eslint-plugin-vue-i18n": "^2.0.0",
37
37
  "@tanstack/eslint-plugin-query": "^5.8.4",
38
- "@typescript-eslint/eslint-plugin": "^6.11.0",
39
- "@typescript-eslint/parser": "^6.11.0",
40
- "eslint": "^8.53.0",
38
+ "@typescript-eslint/eslint-plugin": "^6.12.0",
39
+ "@typescript-eslint/parser": "^6.12.0",
40
+ "eslint": "^8.54.0",
41
41
  "eslint-config-airbnb-base": "^15.0.0",
42
42
  "eslint-config-prettier": "^9.0.0",
43
- "eslint-define-config": "^1.24.1",
43
+ "eslint-define-config": "^2.0.0",
44
44
  "eslint-import-resolver-alias": "^1.1.2",
45
45
  "eslint-plugin-array-func": "^4.0.0",
46
46
  "eslint-plugin-compat": "^4.2.0",
@@ -77,11 +77,11 @@
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.9",
80
+ "eslint-plugin-vitest": "^0.3.10",
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
- "typescript": "^5.2.2"
85
+ "typescript": "^5.3.2"
86
86
  }
87
87
  }
@@ -2,7 +2,7 @@
2
2
  const eslint = 'eslint --fix';
3
3
  const htmllint = 'linthtml';
4
4
  const lockfilelint = 'lockfile-lint --type npm --path package-lock.json';
5
- const markdownlint = 'markdownlint --config .markdownlintrc.js --fix';
5
+ const markdownlint = 'markdownlint --fix';
6
6
  const npmlint = 'npmPkgJsonLint';
7
7
  const prettier = 'prettier --write';
8
8
  const stylelint = 'stylelint --fix';
@@ -10,16 +10,16 @@ const stylelint = 'stylelint --fix';
10
10
  module.exports = {
11
11
  '*.cjs': [eslint, prettier],
12
12
  '*.css': [stylelint, prettier],
13
- '*.cts': [eslint, prettier],
14
13
  '*.erb': [prettier],
15
14
  '*.html': [htmllint, prettier],
16
15
  '*.jade': [prettier],
17
16
  '*.js': [eslint, prettier],
18
17
  '*.json,!package-lock.json': [prettier],
18
+ '*.jsonc': [prettier],
19
+ '*.jsonp': [prettier],
19
20
  '*.jsx': [eslint, prettier],
20
21
  '*.md': [prettier, markdownlint],
21
22
  '*.mjs': [eslint, prettier],
22
- '*.mts': [eslint, prettier],
23
23
  '*.pcss': [stylelint, prettier],
24
24
  '*.php': [prettier],
25
25
  '*.postcss': [stylelint, prettier],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-hooks",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "private": false,
5
5
  "description": "Hooks config",
6
6
  "keywords": [
@@ -8,9 +8,9 @@ npm i @alexlit/config-markdownlint -D
8
8
 
9
9
  ## Connection
10
10
 
11
- ```js
12
- // .markdownlintrc.js
13
- module.exports = {
14
- ...require('@alexlit/config-markdownlint'),
15
- };
11
+ ```json
12
+ // .markdownlint.json
13
+ {
14
+ "extends": "@alexlit/config-markdownlint"
15
+ }
16
16
  ```
@@ -0,0 +1,17 @@
1
+ {
2
+ "code-block-style": { "style": "fenced" },
3
+ "code-fence-style": { "style": "backtick" },
4
+ "default": true,
5
+ "first-line-heading": false,
6
+
7
+ "line-length": {
8
+ "code_blocks": false,
9
+ "headings": false,
10
+ "strict": false,
11
+ "tables": false
12
+ },
13
+
14
+ "no-inline-html": false,
15
+ "ol-prefix": { "style": "ordered" },
16
+ "ul-style": { "style": "dash" }
17
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-markdownlint",
3
- "version": "2.0.3",
3
+ "version": "2.1.0",
4
4
  "private": false,
5
5
  "description": "markdownlint config",
6
6
  "keywords": [
@@ -21,10 +21,10 @@
21
21
  "maintainers": [
22
22
  "Alexey Litovchenko <alex.lit@outlook.com> (https://alexlit.gitlab.io)"
23
23
  ],
24
- "main": "index.js",
24
+ "main": "index.json",
25
25
  "files": [
26
26
  "README.md",
27
- "index.js"
27
+ "index.json"
28
28
  ],
29
29
  "scripts": {
30
30
  "semver": "../../scripts/semver.sh",
@@ -7,7 +7,7 @@ COLOR_ARROW='\e[90m'
7
7
  COLOR_FILES='\e[96m'
8
8
  COLOR_DEFAULT='\e[39m'
9
9
 
10
- FILES='.js,.jsx,.ts,.tsx,.vue'
10
+ FILES='.cjs,.mjs,.js,.jsx,.ts,.tsx,.vue'
11
11
 
12
12
  echo -e "${COLOR_NAME}eslint ${COLOR_ARROW}-> ${COLOR_FILES}${FILES}${COLOR_DEFAULT}"
13
13
 
@@ -16,4 +16,4 @@ if [ $OPTION ] && [ $OPTION = 'fix' ]; then
16
16
  prettier --write ${FILES}
17
17
  fi
18
18
 
19
- markdownlint ${FILES} --config .markdownlintrc.js --${OPTION}
19
+ markdownlint ${FILES} --${OPTION}
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- ...require('@alexlit/config-markdownlint'),
3
- };
@@ -1,17 +0,0 @@
1
- module.exports = {
2
- 'code-block-style': { style: 'fenced' },
3
- 'code-fence-style': { style: 'backtick' },
4
- default: true,
5
- 'first-line-heading': false,
6
-
7
- 'line-length': {
8
- code_blocks: false,
9
- headings: false,
10
- strict: false,
11
- tables: false,
12
- },
13
-
14
- 'no-inline-html': false,
15
- 'ol-prefix': { style: 'ordered' },
16
- 'ul-style': { style: 'dash' },
17
- };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes