@alexlit/lint-kit 92.0.0 → 93.0.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": "92.0.0",
3
+ "version": "93.0.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": [
@@ -63,17 +63,17 @@
63
63
  "version": "./scripts/version.sh"
64
64
  },
65
65
  "dependencies": {
66
- "@alexlit/config-commitlint": "^6.4.2",
67
- "@alexlit/config-eslint": "^58.5.0",
66
+ "@alexlit/config-commitlint": "^6.5.0",
67
+ "@alexlit/config-eslint": "^59.0.0",
68
68
  "@alexlit/config-htmllint": "^0.2.4",
69
- "@alexlit/config-markdownlint": "^1.0.0",
69
+ "@alexlit/config-markdownlint": "^1.1.0",
70
70
  "@alexlit/config-npmlint": "^3.6.1",
71
- "@alexlit/config-prettier": "^10.4.3",
72
- "@alexlit/config-stylelint": "^31.0.0",
71
+ "@alexlit/config-prettier": "^10.5.0",
72
+ "@alexlit/config-stylelint": "^32.0.0",
73
73
  "husky": "^4.3.8",
74
74
  "lint-staged": "^13.2.0"
75
75
  },
76
76
  "devDependencies": {
77
- "typescript": "^4.9.5"
77
+ "typescript": "^5.0.3"
78
78
  }
79
79
  }
package/scripts/init.sh CHANGED
@@ -2,45 +2,45 @@
2
2
 
3
3
  COLOR_NAME='\e[96m'
4
4
 
5
- echo "\n${COLOR_NAME}install dependencies..."
5
+ echo -e "\n${COLOR_NAME}install dependencies..."
6
6
  npm i
7
7
 
8
- echo "\n${COLOR_NAME}get submodules..."
8
+ echo -e "\n${COLOR_NAME}get submodules..."
9
9
  git submodule update --init
10
10
 
11
11
  cd submodules
12
12
 
13
- echo "\n${COLOR_NAME}install commitlint..."
13
+ echo -e "\n${COLOR_NAME}install commitlint..."
14
14
  cd config-commitlint
15
15
  npm i
16
16
  cd ../
17
17
 
18
- echo "\n${COLOR_NAME}install eslint..."
18
+ echo -e "\n${COLOR_NAME}install eslint..."
19
19
  cd config-eslint
20
20
  npm i
21
21
  cd ../
22
22
 
23
- echo "\n${COLOR_NAME}install htmllint..."
23
+ echo -e "\n${COLOR_NAME}install htmllint..."
24
24
  cd config-htmllint
25
25
  npm i
26
26
  cd ../
27
27
 
28
- echo "\n${COLOR_NAME}install markdownlint..."
28
+ echo -e "\n${COLOR_NAME}install markdownlint..."
29
29
  cd config-markdownlint
30
30
  npm i
31
31
  cd ../
32
32
 
33
- echo "\n${COLOR_NAME}install npmlint..."
33
+ echo -e "\n${COLOR_NAME}install npmlint..."
34
34
  cd config-npmlint
35
35
  npm i
36
36
  cd ../
37
37
 
38
- echo "\n${COLOR_NAME}install prettier..."
38
+ echo -e "\n${COLOR_NAME}install prettier..."
39
39
  cd config-prettier
40
40
  npm i
41
41
  cd ../
42
42
 
43
- echo "\n${COLOR_NAME}install stylelint..."
43
+ echo -e "\n${COLOR_NAME}install stylelint..."
44
44
  cd config-stylelint
45
45
  npm i
46
46
  cd ../
@@ -9,10 +9,10 @@ COLOR_DEFAULT='\e[39m'
9
9
 
10
10
  FILES='.js,.jsx,.ts,.tsx,.vue'
11
11
 
12
- echo "${COLOR_NAME}eslint ${COLOR_ARROW}-> ${COLOR_FILES}${FILES}${COLOR_DEFAULT}"
12
+ echo -e "${COLOR_NAME}eslint ${COLOR_ARROW}-> ${COLOR_FILES}${FILES}${COLOR_DEFAULT}"
13
13
 
14
14
  if [ $OPTION ] && [ $OPTION = 'fix' ]; then
