Skip to content

Commit

Permalink
feat: flat config
Browse files Browse the repository at this point in the history
closes #1299
closes #1210

BREAKING CHANGE: exports an ESLint flat config.
  • Loading branch information
mightyiam committed May 18, 2024
1 parent d5432d9 commit a0571e7
Show file tree
Hide file tree
Showing 14 changed files with 292 additions and 432 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

8 changes: 0 additions & 8 deletions .eslintrc.json

This file was deleted.

26 changes: 26 additions & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
const tseslint = require('typescript-eslint')

module.exports = [
require('.'),
{
files: [
'**/*.cjs',
'**/*.js',
'**/*.ts'
],
linterOptions: {
reportUnusedDisableDirectives: 'error'
}
},
{
files: ['eslint.config.cjs'],
rules: {
...tseslint.configs.disableTypeChecked.rules,
'@typescript-eslint/no-var-requires': 'off'
},
languageOptions: { parserOptions: { project: false } }
},
{
ignores: ['lib/']
}
]

0 comments on commit a0571e7

Please sign in to comment.