Commit d836d4b251e627d81b9f104cd39bb045b11f4109
1 parent
e2cc5af9
chore: remove ls-lint
Showing
4 changed files
with
4 additions
and
30 deletions
.husky/pre-commit
@@ -4,10 +4,6 @@ | @@ -4,10 +4,6 @@ | ||
4 | 4 | ||
5 | [ -n "$CI" ] && exit 0 | 5 | [ -n "$CI" ] && exit 0 |
6 | 6 | ||
7 | -# Check the file name | ||
8 | -# ! ls-lint cannot be used normally in mac pro of M1 system. | ||
9 | -npm run lint:ls-lint | ||
10 | - | ||
11 | # Format and submit code according to lintstagedrc.js configuration | 7 | # Format and submit code according to lintstagedrc.js configuration |
12 | npm run lint:lint-staged | 8 | npm run lint:lint-staged |
13 | 9 |
.ls-lint.yml deleted
100644 → 0
1 | -ls: | ||
2 | - src/*: | ||
3 | - .js: kebab-case | PascalCase | ||
4 | - .vue: PascalCase | regex:^index | ||
5 | - .ts: camelCase | PascalCase | ||
6 | - .tsx: camelCase | PascalCase | ||
7 | - .d.ts: kebab-case | ||
8 | - .mock.ts: kebab-case | ||
9 | - .data.ts: camelCase | kebab-case | ||
10 | - .test-d.ts: kebab-case | ||
11 | - .less: kebab-case | PascalCase | ||
12 | - .spec.ts: camelCase | PascalCase | ||
13 | - | ||
14 | -ignore: | ||
15 | - - node_modules | ||
16 | - - .git | ||
17 | - - .circleci | ||
18 | - - .github | ||
19 | - - .vscode | ||
20 | - - .idea | ||
21 | - - dist | ||
22 | - - .local | ||
23 | - - .husky | ||
24 | - - src/locales/lang |
CHANGELOG.zh_CN.md
package.json
@@ -21,7 +21,6 @@ | @@ -21,7 +21,6 @@ | ||
21 | "lint:eslint": "eslint \"{src,mock}/**/*.{vue,ts,tsx}\" --fix", | 21 | "lint:eslint": "eslint \"{src,mock}/**/*.{vue,ts,tsx}\" --fix", |
22 | "lint:prettier": "prettier --write --loglevel warn \"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\"", | 22 | "lint:prettier": "prettier --write --loglevel warn \"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\"", |
23 | "lint:stylelint": "stylelint --fix \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/", | 23 | "lint:stylelint": "stylelint --fix \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/", |
24 | - "lint:ls-lint": "ls-lint", | ||
25 | "lint:lint-staged": "lint-staged -c ./.husky/lintstagedrc.js", | 24 | "lint:lint-staged": "lint-staged -c ./.husky/lintstagedrc.js", |
26 | "lint:pretty": "pretty-quick --staged", | 25 | "lint:pretty": "pretty-quick --staged", |
27 | "test:gzip": "http-server dist --cors --gzip -c-1", | 26 | "test:gzip": "http-server dist --cors --gzip -c-1", |
@@ -59,7 +58,6 @@ | @@ -59,7 +58,6 @@ | ||
59 | "@commitlint/cli": "^12.0.1", | 58 | "@commitlint/cli": "^12.0.1", |
60 | "@commitlint/config-conventional": "^12.0.1", | 59 | "@commitlint/config-conventional": "^12.0.1", |
61 | "@iconify/json": "^1.1.320", | 60 | "@iconify/json": "^1.1.320", |
62 | - "@ls-lint/ls-lint": "^1.9.2", | ||
63 | "@purge-icons/generated": "^0.7.0", | 61 | "@purge-icons/generated": "^0.7.0", |
64 | "@types/crypto-js": "^4.0.1", | 62 | "@types/crypto-js": "^4.0.1", |
65 | "@types/fs-extra": "^9.0.8", | 63 | "@types/fs-extra": "^9.0.8", |