15
- echo "${COLOR_ARROW}autofix:${COLOR_DEFAULT} true"
15
+ echo -e "${COLOR_ARROW}autofix:${COLOR_DEFAULT} true"
16
16
  fi
17
17
 
18
18
  eslint --ext ${FILES} --ignore-path .gitignore ./ --${OPTION}
@@ -7,6 +7,6 @@ COLOR_DEFAULT='\e[39m'
7
7
 
8
8
  FILES='**/*.html'
9
9
 
10
- echo "${COLOR_NAME}htmllint ${COLOR_ARROW}-> ${COLOR_FILES}${FILES}${COLOR_DEFAULT}"
10
+ echo -e "${COLOR_NAME}htmllint ${COLOR_ARROW}-> ${COLOR_FILES}${FILES}${COLOR_DEFAULT}"
11
11
 
12
12
  linthtml ${FILES}
@@ -9,10 +9,10 @@ COLOR_DEFAULT='\e[39m'
9
9
 
10
10
  FILES='**/*.md'
11
11
 
12
- echo "${COLOR_NAME}markdownlint ${COLOR_ARROW}-> ${COLOR_FILES}${FILES}${COLOR_DEFAULT}"
12
+ echo -e "${COLOR_NAME}markdownlint ${COLOR_ARROW}-> ${COLOR_FILES}${FILES}${COLOR_DEFAULT}"
13
13
 
14
14
  if [ $OPTION ] && [ $OPTION = 'fix' ]; then
15
- echo "${COLOR_ARROW}autofix:${COLOR_DEFAULT} true"
15
+ echo -e "${COLOR_ARROW}autofix:${COLOR_DEFAULT} true"
16
16
  prettier --write ${FILES}
17
17
  fi
18
18
 
@@ -8,10 +8,10 @@ COLOR_DEFAULT='\e[39m'
8
8
  PACKAGE_FILES='. ./packages'
9
9
  LOCK_FILE='package-lock.json'
10
10
 
11
- echo "${COLOR_NAME}npmlint ${COLOR_ARROW}-> ${COLOR_FILES}${PACKAGE_FILES}${COLOR_DEFAULT}"
11
+ echo -e "${COLOR_NAME}npmlint ${COLOR_ARROW}-> ${COLOR_FILES}${PACKAGE_FILES}${COLOR_DEFAULT}"
12
12
 
13
13
  npmPkgJsonLint ${PACKAGE_FILES}
14
14
 
15
- echo "${COLOR_NAME}lockfilelint ${COLOR_ARROW}-> ${COLOR_FILES}${LOCK_FILE}${COLOR_DEFAULT}"
15
+ echo -e "${COLOR_NAME}lockfilelint ${COLOR_ARROW}-> ${COLOR_FILES}${LOCK_FILE}${COLOR_DEFAULT}"
16
16
 
17
17
  lockfile-lint --type npm --path ${LOCK_FILE}
package/scripts/lint.sh CHANGED
@@ -6,7 +6,7 @@ COLOR_TITLE='\e[92m'
6
6
  COLOR_LINTERS='\e[33m'
7
7
  COLOR_DEFAULT='\e[39m'
8
8
 
9
- echo "${COLOR_TITLE}linters: ${COLOR_LINTERS}eslint, htmllint, markdownlint, npmlint, stylelint, ${COLOR_DEFAULT}"
9
+ echo -e "${COLOR_TITLE}linters: ${COLOR_LINTERS}eslint, htmllint, markdownlint, npmlint, stylelint, ${COLOR_DEFAULT}"
10
10
 
11
11
  npm run lint:eslint --if-present ${OPTION}
12
12
  npm run lint:htmllint --if-present
@@ -9,10 +9,10 @@ COLOR_DEFAULT='\e[39m'
9
9
 
10
10
  FILES='**/*.{css,pcss,postcss,sass,scss,vue}'
11
11
 
12
- echo "${COLOR_NAME}stylelint ${COLOR_ARROW}-> ${COLOR_FILES}${FILES}${COLOR_DEFAULT}"
12
+ echo -e "${COLOR_NAME}stylelint ${COLOR_ARROW}-> ${COLOR_FILES}${FILES}${COLOR_DEFAULT}"
13
13
 
