Skip to content

Commit

Permalink
update to eslint v9
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yle committed Aug 15, 2024
1 parent c9ce7ba commit 1d8a03f
Show file tree
Hide file tree
Showing 12 changed files with 4,968 additions and 1,944 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
13 changes: 13 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import tsEslint from 'typescript-eslint';
import config from 'eslint-config-kyle';

export default tsEslint.config(...config, {
rules: {
'vitest/expect-expect': 'off', // we use node:assert
'unicorn/prefer-node-protocol': 'off', // not supported in node v10
'unicorn/prefer-event-target': 'off', // not supported in node v10
'unicorn/prefer-string-replace-all': 'off', // not supported in node v10
'unicorn/prevent-abbreviations': 'off', // don't want to rename code ported from C++
'@typescript-eslint/no-unsafe-declaration-merging': 'off', // required for EventEmitter types
},
});
Loading

0 comments on commit 1d8a03f

Please sign in to comment.