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 2d571cf commit 29148b8
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 29148b8

Please sign in to comment.