Skip to content

Commit

Permalink
Drop support for Node.js v14, enable prefer-event-target `prefer-st…
Browse files Browse the repository at this point in the history
…ring-replace-all` in recommended config
  • Loading branch information
fisker committed Apr 23, 2023
1 parent a9337e8 commit 42ce833
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ jobs:
fail-fast: false
matrix:
node-version:
- 18
- 20
- 16
- 14
os:
- ubuntu-latest
- windows-latest
exclude:
include:
- os: ubuntu-latest
node-version: 16
node-version: 18
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down
6 changes: 2 additions & 4 deletions configs/recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ module.exports = {
'unicorn/prefer-dom-node-dataset': 'error',
'unicorn/prefer-dom-node-remove': 'error',
'unicorn/prefer-dom-node-text-content': 'error',
// TODO: Enable this by default when targeting Node.js 16.
'unicorn/prefer-event-target': 'off',
'unicorn/prefer-event-target': 'error',
'unicorn/prefer-export-from': 'error',
'unicorn/prefer-includes': 'error',
'unicorn/prefer-json-parse-buffer': 'off',
Expand All @@ -107,8 +106,7 @@ module.exports = {
'unicorn/prefer-set-has': 'error',
'unicorn/prefer-set-size': 'error',
'unicorn/prefer-spread': 'error',
// TODO: Enable this by default when targeting Node.js 16.
'unicorn/prefer-string-replace-all': 'off',
'unicorn/prefer-string-replace-all': 'error',
'unicorn/prefer-string-slice': 'error',
'unicorn/prefer-string-starts-ends-with': 'error',
'unicorn/prefer-string-trim-start-end': 'error',
Expand Down

0 comments on commit 42ce833

Please sign in to comment.