update to latests
This commit is contained in:
parent
71c67f66de
commit
af0c093759
19 changed files with 2194 additions and 1018 deletions
34
README.md
34
README.md
|
@ -1,6 +1,7 @@
|
|||
# Eslint Config
|
||||
|
||||
# Notable linting rules
|
||||
|
||||
- No default exports
|
||||
- No relative imports from other modules, imports must be exported in an index file
|
||||
- Index files only contain imports/exports, no other code
|
||||
|
@ -14,20 +15,21 @@ Base is used for node/typescript and excludes react specific settings.
|
|||
```
|
||||
npm i @ringofstorms/eslint-config \
|
||||
@typescript-eslint/eslint-plugin \
|
||||
@typescript-eslint/parser \
|
||||
eslint \
|
||||
eslint-config-prettier \
|
||||
eslint-import-resolver-typescript \
|
||||
eslint-plugin-eslint-comments \
|
||||
eslint-plugin-filenames \
|
||||
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
|
||||
```
|
||||
|
||||
In your .eslintrc
|
||||
|
||||
```
|
||||
{
|
||||
extends: ["@ringofstorms/eslint-config/base"],
|
||||
|
@ -35,28 +37,31 @@ In your .eslintrc
|
|||
```
|
||||
|
||||
## react
|
||||
|
||||
React is for react/typescript and is base + react specific settings.
|
||||
|
||||
```
|
||||
npm i @ringofstorms/eslint-config \
|
||||
@typescript-eslint/eslint-plugin \
|
||||
eslint \
|
||||
eslint-plugin-eslint-comments \
|
||||
eslint-plugin-import \
|
||||
eslint-plugin-new-with-error \
|
||||
eslint-plugin-prettier \
|
||||
prettier \
|
||||
eslint-plugin-css-modules \
|
||||
eslint-plugin-react \
|
||||
eslint-plugin-react-hooks \
|
||||
@typescript-eslint/parser \
|
||||
eslint \
|
||||
eslint-config-prettier \
|
||||
eslint-config-react \
|
||||
eslint-import-resolver-typescript \
|
||||
eslint-plugin-css-modules \
|
||||
eslint-plugin-eslint-comments \
|
||||
eslint-plugin-filenames \
|
||||
eslint-plugin-import \
|
||||
eslint-plugin-new-with-error \
|
||||
eslint-plugin-prettier \
|
||||
eslint-plugin-react \
|
||||
eslint-plugin-react-hooks \
|
||||
prettier \
|
||||
--save-dev
|
||||
```
|
||||
|
||||
In your .eslintrc
|
||||
|
||||
```
|
||||
{
|
||||
extends: ["@ringofstorms/eslint-config/react"],
|
||||
|
@ -66,6 +71,7 @@ In your .eslintrc
|
|||
## prettier settings
|
||||
|
||||
Create `prettier.config.js` file in root of project with this content:
|
||||
|
||||
```
|
||||
module.exports = require('@ringofstorms/eslint-config').prettierConfig;
|
||||
```
|
||||
|
@ -86,9 +92,11 @@ module.exports = require('@ringofstorms/eslint-config').prettierConfig;
|
|||
# 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