Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #29

Merged
merged 4 commits into from
Feb 16, 2024
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
29 changes: 0 additions & 29 deletions .eslintrc.js

This file was deleted.

16 changes: 9 additions & 7 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,26 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [18.x, 20.x, 21.x]
os: [ubuntu-latest, windows-latest, macos-latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install pnpm
run: corepack enable
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache: pnpm
- name: Install dependencies
run: npm install && cd examples && npm install
run: pnpm i -r
- name: Test
run: npm run coverage
- name: Check coding standards
if: matrix.node-version == '18.x' && matrix.os == 'ubuntu-latest'
if: matrix.node-version == '20.x' && matrix.os == 'ubuntu-latest'
run: npm run lint
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ coverage/
node_modules/
examples/node_modules/
.vscode/
pnpm-lock.yaml
8 changes: 4 additions & 4 deletions .mocharc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"use strict";

module.exports = {
diff: true,
"diff": true,
"full-trace": true,
recursive: true,
reporter: "progress",
require: "source-map-support/register",
"recursive": true,
"reporter": "progress",
"require": "source-map-support/register",
};
3 changes: 3 additions & 0 deletions .ncurc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"dep": ["optional", "peer", "prod", "dev", "packageManager"]
}
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ test/
tsconfig.json
.mocharc.js
pnpm-lock.yaml
.ncurc
eslint.config.js
23 changes: 23 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"use strict";
const pp = require("./");

module.exports = [
{
ignores: [
"coverage/**",
"docs/**",
"lib/**",
"node_modules/**",
],
},
require("@peggyjs/eslint-config/flat/js"),
require("@peggyjs/eslint-config/flat/mocha"),
require("@peggyjs/eslint-config/flat/ts"),
{
files: ["*.peggy", "*.pegjs"],
plugin: {
"@peggyjs": pp,
},
rules: pp.configs.recommended.overrides[0].rules,
},
];
Loading