Skip to content

Commit

Permalink
fix: don't use node protocol until we drop Node v14.17 support (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmish committed Oct 13, 2022
1 parent 33fcf78 commit a5c0b0c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ module.exports = {
'unicorn/no-array-reduce': 'off',
'unicorn/no-null': 'off',
'unicorn/prefer-module': 'off',
'unicorn/prefer-node-protocol': 'off', // TODO: enable once we drop support for Node 14.17.
'unicorn/prevent-abbreviations': 'off',
},
overrides: [
Expand Down
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
// Requirements
// ------------------------------------------------------------------------------

const fs = require('node:fs');
const path = require('node:path');
const fs = require('fs');
const path = require('path');
const packageMetadata = require('../package');
const PLUGIN_NAME = packageMetadata.name.replace(/^eslint-plugin-/, '');

Expand Down
2 changes: 1 addition & 1 deletion lib/rules/require-meta-docs-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// Requirements
// -----------------------------------------------------------------------------

const path = require('node:path');
const path = require('path');
const util = require('../utils');
const { getStaticValue } = require('eslint-utils');

Expand Down
4 changes: 2 additions & 2 deletions tests/lib/rule-setup.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const { readdirSync, readFileSync } = require('node:fs');
const path = require('node:path');
const { readdirSync, readFileSync } = require('fs');
const path = require('path');
const assert = require('chai').assert;
const plugin = require('../..');

Expand Down
2 changes: 1 addition & 1 deletion tests/lib/utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const { inspect } = require('node:util');
const { inspect } = require('util');
const lodash = require('lodash');
const espree = require('espree');
const eslintScope = require('eslint-scope');
Expand Down

0 comments on commit a5c0b0c

Please sign in to comment.