Skip to content

Commit

Permalink
chore(devDeps): update 'eslint' and its plugins (#4737)
Browse files Browse the repository at this point in the history
  • Loading branch information
juergba authored Sep 6, 2021
1 parent abfddf8 commit 4860738
Show file tree
Hide file tree
Showing 7 changed files with 361 additions and 337 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ parserOptions:
jsx: false
sourceType: script
rules:
no-var: 0
strict:
- error
- safe
Expand Down Expand Up @@ -42,7 +43,8 @@ overrides:
parserOptions:
ecmaVersion: 2018
sourceType: module
parser: babel-eslint
requireConfigFile: false # for @babel/eslint-parser
parser: '@babel/eslint-parser'
env:
browser: false
- files:
Expand Down
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ exports.canonicalize = function canonicalize(value, stack, typeHint) {
});
break;
case 'function':
/* eslint-disable-next-line no-unused-vars */
/* eslint-disable-next-line no-unused-vars, no-unreachable-loop */
for (prop in value) {
canonicalizedObj = {};
break;
Expand Down
662 changes: 344 additions & 318 deletions package-lock.json

Large diffs are not rendered by default.

19 changes: 9 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
"devDependencies": {
"@11ty/eleventy": "^0.11.0",
"@11ty/eleventy-plugin-inclusive-language": "^1.0.0",
"@babel/eslint-parser": "^7.15.4",
"@babel/preset-env": "^7.14.8",
"@mocha/docdash": "^3.0.1",
"@rollup/plugin-babel": "^5.1.0",
Expand All @@ -90,7 +91,6 @@
"@rollup/plugin-node-resolve": "^8.4.0",
"assetgraph-builder": "^8.2.0",
"autoprefixer": "^9.8.6",
"babel-eslint": "^10.1.0",
"canvas": "^2.8.0",
"chai": "^4.2.0",
"coffee-script": "^1.12.7",
Expand All @@ -99,15 +99,14 @@
"coveralls": "^3.1.1",
"cross-env": "^7.0.2",
"cross-spawn": "^7.0.3",
"eslint": "^7.8.1",
"eslint-config-prettier": "^6.11.0",
"eslint-config-semistandard": "^15.0.1",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-semistandard": "^16.0.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^5.1.0",
"fail-on-errors-webpack-plugin": "^3.0.0",
"fs-extra": "^9.0.1",
"husky": "^4.2.5",
Expand Down
5 changes: 1 addition & 4 deletions scripts/update-authors.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ const excludeEmails = [
// `Co-authored-by:` in the message body. Both have been used in the past
// to indicate multiple authors per commit, with the latter standardized
// by GitHub now.
const authorRe = new RegExp(
'(^Author:|^Co-authored-by:)\\s+(?<author>[^<]+)\\s+(?<email><[^>]+>)',
'i'
);
const authorRe = /(^Author:|^Co-authored-by:)\\s+(?<author>[^<]+)\\s+(?<email><[^>]+>)/i;

rl.on('line', line => {
const match = line.match(authorRe);
Expand Down
4 changes: 2 additions & 2 deletions test/integration/suite.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('skipped suite w/no callback', function() {
if (err) {
return done(err);
}
var pattern = new RegExp('TypeError', 'g');
var pattern = /TypeError/g;
var result = res.output.match(pattern) || [];
expect(result, 'to have length', 0);
done();
Expand All @@ -44,7 +44,7 @@ describe('skipped suite w/ callback', function() {
if (err) {
return done(err);
}
var pattern = new RegExp('TypeError', 'g');
var pattern = /TypeError/g;
var result = res.output.match(pattern) || [];
expect(result, 'to have length', 0);
done();
Expand Down
2 changes: 1 addition & 1 deletion test/unit/utils.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ describe('lib/utils', function() {
});

it('should handle various non-undefined, non-null, non-object, non-array, non-date, and non-function values', function() {
var regexp = new RegExp('(?:)');
var regexp = /(?:)/;
var regExpObj = {regexp: regexp};
var regexpString = '/(?:)/';

Expand Down

0 comments on commit 4860738

Please sign in to comment.