Skip to content

Commit

Permalink
build: eslint 相关配置同步修改 (#758)
Browse files Browse the repository at this point in the history
* eslint相关配置同步修改

* eslint相关配置完善
  • Loading branch information
ocean-gao authored Apr 23, 2024
1 parent 96b858f commit 2487961
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default {
module.exports = {
extends: ['@webank/eslint-config-ts/vue'],

parserOptions: {
Expand Down
2 changes: 1 addition & 1 deletion .prettierrc.js → .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default {
module.exports = {
semi: true,
trailingComma: 'all',
singleQuote: true,
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion babel.config.js → babel.config.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// for jest
export default {
module.exports = {
presets: [['@babel/preset-env', { targets: { node: 'current' } }]],
plugins: ['@vue/babel-plugin-jsx'],
};
1 change: 1 addition & 0 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
1 change: 0 additions & 1 deletion commitlint.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"build": "npm run build:version && npm run build:esm && npm run build:type && cp -rf es/icon . && npm run build:esm-browser && npm run build:umd && npm run build:style && npm run build:icon",
"release": "node scripts/release.js",
"lint-staged": "lint-staged --allow-empty",
"commitlint": "commitlint --config commitlint.config.js -e -V",
"commitlint": "commitlint --config commitlint.config.cjs -e -V",
"lint:script": "eslint --ext .js,.ts,.vue,.tsx ./components --fix",
"lint:style": "stylelint 'components/**/*.less' --fix",
"lint:docs-script": "eslint --ext .js,.ts,.vue,.tsx ./docs/.vitepress/components --fix",
Expand Down
9 changes: 5 additions & 4 deletions tsconfig.eslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
"docs/.vitepress/**/*.vue",
/* 与 tsconfig.json 保持一致 End */
"scripts/**/*.js",
"./.eslintrc.js",
"./.prettierrc.js",
"./babel.config.js",
"./commitlint.config.js",
"./.eslintrc.cjs",
"./.prettierrc.cjs",
"./.stylelintrc.cjs",
"./babel.config.cjs",
"./commitlint.config.cjs",
"./jest.config.cjs",
"./jest.setup.cjs"
],
Expand Down

0 comments on commit 2487961

Please sign in to comment.