@@ -6,14 +6,10 @@ import { Options } from "../shared/types.js";
6
6
export async function finalizeDependencies ( options : Options ) {
7
7
const devDependencies = [
8
8
"@eslint/js" ,
9
- "@eslint-community/eslint-plugin-eslint-comments" ,
10
- "@types/eslint-plugin-markdown" ,
11
9
"@types/eslint__js" ,
12
10
"@types/node" ,
13
11
"eslint" ,
14
- "eslint-plugin-jsdoc" ,
15
12
"eslint-plugin-n" ,
16
- "eslint-plugin-regexp" ,
17
13
"husky" ,
18
14
"lint-staged" ,
19
15
"prettier" ,
@@ -24,6 +20,10 @@ export async function finalizeDependencies(options: Options) {
24
20
"typescript" ,
25
21
"typescript-eslint" ,
26
22
...( options . excludeAllContributors ? [ ] : [ "all-contributors-cli" ] ) ,
23
+ ...( options . excludeLintESLint
24
+ ? [ ]
25
+ : [ "@eslint-community/eslint-plugin-eslint-comments" ] ) ,
26
+ ...( options . excludeLintJSDoc ? [ ] : [ "eslint-plugin-jsdoc" ] ) ,
27
27
...( options . excludeLintJson ? [ ] : [ "eslint-plugin-jsonc" ] ) ,
28
28
...( options . excludeLintJson && options . excludeLintPackageJson
29
29
? [ ]
@@ -32,6 +32,7 @@ export async function finalizeDependencies(options: Options) {
32
32
...( options . excludeLintMd
33
33
? [ ]
34
34
: [
35
+ "@types/eslint-plugin-markdown" ,
35
36
"eslint-plugin-markdown" ,
36
37
"markdownlint" ,
37
38
"markdownlint-cli" ,
@@ -41,6 +42,7 @@ export async function finalizeDependencies(options: Options) {
41
42
...( options . excludeLintPerfectionist
42
43
? [ ]
43
44
: [ "eslint-plugin-perfectionist" ] ) ,
45
+ ...( options . excludeLintRegex ? [ ] : [ "eslint-plugin-regexp" ] ) ,
44
46
...( options . excludeLintSpelling ? [ ] : [ "cspell" ] ) ,
45
47
...( options . excludeLintYml ? [ ] : [ "eslint-plugin-yml" ] ) ,
46
48
...( options . excludeReleases
0 commit comments