Skip to content

Commit

Permalink
Use less of eslint-plugin-prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
lydell committed Mar 22, 2020
1 parent 7dffee0 commit 538dbb5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ module.exports = {
.filter((name) => !name.includes("/"))
.map((ruleFileName) => `./${ruleFileName}`),
],
rules: {
"prettier/prettier": "off",
},
overrides: [
{
files: ["{bin,test}/**/*.js"],
Expand Down
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ it together with some other config.

## Installation

Tip: First, you might be interested in installing [eslint-plugin-prettier].
Follow the instructions over there. This is optional, though.

Install eslint-config-prettier:

```
Expand Down Expand Up @@ -188,7 +185,6 @@ Exit codes:
"@typescript-eslint",
"babel",
"flowtype",
"prettier",
"react",
"standard",
"unicorn",
Expand All @@ -203,9 +199,6 @@ Exit codes:
"env": {
"es6": true,
"node": true
},
"rules": {
"prettier/prettier": "error"
}
}
```
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
],
"scripts": {
"doctoc": "doctoc README.md && replace \"\\[\\[([\\w/-]+)\\](?:([^\\[\\]]+)\\[([\\w/-]+)\\])?\\]\" \"[\\$1\\$2\\$3]\" README.md",
"test:lint": "eslint .",
"prettier": "prettier --write .",
"test:lint": "eslint . && prettier --check .",
"test:lint-verify-fail": "eslint \"test-lint/*.{js,ts,vue}\" --config .eslintrc.base.js --format json",
"test:lint-rules": "eslint index.js --config test-config/.eslintrc.js --format json",
"test:deprecated": "eslint-find-rules --deprecated index.js",
Expand Down

0 comments on commit 538dbb5

Please sign in to comment.