eslint-plugin-hex-under 1.7.13 → 1.7.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +5 -3
package/README.md CHANGED
@@ -51,7 +51,7 @@ function add(a, b) {
51
51
  return a + b + 0x1f;
52
52
  }
53
53
 
54
- const binary = 0b1111_1111;
54
+ const binary = 0b1111;
55
55
 
56
56
  const octal = 0o377;
57
57
  ```
@@ -71,7 +71,7 @@ let d = 0xaa_ffn;
71
71
 
72
72
  const binary = 0b1_0000_0000;
73
73
 
74
- const octal = 0o400;
74
+ const octal = 0o1000;
75
75
  ```
76
76
 
77
77
  #### Auto-fixable
@@ -90,7 +90,7 @@ let d = 43775;
90
90
 
91
91
  const binary = 256;
92
92
 
93
- const octal = 256;
93
+ const octal = 512;
94
94
  ```
95
95
 
96
96
  #### Ignore with line comments
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "@eslint/js": "10.0.1",
6
6
  "@eslint/json": "1.2.0",
7
7
  "@vitest/coverage-v8": "4.1.2",
8
- "@vitest/eslint-plugin": "1.6.13",
8
+ "@vitest/eslint-plugin": "1.6.14",
9
9
  "bats": "1.13.0",
10
10
  "eslint": "10.1.0",
11
11
  "eslint-plugin-eslint-plugin": "7.3.2",
@@ -36,12 +36,14 @@
36
36
  "repository": "github:0xflotus/eslint-plugin-hex-under",
37
37
  "scripts": {
38
38
  "coverage": "vitest run --coverage",
39
- "lint": "prettier . --check && eslint . --config eslint.config.js",
39
+ "format": "prettier . --check",
40
+ "lint": "eslint src --config eslint.config.js",
41
+ "prelint": "npm run format",
40
42
  "test": "vitest run",
41
43
  "test:all": "npm run test && npm run test:bats",
42
44
  "test:bats": "bats --print-output-on-failure --abort --verbose-run test/bats/*.bats",
43
45
  "test:watch": "vitest"
44
46
  },
45
47
  "type": "module",
46
- "version": "1.7.13"
48
+ "version": "1.7.15"
47
49
  }