Skip to content

Commit

Permalink
fix: ran prettier to fix CI (#3678)
Browse files Browse the repository at this point in the history
- Ran prettier to fix CI
- moved prettier Eslint rule into eslintrc file, so that it will be automatically recognized by Visual Studio Code e.g. and automatically fixed
  • Loading branch information
mxschmitt authored and taion committed Apr 19, 2019
1 parent 65ad0b9 commit 1719da5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
],
"plugins": [
"prettier"
]
],
"rules": {
"prettier/prettier": "error"
}
}
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
"build-docs": "yarn --cwd www run build",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"start": "yarn --cwd www run develop",
"ci-lint": "eslint --rule \"prettier/prettier: 2\"",
"format": "npm run ci-lint . -- --fix",
"lint": "npm run ci-lint .",
"format": "eslint . --fix",
"lint": "eslint .",
"release": "rollout",
"prepublishOnly": "npm run build",
"tdd": "karma start",
Expand All @@ -34,7 +33,7 @@
},
"lint-staged": {
"*.js": [
"npm run ci-lint -- --fix",
"eslint --fix",
"git add"
]
},
Expand Down
4 changes: 2 additions & 2 deletions www/src/pages/components/navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ export default withLayout(function NaπvbarSection({ data }) {
Forms
</LinkedHeading>
<p>
Use <code>{'<Form inline>'}</code> and your various form controls
within the Navbar. Align the contents as needed with utility classes.
Use <code>{'<Form inline>'}</code> and your various form controls within
the Navbar. Align the contents as needed with utility classes.
</p>
<ReactPlayground codeText={NavbarForm} />

Expand Down

0 comments on commit 1719da5

Please sign in to comment.