Skip to content

Commit

Permalink
Upgrade: eslint devDependencies (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed Feb 18, 2021
1 parent 1a8ec00 commit fc384a4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
7 changes: 4 additions & 3 deletions package.json
Expand Up @@ -24,9 +24,10 @@
},
"devDependencies": {
"chai": "^4.2.0",
"eslint": "^6.0.1",
"eslint-config-eslint": "^5.0.1",
"eslint-plugin-node": "^9.1.0",
"eslint": "^7.20.0",
"eslint-config-eslint": "^7.0.0",
"eslint-plugin-jsdoc": "^32.0.1",
"eslint-plugin-node": "^11.1.0",
"eslint-release": "^1.0.0",
"esprima": "latest",
"esprima-fb": "^8001.2001.0-dev-harmony-fb",
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/conditional-regex-value.js
Expand Up @@ -4,7 +4,7 @@ module.exports = function(literalNode) {
if (literalNode.regex) {
try {
literalNode.value = new RegExp(literalNode.regex.pattern, literalNode.regex.flags);
} catch (e) {
} catch {
literalNode.value = null;
}
}
Expand Down
10 changes: 5 additions & 5 deletions tests/lib/ecma-version.js
Expand Up @@ -82,7 +82,7 @@ describe("ecmaVersion", () => {

try {
expected = require(`${path.resolve(__dirname, "../../", FIXTURES_DIR, filename)}.module-result.js`);
} catch (err) {
} catch {
expected = require(`${path.resolve(__dirname, "../../", FIXTURES_DIR, filename)}.result.js`);
}

Expand Down Expand Up @@ -124,7 +124,7 @@ describe("ecmaVersion", () => {
loc: true
}
);
}, /Invalid ecmaVersion/);
}, /Invalid ecmaVersion/u);
});

it("Should throw error using invalid year", () => {
Expand All @@ -138,7 +138,7 @@ describe("ecmaVersion", () => {
loc: true
}
);
}, /Invalid ecmaVersion/);
}, /Invalid ecmaVersion/u);
});

it("Should throw error when non-numeric year is provided", () => {
Expand All @@ -152,7 +152,7 @@ describe("ecmaVersion", () => {
loc: true
}
);
}, /ecmaVersion must be a number. Received value of type string instead/);
}, /ecmaVersion must be a number. Received value of type string instead/u);
});

it("Should throw error when using module in pre-ES6", () => {
Expand All @@ -163,7 +163,7 @@ describe("ecmaVersion", () => {
sourceType: "module"
}
);
}, /sourceType 'module' is not supported when ecmaVersion < 2015/);
}, /sourceType 'module' is not supported when ecmaVersion < 2015/u);
});
});

Expand Down

0 comments on commit fc384a4

Please sign in to comment.