Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/umijs/fabric
💪严格但是不严苛的编码规范
https://github.com/umijs/fabric
antd-design-pro eslint fabric stylelint typescript
Last synced: 5 days ago
JSON representation
💪严格但是不严苛的编码规范
- Host: GitHub
- URL: https://github.com/umijs/fabric
- Owner: umijs
- Created: 2019-06-23T11:09:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-05T13:30:09.000Z (about 1 year ago)
- Last Synced: 2024-10-29T17:33:56.628Z (about 2 months ago)
- Topics: antd-design-pro, eslint, fabric, stylelint, typescript
- Language: TypeScript
- Homepage:
- Size: 724 KB
- Stars: 640
- Watchers: 7
- Forks: 102
- Open Issues: 48
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# umi-fabric
一个包含 prettier,eslint,stylelint 的配置文件合集
A collection of configuration files containing prettier, eslint, stylelint
# Use
安装
```bash
npm i @umijs/fabric --save-dev
yarn add @umijs/fabric -D
```in `.eslintrc.js`
```js
module.exports = {
extends: [require.resolve('@umijs/fabric/dist/eslint')],// in antd-design-pro
globals: {
ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: true,
page: true,
},rules: {
// your rules
},
};
```in `.stylelintrc.js`
```js
module.exports = {
extends: [require.resolve('@umijs/fabric/dist/stylelint')],
rules: {
// your rules
},
};
```in `.prettierrc.js`
```js
const fabric = require('@umijs/fabric');module.exports = {
...fabric.prettier,
};
```