Skip to content

Commit

Permalink
replace indent-legacy eslint rule by indent
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Apr 26, 2021
1 parent 14e2c8a commit 869036f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
8 changes: 6 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,12 @@ const base = {
'eol-last': ['error', 'always'],
// disallow space between function identifier and application
'func-call-spacing': 'error',
// this option sets a specific tab width for your code
'indent-legacy': ['error', 2, { VariableDeclarator: 2, SwitchCase: 1 }],
// enforce consistent indentation
indent: ['error', 2, {
ignoredNodes: ['ConditionalExpression'],
SwitchCase: 1,
VariableDeclarator: 'first',
}],
// require a space before & after certain keywords
'keyword-spacing': ['error', { before: true, after: true }],
// enforces spacing between keys and values in object literal properties
Expand Down
10 changes: 5 additions & 5 deletions packages/core-js-builder/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ const modulesList = require('core-js-compat/modules');
const { banner } = require('./config');

module.exports = async function ({
blacklist, // TODO: Remove from `core-js@4`
exclude = [],
modules = modulesList.slice(),
targets,
filename,
blacklist, // TODO: Remove from `core-js@4`
exclude = [],
modules = modulesList.slice(),
targets,
filename,
} = {}) {
const set = new Set();

Expand Down
6 changes: 2 additions & 4 deletions tests/tests/es.typed.conversions.float64.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,8 @@ if (DESCRIPTORS) QUnit.test('Float64 conversions', assert => {
[-9007199254740994, -9007199254740994, [1, 0, 0, 0, 0, 0, 64, 195]],
[Infinity, Infinity, [0, 0, 0, 0, 0, 0, 240, 127]],
[-Infinity, -Infinity, [0, 0, 0, 0, 0, 0, 240, 255]],
[-1.7976931348623157e+308, -1.7976931348623157e+308,
[255, 255, 255, 255, 255, 255, 239, 255]],
[1.7976931348623157e+308, 1.7976931348623157e+308,
[255, 255, 255, 255, 255, 255, 239, 127]],
[-1.7976931348623157e+308, -1.7976931348623157e+308, [255, 255, 255, 255, 255, 255, 239, 255]],
[1.7976931348623157e+308, 1.7976931348623157e+308, [255, 255, 255, 255, 255, 255, 239, 127]],
[5e-324, 5e-324, [1, 0, 0, 0, 0, 0, 0, 0]],
[-5e-324, -5e-324, [1, 0, 0, 0, 0, 0, 0, 128]],
];
Expand Down

0 comments on commit 869036f

Please sign in to comment.