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
70 changes: 0 additions & 70 deletions .eslintrc.js

This file was deleted.

13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,22 @@ jobs:
node-version: [20.x, 22.x, 24.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install dependencies
run: yarn install
run: npm ci

- name: Run linter and tests
run: |
yarn lint
yarn test
yarn coverage
npm run lint
npm run test
npm run coverage

- name: Send test coverage report to Coveralls
uses: coverallsapp/github-action@master
Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,6 @@ Using npm:
$ npm install extensible-custom-error
```

Using Yarn:

```bash
$ yarn add extensible-custom-error
```

## Usage

### Define custom errors
Expand Down
20 changes: 20 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const js = require('@eslint/js');
const globals = require('globals');

module.exports = [
js.configs.recommended,
{
languageOptions: {
globals: {
...globals.node,
...globals.mocha,
},
},
},
{
files: ['index.mjs'],
languageOptions: {
sourceType: 'module',
},
},
];
Loading