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 c8d3d40
Show file tree
Hide file tree
Showing 13 changed files with 4,969 additions and 1,945 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
CI: true

- name: ✨ Lint
if: ${{ matrix.node-version != '10.x' }}
if: ${{ matrix.node-version != '10.x' && matrix.node-version != '12.x' && matrix.node-version != '14.x' && matrix.node-version != '16.x' }}
run: |
npm run lint
Expand Down
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 c8d3d40

Please sign in to comment.