Skip to content

Commit

Permalink
Globally apply ignores patterns
Browse files Browse the repository at this point in the history
- if an ignores key is used without any other keys in the configuration object, then the patterns act as global ignores.
> https://eslint.org/docs/latest/use/configure/ignore#ignoring-files
  • Loading branch information
MajorLift committed Sep 24, 2024
1 parent 88d26ae commit c7d9e9d
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,21 @@ import typescript from '@metamask/eslint-config-typescript';
import tseslint from 'typescript-eslint';

const config = tseslint.config({
extends: [...base, ...nodejs],
ignores: [
'!.eslintrc.js',
'!.eslint.config.mjs',
'!jest.config.js',
'node_modules',
'**/dist',
'**/docs',
'**/coverage',
'merged-packages',
'scripts/create-package/package-template',
'yarn.lock',
'**/*.d.ts',
'**/**.map',
'**/dist/**',
'**/docs/**',
'**/coverage/**',
'merged-packages/**',
'scripts/create-package/package-template/**',
],
},
{
extends: [...base, ...nodejs],
rules: {
// Left disabled because various properties throughough this repo are snake_case because the
// names come from external sources or must comply with standards
Expand Down

0 comments on commit c7d9e9d

Please sign in to comment.