Skip to content

Commit

Permalink
feat: add ignore and expose all of neostandard
Browse files Browse the repository at this point in the history
  • Loading branch information
voxpelli committed May 27, 2024
1 parent 49a0bcf commit 914435c
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,23 @@ import { jsdocRules } from './base-configs/jsdoc.js';
import { mochaRules } from './base-configs/mocha.js';

/**
* @param {{ cjs?: boolean, noMocha?: boolean }} [options]
* @param {{ cjs?: boolean, noMocha?: boolean } & import('neostandard').NeostandardOptions} [options]
* @returns {import('@typescript-eslint/utils/ts-eslint').FlatConfig.ConfigArray}
*/
export function voxpelli ({ cjs, noMocha } = {}) {
export function voxpelli (options) {
const {
cjs,
ignores,
noMocha,
...neostandardOptions
} = options || {};

return [
...neostandard({ semi: true }),
...neostandard({
ignores: [...ignores || [], 'coverage/**/*'],
semi: true,
...neostandardOptions,
}),
...additionalRules,
...jsdocRules,
...cjs ? [] : esmRules,
Expand Down

0 comments on commit 914435c

Please sign in to comment.