Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,24 @@ env:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7

- uses: actions/setup-node@v7
with:
cache: npm
# devDependencies use new JS features: eslint-plugin-unicorn needs
# Set.prototype.union (Node 22+).
node-version: '24'

- name: install dependencies
run: npm ci

- name: lint
run: npm run lint

test:
strategy:
fail-fast: false
Expand Down Expand Up @@ -79,11 +97,6 @@ jobs:
- name: build
run: npm run build

- name: lint
# Only run lint on latest Node.js, because devDependencies use new JS features.
if: matrix.node == '20' && runner.os != 'Windows'
run: npm run lint

- name: test
run: |
echo $PATH
Expand Down
21 changes: 0 additions & 21 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import js from '@eslint/js';
import globals from 'globals';
import typescriptEslint from '@typescript-eslint/eslint-plugin';
import typescriptParser from '@typescript-eslint/parser';
import unicorn from 'eslint-plugin-unicorn';
import importPlugin from 'eslint-plugin-import';
import prettierConfig from 'eslint-config-prettier/flat';

export default [
Expand Down Expand Up @@ -33,19 +30,10 @@ export default [
ecmaVersion: 'latest',
sourceType: 'module',
},
globals: {
...globals.node,
...globals.es2020,
...globals.mocha,
},
},
plugins: {
'@typescript-eslint': typescriptEslint,
unicorn,
import: importPlugin,
},
settings: {
'import/resolver': { node: { extensions: ['.js', '.jsx', '.ts'] } },
},
linterOptions: {
reportUnusedDisableDirectives: true,
Expand Down Expand Up @@ -82,12 +70,7 @@ export default [
'no-shadow': 'off',
'prefer-destructuring': 'off', // Intentionally disabled trash.

'import/extensions': 'off',
'import/prefer-default-export': 'off',

'global-require': 'error',
'import/no-extraneous-dependencies': 'error',
'import/no-mutable-exports': 'error',
'new-cap': 'error',
'no-console': 'error',
'no-param-reassign': ['error', { props: true }],
Expand Down Expand Up @@ -151,10 +134,6 @@ export default [
// the test files as well)?
'unicorn/prefer-at': 'off',
'new-cap': 'off',
'import/no-extraneous-dependencies': [
'error',
{ devDependencies: true, optionalDependencies: false, peerDependencies: false },
],
},
},
];
Loading
Loading