-
Notifications
You must be signed in to change notification settings - Fork 66
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 #464 from hildjj/deprecate-old-browsers
Deprecate old browsers
- Loading branch information
Showing
11 changed files
with
345 additions
and
218 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
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
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,60 @@ | ||
"use strict"; | ||
|
||
module.exports = [ | ||
{ | ||
ignores: [ | ||
"benchmark/**", | ||
"build/**", | ||
"docs/**", | ||
"examples/*.js", // Testing examples | ||
"node_modules/**", | ||
"test/cli/fixtures/bad.js", // Intentionally-invalid | ||
"test/cli/fixtures/imports_peggy.js", // Generated | ||
"test/cli/fixtures/lib.js", // Generated | ||
"test/vendor/**", | ||
], | ||
}, | ||
{ | ||
...require("@peggyjs/eslint-config/flat/js"), | ||
ignores: [ | ||
"**/*.min.js", | ||
"lib/parser.js", // Generated | ||
], | ||
}, | ||
require("@peggyjs/eslint-config/flat/mjs"), | ||
require("@peggyjs/eslint-config/flat/mocha"), | ||
require("@peggyjs/eslint-config/flat/ts"), | ||
{ | ||
...require("@peggyjs/eslint-config/flat/modern"), | ||
// All of these can use modern JS and node constructs | ||
files: ["bin/*.js", "tools/**", "web-test/**"], | ||
}, | ||
{ | ||
files: ["lib/peg.d.ts"], | ||
rules: { | ||
// Easier than fixing the hand-generated peg.d.ts | ||
"no-unused-vars": "off", | ||
"one-var": "off", | ||
"no-use-before-define": "off", | ||
"init-declarations": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/init-declarations": "off", | ||
"@typescript-eslint/no-empty-interface": "off", | ||
"@typescript-eslint/no-shadow": "off", | ||
"@typescript-eslint/prefer-function-type": "off", | ||
}, | ||
}, | ||
{ | ||
// Check these files for broad browser compatibility. | ||
files: [ | ||
"**/*.min.js", | ||
"lib/parser.js", | ||
], | ||
plugins: { | ||
compat: require("eslint-plugin-compat"), | ||
}, | ||
rules: { | ||
"compat/compat": "error", | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.