Skip to content
This repository was archived by the owner on Aug 13, 2020. It is now read-only.

Commit ffe5742

Browse files
committed
Adapt lint configuration
1 parent 0b780ac commit ffe5742

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist/

.eslintrc.json

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"es6": true,
44
"node": true
55
},
6+
"overrides": [{
7+
"files": ["rollup.config.js", "src/*"],
8+
"parserOptions": { "sourceType": "module" }
9+
}],
610
"extends": ["eslint:recommended", "plugin:node/recommended"],
711
"plugins": ["node"],
812
"rules": {

rollup.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// eslint-disable-next-line node/no-unsupported-features/es-syntax
12
export default {
23
input: "src/index.js",
34
output: [

src/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ function withAcornBigInt(acorn, Parser) {
142142
}
143143
}
144144

145+
// eslint-disable-next-line node/no-unsupported-features/es-syntax
145146
export default function numericSeparator(Parser) {
146147
const acorn = Parser.acorn || require("acorn")
147148
const withAcornBigIntSupport = (acorn.version.startsWith("6.") && !(acorn.version.startsWith("6.0.") || acorn.version.startsWith("6.1."))) || acorn.version.startsWith("7.")

0 commit comments

Comments
 (0)