Skip to content

Commit ed13a91

Browse files
chore: add more ESLint plugins (#78)
1 parent d9b9589 commit ed13a91

File tree

3 files changed

+313
-2
lines changed

3 files changed

+313
-2
lines changed

.eslintrc.cjs

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
module.exports = {
2-
extends: ["eslint:recommended", "prettier"],
2+
extends: [
3+
"eslint:recommended",
4+
"plugin:eslint-comments/recommended",
5+
"plugin:regexp/recommended",
6+
"prettier",
7+
],
38
overrides: [
9+
{
10+
extends: ["plugin:markdown/recommended"],
11+
files: ["**/*.{md}"],
12+
processor: "markdown/markdown",
13+
},
414
{
515
extends: [
616
"plugin:@typescript-eslint/recommended",
@@ -31,9 +41,19 @@ module.exports = {
3141
tsconfigRootDir: __dirname,
3242
project: ["./tsconfig.json"],
3343
},
34-
plugins: ["@typescript-eslint", "simple-import-sort", "typescript-sort-keys"],
44+
plugins: [
45+
"@typescript-eslint",
46+
"deprecation",
47+
"no-only-tests",
48+
"regexp",
49+
"simple-import-sort",
50+
"typescript-sort-keys",
51+
"vitest",
52+
],
3553
root: true,
3654
rules: {
55+
"deprecation/deprecation": "error",
56+
"no-only-tests/no-only-tests": "error",
3757
"simple-import-sort/exports": "error",
3858
"simple-import-sort/imports": "error",
3959
},

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,15 @@
1313
"cspell": "^6.12.0",
1414
"eslint": "^8.24.0",
1515
"eslint-config-prettier": "^8.5.0",
16+
"eslint-plugin-deprecation": "^1.3.3",
17+
"eslint-plugin-eslint-comments": "^3.2.0",
1618
"eslint-plugin-jsonc": "^2.4.0",
19+
"eslint-plugin-markdown": "^3.0.0",
20+
"eslint-plugin-no-only-tests": "^3.1.0",
21+
"eslint-plugin-regexp": "^1.11.0",
1722
"eslint-plugin-simple-import-sort": "^8.0.0",
1823
"eslint-plugin-typescript-sort-keys": "^2.1.0",
24+
"eslint-plugin-vitest": "^0.0.20",
1925
"husky": ">=6",
2026
"jsonc-eslint-parser": "^2.1.0",
2127
"lint-staged": ">=10",

0 commit comments

Comments
 (0)