Skip to content

Commit

Permalink
chore: remove commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
plantain-00 committed Jun 26, 2020
1 parent dd5280c commit 8d13752
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 232 deletions.
6 changes: 2 additions & 4 deletions clean-scripts.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { watch } from 'watch-then-execute'

const tsFiles = `"packages/@(core|vue|react)/@(src|demo)/**/*.@(ts|tsx)"`
const lessFiles = `"packages/core/src/**/*.less"`
const jsFiles = `"*.config.js"`
const excludeTsFiles = `"packages/@(core|vue|react)/@(src|demo)/**/*.@(d|config).ts"`

const vueTemplateCommand = `file2variable-cli --config packages/vue/src/file2variable.config.ts`
Expand Down Expand Up @@ -50,16 +49,15 @@ export default {
revStaticCommand
],
lint: {
ts: `eslint --ext .js,.ts ${tsFiles} ${jsFiles}`,
ts: `eslint --ext .js,.ts ${tsFiles}`,
less: `stylelint ${lessFiles}`,
export: `no-unused-export ${tsFiles} ${lessFiles} --exclude ${excludeTsFiles}`,
commit: `commitlint --from=HEAD~1`,
markdown: `markdownlint README.md`,
typeCoverage: 'lerna exec -- type-coverage -p src --strict'
},
test: [],
fix: {
ts: `eslint --ext .js,.ts ${tsFiles} ${jsFiles} --fix`,
ts: `eslint --ext .js,.ts ${tsFiles} --fix`,
less: `stylelint --fix ${lessFiles}`
},
watch: {
Expand Down
3 changes: 0 additions & 3 deletions commitlint.config.js

This file was deleted.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
},
"homepage": "https://github.com/plantain-00/select2-component#readme",
"devDependencies": {
"@commitlint/cli": "9.0.1",
"@commitlint/config-conventional": "9.0.1",
"@rollup/plugin-commonjs": "13.0.0",
"@rollup/plugin-node-resolve": "8.1.0",
"@types/webpack": "4.41.18",
Expand Down

0 comments on commit 8d13752

Please sign in to comment.