Skip to content

Commit adfbb1d

Browse files
committed
feat: Upgrade default Node.js configuration to v12
BREAKING CHANGE: Default Node.js configuration is set for Node.js v12 Projects which support Node.js v10 need to switch to `node/10`
1 parent c450aa5 commit adfbb1d

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

node/10.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
'use strict';
2+
3+
const { join } = require('path');
4+
5+
module.exports = {
6+
extends: join(__dirname, 'index.js'),
7+
globals: { globalThis: 'off' },
8+
};

node/6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const { join } = require('path');
44

55
module.exports = {
6-
extends: join(__dirname, 'index.js'),
6+
extends: join(__dirname, '10.js'),
77
parserOptions: { ecmaVersion: 2015 },
88
globals: { BigInt: 'off' },
99
};

node/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { join } = require('path');
55
module.exports = {
66
// The only way to ensure that ESLint resolves expected config from any location
77
extends: join(__dirname, '../index.js'),
8-
globals: { BigInt: 'readonly' },
8+
globals: { BigInt: 'readonly', globalThis: 'readonly' },
99
env: { node: true },
1010
rules: {
1111
'no-path-concat': 'error',

0 commit comments

Comments
 (0)