Skip to content

Commit

Permalink
Merge pull request #19 from hildjj/update-deps
Browse files Browse the repository at this point in the history
Update dependencies, remove ts-pegjs for now.
  • Loading branch information
hildjj authored Feb 14, 2024
2 parents a9acd07 + 964b1a3 commit 3c9d08c
Show file tree
Hide file tree
Showing 22 changed files with 1,439 additions and 15,424 deletions.
30 changes: 0 additions & 30 deletions .eslintrc.js

This file was deleted.

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

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

runs-on: ${{ matrix.os }}
timeout-minutes: 10

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- 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
- name: Install dependencies
run: npm install
- name: Check coding standards
if: matrix.node-version == '19.x' && matrix.os == 'ubuntu-latest'
if: matrix.node-version == '20.x' && matrix.os == 'ubuntu-latest'
run: npm run lint
- name: Test
run: npm run ci
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
with:
files: coverage/lcov.info
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.nyc_output
*.map
coverage/
lib/
node_modules/
pnpm-lock.yaml
src/parser.js
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",
};
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ tsconfig.json
.peggy.js
.mocharc.js
tools/
eslint.config.js
10 changes: 0 additions & 10 deletions .peggy.js

This file was deleted.

36 changes: 36 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
"use strict";
const mocha = require("eslint-plugin-mocha");

module.exports = [
{
ignores: [
"coverage/**",
"docs/**",
"lib/**",
"node_modules/**",
"src/parser.d.ts",
"src/parser.js",
],
},
require("@peggyjs/eslint-config/flat/js"),
require("@peggyjs/eslint-config/flat/mocha"),
require("@peggyjs/eslint-config/flat/ts"),
{
files: ["test/**", "tools/**"],
languageOptions: {
globals: require("@peggyjs/eslint-config/flat/globals").node,
ecmaVersion: 2022,
sourceType: "commonjs",
},
},
{
files: ["test/**/*.js"],
plugins: {
mocha,
},
rules: {
...mocha.configs.recommended.rules,
"mocha/no-mocha-arrows": "off",
},
},
];
174 changes: 0 additions & 174 deletions lib/ast.d.ts

This file was deleted.

43 changes: 0 additions & 43 deletions lib/ast.js

This file was deleted.

13 changes: 0 additions & 13 deletions lib/index.d.ts

This file was deleted.

Loading

0 comments on commit 3c9d08c

Please sign in to comment.