-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #566 from hildjj/update-eslint
Update all dependencies, including `@peggyjs/eslint-config`.
- Loading branch information
Showing
13 changed files
with
1,089 additions
and
753 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import commonjs from "@peggyjs/eslint-config/commonjs.js"; | ||
import compat from "eslint-plugin-compat"; | ||
import mocha from "@peggyjs/eslint-config/mocha.js"; | ||
import { modern } from "@peggyjs/eslint-config/modern.js"; | ||
import ts from "@peggyjs/eslint-config/ts.js"; | ||
|
||
export default [ | ||
{ | ||
ignores: [ | ||
"benchmark/**", | ||
"build/**", | ||
"examples/*.js", // Testing examples | ||
"test/cli/fixtures/bad.js", // Intentionally-invalid | ||
"test/cli/fixtures/imports_peggy.js", // Generated | ||
"test/cli/fixtures/lib.js", // Generated | ||
"test/cli/fixtures/useFrags/fs.js", // Generated | ||
"test/cli/fixtures/useFrags/identifier.js", // Generated | ||
"lib/parser.js", // Generated | ||
"bin/generated_template.d.ts", // Generated | ||
], | ||
}, | ||
...commonjs, | ||
...mocha, | ||
...ts, | ||
{ | ||
...modern, | ||
// All of these can use modern JS and node constructs | ||
files: ["bin/*.js", "tools/**", "web-test/**", "src/*.mjs"], | ||
}, | ||
{ | ||
// Check these files for broad browser compatibility. | ||
files: [ | ||
"**/*.min.js", | ||
"lib/parser.js", | ||
], | ||
plugins: { | ||
compat, | ||
}, | ||
rules: { | ||
"compat/compat": "error", | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.