Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/planjs/fabric

code style
https://github.com/planjs/fabric

Last synced: 23 days ago
JSON representation

code style

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;
```