Skip to content

Commit

Permalink
lint peggy source files
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Sep 13, 2024
1 parent 8255908 commit 20c13a8
Show file tree
Hide file tree
Showing 8 changed files with 715 additions and 883 deletions.
586 changes: 243 additions & 343 deletions dist/main.js

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import globals from 'globals';
import js from '@eslint/js';
import mochaPlugin from 'eslint-plugin-mocha';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import prettierPlugin from 'eslint-plugin-prettier/recommended';
import peggyPlugin from '@peggyjs/eslint-plugin/lib/flat/recommended.js';

export default [
{
Expand All @@ -18,7 +19,11 @@ export default [
globals: globals.node,
},
},
peggyPlugin,
js.configs.recommended,
mochaPlugin.configs.flat.recommended,
eslintPluginPrettierRecommended,
{
...prettierPlugin,
ignores: ['**/*.pegjs'],
},
];
60 changes: 60 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
"js-yaml": "^4.1.0"
},
"devDependencies": {
"@peggyjs/eslint-parser": "^2.0.6",
"@peggyjs/eslint-plugin": "^2.1.2",
"esbuild": "^0.23.1",
"eslint": "^9.9.1",
"eslint-config-prettier": "^9.1.0",
Expand Down
Loading

0 comments on commit 20c13a8

Please sign in to comment.