Skip to content

Commit

Permalink
allow one-off root files in each package to be auto included/linted w…
Browse files Browse the repository at this point in the history
…ithout further config
  • Loading branch information
rosskevin committed Dec 16, 2024
1 parent c2f9ee9 commit b216549
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/configs/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ const configs = tseslint.config(
warnOnUnsupportedTypeScriptVersion: true,
projectService: {
// @see https://typescript-eslint.io/packages/parser#projectservice
// allow one-off root project ts files to be linted
allowDefaultProject: ['*.ts'],
// allow one-off root project/package ts files to be linted without further config
allowDefaultProject: ['*.ts', 'packages/*/*.ts'],
},
},
},
Expand Down Expand Up @@ -150,6 +150,8 @@ const configs = tseslint.config(
'error',
{ allowShortCircuit: true, allowTernary: true, allowTaggedTemplates: true },
],
// https://typescript-eslint.io/rules/no-empty-object-type/
'@typescript-eslint/no-empty-object-type': ['error', { allowInterfaces: 'always' }],

//---------------------------------------------
// simple-import-sort
Expand Down

0 comments on commit b216549

Please sign in to comment.