-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
谢新根
committed
Jan 17, 2024
1 parent
652a834
commit 30681d5
Showing
3 changed files
with
200 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,40 @@ | ||
module.exports = { | ||
pluginSearchDirs: false, | ||
plugins: [ | ||
require.resolve('prettier-plugin-organize-imports'), | ||
require.resolve('prettier-plugin-packagejson'), | ||
], | ||
printWidth: 80, | ||
proseWrap: 'never', | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
overrides: [ | ||
{ | ||
files: '*.md', | ||
options: { | ||
proseWrap: 'preserve', | ||
}, | ||
}, | ||
], | ||
pluginSearchDirs: false, | ||
plugins: [require.resolve('@trivago/prettier-plugin-sort-imports')], | ||
printWidth: 80, | ||
proseWrap: 'never', | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
overrides: [ | ||
{ | ||
files: '*.md', | ||
options: { | ||
proseWrap: 'preserve', | ||
}, | ||
}, | ||
], | ||
tabWidth: 4, | ||
trailingComma: 'all', | ||
singleQuote: true, | ||
semi: true, | ||
importOrder: [ | ||
'<TYPE>^[./]', | ||
'<THIRD_PARTY_TYPES>', | ||
'^react', | ||
'^lodash/(.*)$', | ||
'^classnames$', | ||
'^html-to-image$', | ||
'^antd$', | ||
'^antd-(.*)$', | ||
// "^@antv/(.*)$", | ||
'^@ant-design(.*)$', | ||
'^@formily(.*)$', | ||
'^ahooks$', | ||
'^@/(.*)$', | ||
'^../(.*)$', | ||
'^./(.*)$', | ||
'^[./]', | ||
], | ||
// importOrderSeparation: true, | ||
importOrderSortSpecifiers: true, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,99 +1,99 @@ | ||
{ | ||
"name": "topology-designable", | ||
"version": "1.0.1", | ||
"description": "topology designable ", | ||
"license": "MIT", | ||
"module": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"build": "father build", | ||
"build:watch": "father dev", | ||
"dev": "dumi dev", | ||
"docs:build": "dumi build", | ||
"doctor": "father doctor", | ||
"lint": "npm run lint:es && npm run lint:css", | ||
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"", | ||
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"", | ||
"prepare": "husky install && dumi setup", | ||
"prepublishOnly": "father doctor && npm run build", | ||
"start": "npm run dev" | ||
}, | ||
"commitlint": { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
}, | ||
"lint-staged": { | ||
"*.{md,json}": [ | ||
"prettier --write --no-error-on-unmatched-pattern" | ||
], | ||
"*.{css,less}": [ | ||
"stylelint --fix", | ||
"prettier --write" | ||
], | ||
"*.{js,jsx}": [ | ||
"eslint --fix", | ||
"prettier --write" | ||
"name": "topology-designable", | ||
"version": "1.0.1", | ||
"description": "topology designable ", | ||
"license": "MIT", | ||
"module": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"*.{ts,tsx}": [ | ||
"eslint --fix", | ||
"prettier --parser=typescript --write" | ||
"scripts": { | ||
"build": "father build", | ||
"build:watch": "father dev", | ||
"dev": "dumi dev", | ||
"docs:build": "dumi build", | ||
"doctor": "father doctor", | ||
"lint": "npm run lint:es && npm run lint:css", | ||
"prettier": "prettier --write \"src/**/*.ts(x)?\"", | ||
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"", | ||
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"", | ||
"prepare": "husky install && dumi setup", | ||
"prepublishOnly": "father doctor && npm run build", | ||
"start": "npm run dev" | ||
}, | ||
"commitlint": { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
}, | ||
"lint-staged": { | ||
"*.{md,json}": [ | ||
"prettier --write --no-error-on-unmatched-pattern" | ||
], | ||
"*.{css,less}": [ | ||
"stylelint --fix", | ||
"prettier --write" | ||
], | ||
"*.{js,jsx}": [ | ||
"eslint --fix", | ||
"prettier --write" | ||
], | ||
"*.{ts,tsx}": [ | ||
"eslint --fix", | ||
"prettier --parser=typescript --write" | ||
] | ||
}, | ||
"dependencies": { | ||
"@ant-design/cssinjs": "^1.18.2", | ||
"@ant-design/icons": "^5.2.6", | ||
"@ant-design/pro-provider": "^2.13.5", | ||
"@antv/x6": "^2.16.1", | ||
"@antv/x6-plugin-clipboard": "^2.1.6", | ||
"@antv/x6-plugin-dnd": "^2.1.1", | ||
"@antv/x6-plugin-history": "^2.2.4", | ||
"@antv/x6-plugin-keyboard": "^2.2.1", | ||
"@antv/x6-plugin-scroller": "^2.0.10", | ||
"@antv/x6-plugin-selection": "^2.2.1", | ||
"@antv/x6-plugin-snapline": "^2.1.7", | ||
"@antv/x6-plugin-transform": "^2.1.8", | ||
"@antv/x6-react-shape": "^2.2.2", | ||
"@formily/antd-v5": "^1.1.9", | ||
"@formily/core": "^2.3.0", | ||
"@formily/react": "^2.3.0", | ||
"ahooks": "^3.7.8", | ||
"antd": "^5.11.5", | ||
"antd-style": "^3.6.1", | ||
"classnames": "^2.3.2", | ||
"html-to-image": "^1.11.11", | ||
"lodash": "^4.17.21" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.1.2", | ||
"@commitlint/config-conventional": "^17.1.0", | ||
"@trivago/prettier-plugin-sort-imports": "^4.3.0", | ||
"@types/lodash": "^4.14.202", | ||
"@types/react": "^18.0.0", | ||
"@types/react-dom": "^18.0.0", | ||
"@umijs/lint": "^4.0.0", | ||
"dumi": "^2.2.13", | ||
"eslint": "^8.23.0", | ||
"father": "^4.1.0", | ||
"husky": "^8.0.1", | ||
"lint-staged": "^13.0.3", | ||
"prettier": "^2.7.1", | ||
"react": "^18.0.0", | ||
"react-dom": "^18.0.0", | ||
"stylelint": "^14.9.1" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.9.0", | ||
"react-dom": ">=16.9.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"authors": [ | ||
"1002275364@qq.com" | ||
] | ||
}, | ||
"dependencies": { | ||
"@ant-design/cssinjs": "^1.18.2", | ||
"@ant-design/icons": "^5.2.6", | ||
"@ant-design/pro-provider": "^2.13.5", | ||
"@antv/x6": "^2.16.1", | ||
"@antv/x6-plugin-clipboard": "^2.1.6", | ||
"@antv/x6-plugin-dnd": "^2.1.1", | ||
"@antv/x6-plugin-history": "^2.2.4", | ||
"@antv/x6-plugin-keyboard": "^2.2.1", | ||
"@antv/x6-plugin-scroller": "^2.0.10", | ||
"@antv/x6-plugin-selection": "^2.2.1", | ||
"@antv/x6-plugin-snapline": "^2.1.7", | ||
"@antv/x6-plugin-transform": "^2.1.8", | ||
"@antv/x6-react-shape": "^2.2.2", | ||
"@formily/antd-v5": "^1.1.9", | ||
"@formily/core": "^2.3.0", | ||
"@formily/react": "^2.3.0", | ||
"ahooks": "^3.7.8", | ||
"antd": "^5.11.5", | ||
"antd-style": "^3.6.1", | ||
"classnames": "^2.3.2", | ||
"html-to-image": "^1.11.11", | ||
"lodash": "^4.17.21" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.1.2", | ||
"@commitlint/config-conventional": "^17.1.0", | ||
"@types/lodash": "^4.14.202", | ||
"@types/react": "^18.0.0", | ||
"@types/react-dom": "^18.0.0", | ||
"@umijs/lint": "^4.0.0", | ||
"dumi": "^2.2.13", | ||
"eslint": "^8.23.0", | ||
"father": "^4.1.0", | ||
"husky": "^8.0.1", | ||
"lint-staged": "^13.0.3", | ||
"prettier": "^2.7.1", | ||
"prettier-plugin-organize-imports": "^3.0.0", | ||
"prettier-plugin-packagejson": "^2.2.18", | ||
"react": "^18.0.0", | ||
"react-dom": "^18.0.0", | ||
"stylelint": "^14.9.1" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.9.0", | ||
"react-dom": ">=16.9.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"authors": [ | ||
"1002275364@qq.com" | ||
] | ||
} |
Oops, something went wrong.