Skip to content

Commit ffb41c0

Browse files
committed
ESLint Prettier
1 parent dcc44a6 commit ffb41c0

File tree

4 files changed

+104
-4
lines changed

4 files changed

+104
-4
lines changed

.eslintignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
node_modules/
1+
.nyc_output/
2+
coverage/
23
dist/
4+
node_modules/
35

46
# Ignore copied files, to keep the code as close to the original as possible.
57
**/external/

.eslintrc.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515
"plugin:@typescript-eslint/strict",
1616
"plugin:eslint-plugin/recommended",
1717
"plugin:security/recommended",
18-
"prettier"
18+
// Enables eslint-plugin-prettier and eslint-config-prettier.
19+
// This will display Prettier errors as ESLint errors.
20+
// This should always be the last configuration in the extends array.
21+
"plugin:prettier/recommended"
1922
],
2023
"plugins": ["@typescript-eslint", "eslint-plugin"],
2124
"parserOptions": {
@@ -51,9 +54,16 @@
5154
{
5255
"files": ["*.md"],
5356
"parser": "eslint-plugin-markdownlint/parser",
54-
"extends": ["plugin:markdownlint/recommended"],
57+
"extends": [
58+
"plugin:markdownlint/recommended",
59+
// Enables eslint-plugin-prettier and eslint-config-prettier.
60+
// This will display Prettier errors as ESLint errors.
61+
// This should always be the last configuration in the extends array.
62+
"plugin:prettier/recommended"
63+
],
5564
"rules": {
56-
"markdownlint/md013": "off" // Disable line length.
65+
"markdownlint/md013": "off", // Disable line length.
66+
"prettier/prettier": ["error", { "parser": "markdown" }]
5767
}
5868
}
5969
]

package-lock.json

Lines changed: 87 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"eslint-formatter-checklist": "^0.0.1",
3939
"eslint-plugin-eslint-plugin": "5.0.3",
4040
"eslint-plugin-markdownlint": "^0.4.0",
41+
"eslint-plugin-prettier": "^4.2.1",
4142
"eslint-plugin-security": "^1.5.0",
4243
"lockfile-lint": "^4.8.0",
4344
"mocha": "10.0.0",

0 commit comments

Comments
 (0)