Skip to content

Commit

Permalink
fix: make ignore option work
Browse files Browse the repository at this point in the history
If we have the ingore in a config that sets up a module, then its not available in other modules unless they also have the ignore
  • Loading branch information
voxpelli committed May 27, 2024
1 parent 914435c commit 6a8bff7
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import neostandard from 'neostandard';
import { config } from 'typescript-eslint';

import { additionalRules } from './base-configs/additional-rules.js';
import { esmRules } from './base-configs/esm.js';
Expand All @@ -17,17 +18,19 @@ export function voxpelli (options) {
...neostandardOptions
} = options || {};

return [
...neostandard({
ignores: [...ignores || [], 'coverage/**/*'],
semi: true,
...neostandardOptions,
}),
...additionalRules,
...jsdocRules,
...cjs ? [] : esmRules,
...noMocha ? [] : mochaRules,
];
return config({
ignores: [...ignores || [], 'coverage/**/*'],
'extends': [
...neostandard({
semi: true,
...neostandardOptions,
}),
...additionalRules,
...jsdocRules,
...cjs ? [] : esmRules,
...noMocha ? [] : mochaRules,
],
});
}

export default voxpelli();

0 comments on commit 6a8bff7

Please sign in to comment.