add prettier, update a few rules
This commit is contained in:
parent
c52a6a5d93
commit
71c67f66de
8 changed files with 164 additions and 50 deletions
27
README.md
27
README.md
|
@ -19,6 +19,10 @@ npm i @ringofstorms/eslint-config \
|
|||
eslint-plugin-import \
|
||||
eslint-plugin-new-with-error \
|
||||
eslint-plugin-prettier \
|
||||
@typescript-eslint/parser \
|
||||
eslint-config-prettier \
|
||||
eslint-config-react \
|
||||
eslint-import-resolver-typescript \
|
||||
prettier \
|
||||
--save-dev
|
||||
```
|
||||
|
@ -45,6 +49,10 @@ npm i @ringofstorms/eslint-config \
|
|||
eslint-plugin-css-modules \
|
||||
eslint-plugin-react \
|
||||
eslint-plugin-react-hooks \
|
||||
@typescript-eslint/parser \
|
||||
eslint-config-prettier \
|
||||
eslint-config-react \
|
||||
eslint-import-resolver-typescript \
|
||||
--save-dev
|
||||
```
|
||||
|
||||
|
@ -55,6 +63,13 @@ In your .eslintrc
|
|||
}
|
||||
```
|
||||
|
||||
## prettier settings
|
||||
|
||||
Create `prettier.config.js` file in root of project with this content:
|
||||
```
|
||||
module.exports = require('@ringofstorms/eslint-config').prettierConfig;
|
||||
```
|
||||
|
||||
# Common rule overrides
|
||||
|
||||
```
|
||||
|
@ -66,4 +81,14 @@ In your .eslintrc
|
|||
}],
|
||||
},
|
||||
}
|
||||
```
|
||||
```
|
||||
|
||||
# Contributing
|
||||
|
||||
## Packing
|
||||
`npm pack`
|
||||
|
||||
## publishing
|
||||
if not already done `npm login`
|
||||
|
||||
`npm publish --access public`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue