Browse Source

chore: remove ls-lint

Vben 4 years ago
parent
commit
d836d4b251
4 changed files with 4 additions and 30 deletions
  1. 0 4
      .husky/pre-commit
  2. 0 24
      .ls-lint.yml
  3. 4 0
      CHANGELOG.zh_CN.md
  4. 0 2
      package.json

+ 0 - 4
.husky/pre-commit

@@ -4,10 +4,6 @@
 
 [ -n "$CI" ] && exit 0
 
-# Check the file name
-# ! ls-lint cannot be used normally in mac pro of M1 system.
-npm run lint:ls-lint
-
 # Format and submit code according to lintstagedrc.js configuration
 npm run lint:lint-staged
 

+ 0 - 24
.ls-lint.yml

@@ -1,24 +0,0 @@
-ls:
-  src/*:
-    .js: kebab-case | PascalCase
-    .vue: PascalCase | regex:^index
-    .ts: camelCase | PascalCase
-    .tsx: camelCase | PascalCase
-    .d.ts: kebab-case
-    .mock.ts: kebab-case
-    .data.ts: camelCase | kebab-case
-    .test-d.ts: kebab-case
-    .less: kebab-case | PascalCase
-    .spec.ts: camelCase | PascalCase
-
-ignore:
-  - node_modules
-  - .git
-  - .circleci
-  - .github
-  - .vscode
-  - .idea
-  - dist
-  - .local
-  - .husky
-  - src/locales/lang

+ 4 - 0
CHANGELOG.zh_CN.md

@@ -21,6 +21,10 @@
 - 修复表格勾选列配置失效问题
 - 确保一级菜单可以被隐藏
 
+### 🎫 Chores
+
+- 移除 ls-lint
+
 ## 2.1.0 (2021-03-15)
 
 ### ✨ Features

+ 0 - 2
package.json

@@ -21,7 +21,6 @@
     "lint:eslint": "eslint \"{src,mock}/**/*.{vue,ts,tsx}\" --fix",
     "lint:prettier": "prettier --write --loglevel warn \"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\"",
     "lint:stylelint": "stylelint --fix \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/",
-    "lint:ls-lint": "ls-lint",
     "lint:lint-staged": "lint-staged -c ./.husky/lintstagedrc.js",
     "lint:pretty": "pretty-quick --staged",
     "test:gzip": "http-server dist --cors --gzip -c-1",
@@ -59,7 +58,6 @@
     "@commitlint/cli": "^12.0.1",
     "@commitlint/config-conventional": "^12.0.1",
     "@iconify/json": "^1.1.320",
-    "@ls-lint/ls-lint": "^1.9.2",
     "@purge-icons/generated": "^0.7.0",
     "@types/crypto-js": "^4.0.1",
     "@types/fs-extra": "^9.0.8",