Skip to content

Commit 1719da5

Browse files
mxschmitttaion
authored andcommitted
fix: ran prettier to fix CI (#3678)
- 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
1 parent 65ad0b9 commit 1719da5

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.eslintrc

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
44
],
55
"plugins": [
66
"prettier"
7-
]
7+
],
8+
"rules": {
9+
"prettier/prettier": "error"
10+
}
811
}

package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616
"build-docs": "yarn --cwd www run build",
1717
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
1818
"start": "yarn --cwd www run develop",
19-
"ci-lint": "eslint --rule \"prettier/prettier: 2\"",
20-
"format": "npm run ci-lint . -- --fix",
21-
"lint": "npm run ci-lint .",
19+
"format": "eslint . --fix",
20+
"lint": "eslint .",
2221
"release": "rollout",
2322
"prepublishOnly": "npm run build",
2423
"tdd": "karma start",
@@ -34,7 +33,7 @@
3433
},
3534
"lint-staged": {
3635
"*.js": [
37-
"npm run ci-lint -- --fix",
36+
"eslint --fix",
3837
"git add"
3938
]
4039
},

www/src/pages/components/navbar.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ export default withLayout(function NaπvbarSection({ data }) {
6767
Forms
6868
</LinkedHeading>
6969
<p>
70-
Use <code>{'<Form inline>'}</code> and your various form controls
71-
within the Navbar. Align the contents as needed with utility classes.
70+
Use <code>{'<Form inline>'}</code> and your various form controls within
71+
the Navbar. Align the contents as needed with utility classes.
7272
</p>
7373
<ReactPlayground codeText={NavbarForm} />
7474

0 commit comments

Comments
 (0)