https://github.com/planjs/fabric
code style
https://github.com/planjs/fabric
Last synced: about 1 year ago
JSON representation
code style
- Host: GitHub
- URL: https://github.com/planjs/fabric
- Owner: planjs
- Created: 2020-08-29T17:50:00.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-02T14:36:09.000Z (over 1 year ago)
- Last Synced: 2025-04-01T20:06:52.162Z (over 1 year ago)
- Language: TypeScript
- Size: 1.03 MB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# fabric
> `prettier`,`eslint`,`stylelint` commonly used configuration files.
## Usage
in `.eslintrc.js`
```javascript
module.exports = {
extends: [require.resolve('@planjs/fabric/dist/eslint')],
globals: {
App: 'readonly',
Page: 'readonly',
Component: 'readonly',
},
rules: {
// your rules
},
};
```
in `.stylelintrc.js`
```javascript
module.exports = {
extends: [require.resolve('@planjs/fabric/dist/stylelint')],
rules: {
// your rules
},
};
```
in `.prettierrc.js`
```javascript
const { prettier } = require('@planjs/fabric');
module.exports = prettier;
```