14
14
  if [ $OPTION ] && [ $OPTION = 'fix' ]; then
15
- echo "${COLOR_ARROW}autofix:${COLOR_DEFAULT} true"
15
+ echo -e "${COLOR_ARROW}autofix:${COLOR_DEFAULT} true"
16
16
  fi
17
17
 
18
18
  stylelint ${FILES} --ignore-path .gitignore --allow-empty-input --${OPTION}
package/scripts/ou.sh CHANGED
@@ -4,42 +4,42 @@ COLOR_NAME='\e[96m'
4
4
 
5
5
  clear
6
6
 
7
- echo "\n${COLOR_NAME}check lint-kit..."
7
+ echo -e "\n${COLOR_NAME}check lint-kit..."
8
8
  npm ou
9
9
 
10
10
  cd submodules
11
11
 
12
- echo "\n${COLOR_NAME}check commitlint..."
12
+ echo -e "\n${COLOR_NAME}check commitlint..."
13
13
  cd config-commitlint
14
14
  npm ou
15
15
  cd ../
16
16
 
17
- echo "\n${COLOR_NAME}check eslint..."
17
+ echo -e "\n${COLOR_NAME}check eslint..."
18
18
  cd config-eslint
19
19
  npm ou
20
20
  cd ../
21
21
 
22
- echo "\n${COLOR_NAME}check htmllint..."
22
+ echo -e "\n${COLOR_NAME}check htmllint..."
23
23
  cd config-htmllint
24
24
  npm ou
25
25
  cd ../
26
26
 
27
- echo "\n${COLOR_NAME}check markdownlint..."
27
+ echo -e "\n${COLOR_NAME}check markdownlint..."
28
28
  cd config-markdownlint
29
29
  npm ou
30
30
  cd ../
31
31
 
32
- echo "\n${COLOR_NAME}check npmlint..."
32
+ echo -e "\n${COLOR_NAME}check npmlint..."
33
33
  cd config-npmlint
34
34
  npm ou
35
35
  cd ../
36
36
 
37
- echo "\n${COLOR_NAME}check prettier..."
37
+ echo -e "\n${COLOR_NAME}check prettier..."
38
38
  cd config-prettier
39
39
  npm ou
40
40
  cd ../
41
41
 
42
- echo "\n${COLOR_NAME}check stylelint..."
42
+ echo -e "\n${COLOR_NAME}check stylelint..."
43
43
  cd config-stylelint
44
44
  npm ou
45
45
  cd ../
@@ -2,4 +2,4 @@
2
2
  # First you need to log in: npm login
3
3
  # If you want to make repository public: npm publish --access public
4
4
 
5
- echo "publishing to npm..."
5
+ echo -e "publishing to npm..."
package/scripts/up.sh CHANGED
@@ -4,7 +4,7 @@ VERSION=${1:-minor}
4
4
  YELLOW='\e[33m'
5
5
  DEFAULT='\e[39m'
6
6
 
7
- echo "Upgrading dependencies to version: ${YELLOW}${VERSION}${DEFAULT}"
7
+ echo -e "Upgrading dependencies to version: ${YELLOW}${VERSION}${DEFAULT}"
8
8
 
9
9
  npx npm-check-updates --upgrade --target ${VERSION}
10
10
  npm i --no-optional --legacy-peer-deps
@@ -6,14 +6,14 @@ VERSION=${1:-minor}
6
6
  YELLOW='\e[33m'
7
7
  DEFAULT='\e[39m'
8
8
 
9
- echo "Upgrading dependencies to version: ${YELLOW}${VERSION}${DEFAULT}"
9
+ echo -e "Upgrading dependencies to version: ${YELLOW}${VERSION}${DEFAULT}"
10
10
 
11
11
  npm run up
12
12
  npm run semver ${VERSION}
13
13
 
14
- echo "Pushing updates to: ${YELLOW}npm, git${DEFAULT}"
14
+ echo -e "Pushing updates to: ${YELLOW}npm, git${DEFAULT}"
15
15
 
16
16
  npm pu
17
17
  git push
18
18
 
19
- echo "Done!"
19
+ echo -e "Done!"