Skip to content

Commit f5ff120

Browse files
committed
fix: @putout/plugin-math: apply-numeric-separators: get back 5 digits min
1 parent 04a2485 commit f5ff120

File tree

8 files changed

+13
-8
lines changed

8 files changed

+13
-8
lines changed

.madrun.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const dirs = getDirs(workspaces);
1313
const env = {
1414
TERM_PROGRAM: 0,
1515
TERMINAL_EMULATOR: 0,
16-
SUPERTAPE_TIMEOUT: 7_000,
16+
SUPERTAPE_TIMEOUT: 7000,
1717
PUTOUT_PROGRESS_BAR: 0,
1818
FORCE_COLOR: 3,
1919
TEST: 1,

packages/engine-parser/lib/parsers/acorn.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports.parse = function acornParse(source) {
1515
const options = {
1616
locations: true,
1717
comment: true,
18-
ecmaVersion: 2_020,
18+
ecmaVersion: 2023,
1919
sourceType: 'module',
2020
allowAwaitOutsideFunction: true,
2121
allowReturnOutsideFunction: true,

packages/engine-parser/lib/parsers/espree.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports.parse = function espreeParse(source) {
1111
loc: true,
1212
tokens: preventUsingEsprima,
1313
comment: true,
14-
ecmaVersion: 2_020,
14+
ecmaVersion: 2023,
1515
sourceType: 'module',
1616
ecmaFeatures: {
1717
jsx: true,

packages/eslint-config/eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88
node: true,
99
},
1010
parserOptions: {
11-
ecmaVersion: 2_022,
11+
ecmaVersion: 2023,
1212
sourceType: 'module',
1313
ecmaFeatures: {
1414
jsx: true,

packages/plugin-jest/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jest.addMatchers({
3737
});
3838

3939
jest.resetModuleRegistry();
40-
jest.runTimersToTime(1_000);
40+
jest.runTimersToTime(1000);
4141
```
4242

4343
### ✅ Example of correct code
@@ -52,7 +52,7 @@ expect.extend({
5252
});
5353

5454
jest.resetModules();
55-
jest.advanceTimersByTime(1_000);
55+
jest.advanceTimersByTime(1000);
5656
```
5757

5858
## License
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
const a = 5;
1+
const a = 2022;

packages/plugin-math/lib/apply-numeric-separators/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports.traverse = ({push}) => ({
1515
node.raw = node.raw || String(node.value);
1616
const {raw} = path.node;
1717

18-
if (raw.length < 4)
18+
if (raw.length < 5)
1919
return;
2020

2121
if (raw.startsWith('0x'))

packages/plugin-math/lib/apply-numeric-separators/index.spec.js

+5
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ test('plugin-math: apply-numeric-separators: no transform: min', (t) => {
2828
t.end();
2929
});
3030

31+
test('plugin-math: apply-numeric-separators: no report: min', (t) => {
32+
t.noReport('min');
33+
t.end();
34+
});
35+
3136
test('plugin-math: apply-numeric-separators: no transform: hex', (t) => {
3237
t.noTransform('hex');
3338
t.end();

0 commit comments

Comments
 (0)