Skip to content

Commit

Permalink
feat: upgrade plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
ASafaeirad committed Mar 4, 2024
1 parent 2a3bdaf commit 883f54f
Show file tree
Hide file tree
Showing 3 changed files with 379 additions and 229 deletions.
6 changes: 3 additions & 3 deletions init.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function init(opts = {}) {
opts.esm && require.resolve('./esm'),
opts.strict && require.resolve('./strict'),
opts.prettier && require.resolve('./prettier'),
opts.typescript && require.resolve('./typecheck.js'),
]
.concat(extraExtends)
.filter(Boolean),
Expand All @@ -41,10 +42,9 @@ function init(opts = {}) {
eslintConfig,
);

if (opts.typescript?.parserProject) {
config.extends.push(require.resolve('./typecheck.js'));
if (opts.typescript) {
config.parserOptions = merge(config.parserOptions, {
project: opts.typescript.parserProject,
project: opts.typescript.parserProject ?? true,
});
}

Expand Down
Loading

0 comments on commit 883f54f

Please sign in to comment.