Skip to content

Commit eb3889a

Browse files
committed
Improve ESLint 📄
1 parent 48c4fe3 commit eb3889a

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

.eslintrc.json

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
"root": true,
33
"extends": [
44
"plugin:@cspell/recommended",
5+
6+
// Display Prettier errors as ESLint errors.
57
// Enables eslint-plugin-prettier and eslint-config-prettier.
6-
// This will display Prettier errors as ESLint errors.
7-
// This should always be the last configuration in the extends array.
88
"plugin:prettier/recommended"
9+
10+
//! Prettier should always be the last configuration in the extends array.
911
],
1012
"overrides": [
1113
/*
@@ -25,10 +27,12 @@
2527
"plugin:@typescript-eslint/strict",
2628
"plugin:eslint-plugin/recommended",
2729
"plugin:security/recommended",
30+
31+
// Display Prettier errors as ESLint errors.
2832
// Enables eslint-plugin-prettier and eslint-config-prettier.
29-
// This will display Prettier errors as ESLint errors.
30-
// This should always be the last configuration in the extends array.
3133
"plugin:prettier/recommended"
34+
35+
//! Prettier should always be the last configuration in the extends array.
3236
],
3337
"plugins": ["@typescript-eslint", "eslint-plugin"],
3438
"parserOptions": {
@@ -70,10 +74,12 @@
7074
"files": ["*.json"],
7175
"extends": [
7276
"plugin:json/recommended-with-comments",
77+
78+
// Display Prettier errors as ESLint errors.
7379
// Enables eslint-plugin-prettier and eslint-config-prettier.
74-
// This will display Prettier errors as ESLint errors.
75-
// This should always be the last configuration in the extends array.
7680
"plugin:prettier/recommended"
81+
82+
//! Prettier should always be the last configuration in the extends array.
7783
]
7884
},
7985

@@ -87,10 +93,11 @@
8793
"files": ["package.json"],
8894
"plugins": ["json-files"],
8995
"extends": [
96+
// Display Prettier errors as ESLint errors.
9097
// Enables eslint-plugin-prettier and eslint-config-prettier.
91-
// This will display Prettier errors as ESLint errors.
92-
// This should always be the last configuration in the extends array.
9398
"plugin:prettier/recommended"
99+
100+
//! Prettier should always be the last configuration in the extends array.
94101
],
95102
"rules": {
96103
"json-files/ensure-repository-directory": "error",
@@ -110,10 +117,12 @@
110117
"parser": "eslint-plugin-markdownlint/parser",
111118
"extends": [
112119
"plugin:markdownlint/recommended",
120+
121+
// Display Prettier errors as ESLint errors.
113122
// Enables eslint-plugin-prettier and eslint-config-prettier.
114-
// This will display Prettier errors as ESLint errors.
115-
// This should always be the last configuration in the extends array.
116123
"plugin:prettier/recommended"
124+
125+
//! Prettier should always be the last configuration in the extends array.
117126
],
118127
"rules": {
119128
"markdownlint/md013": "off", // Disable line length.

0 commit comments

Comments
 (0)