Skip to content

Commit

Permalink
Noref make install easier (#10)
Browse files Browse the repository at this point in the history
* feat(package.json): change deps in order to ease the use of config

* docs(readme): change how to use section

* Update README.md

Co-Authored-By: Tagir-A <[email protected]>
  • Loading branch information
Tagir-A authored Jan 16, 2019
1 parent cb05c62 commit b24cd8b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ The config includes:
- Our custom rules

### How to use
You need to have `eslint` and `prettier` installed.
You need to install the config itself.
Then use the provided command to install all the peerDeps.
1. `npm i -D @logistics/eslint-config` or `yarn add -D @logistics/eslint-config`
2. `npx install-peerdeps --dev eslint-config-airbnb`
3. Put `"extends": ["eslint-config-logistics"]` in your `.eslintrc`
2. Put `"extends": ["@logistics/eslint-config"]` in your `.eslintrc`
14 changes: 5 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,21 @@
"publishConfig": {
"registry": "https://nexus.usehurrier.com/repository/logistics-npm-private/"
},
"peerDependencies": {
"eslint": "5.9.0",
"dependencies": {
"eslint-config-airbnb": "17.1.0",
"eslint-config-prettier": "3.3.0",
"eslint-plugin-import": "2.14.0",
"eslint-plugin-jsx-a11y": "6.1.2",
"eslint-plugin-prettier": "3.0.0",
"eslint-plugin-react": "7.11.1",
"eslint-plugin-react": "7.11.1"
},
"peerDependencies": {
"eslint": "5.9.0",
"prettier": "1.15.2"
},
"devDependencies": {
"cz-conventional-changelog": "2.1.0",
"eslint": "5.9.0",
"eslint-config-airbnb": "17.1.0",
"eslint-config-prettier": "3.3.0",
"eslint-plugin-import": "2.14.0",
"eslint-plugin-jsx-a11y": "6.1.2",
"eslint-plugin-prettier": "3.0.0",
"eslint-plugin-react": "7.11.1",
"prettier": "1.15.2",
"semantic-release": "^15.13.3"
},
Expand Down

0 comments on commit b24cd8b

Please sign in to comment.