forked from peggyjs/peggy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
41 lines (40 loc) · 881 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
"use strict";
module.exports = {
root: true,
extends: ["@peggyjs", "@peggyjs/eslint-config/typescript"],
ignorePatterns: [
"docs/",
"lib/parser.js", // Generated
"lib/compiler/passes/js-imports.js", // Generated
"examples/*.js", // Testing examples
"test/vendor/",
"test/cli/fixtures/bad.js", // Intentionally-invalid
"benchmark/vendor/",
"browser/",
"node_modules/",
"*.min.js",
"build",
],
parserOptions: {
project: "tsconfig.json",
},
overrides: [
{
files: ["rollup.config.js", "*.mjs"],
parserOptions: {
sourceType: "module",
ecmaVersion: 2018,
},
},
{
files: ["bin/*.js"],
parserOptions: {
// Doesn't have to run in a browser, and Node 10 not supported.
ecmaVersion: 2020,
},
env: {
node: true,
},
},
],
};