eslint-plugin-hex-under 1.5.0 → 1.6.0

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 +12 -0
  2. package/package.json +28 -27
package/README.md CHANGED
@@ -74,6 +74,18 @@ const foo = 0xffff;
74
74
  const bar = 0b10100010101;
75
75
  ```
76
76
 
77
+ Or you disable every rule separately with a block comment before the code, e.g.:
78
+
79
+ ```js
80
+ // This sould be ignore all hex numbers but not octal or binary numbers.
81
+
82
+ /* ignore-hex-under */
83
+
84
+ const hex = 0x100; // This should stay 0x100
85
+ const octal = 0o1000; // This sould be fixed to 512
86
+ const binary = 0b10000; // This should be fixed to 16
87
+ ```
88
+
77
89
  ## Integration
78
90
 
79
91
  ```sh
package/package.json CHANGED
@@ -1,42 +1,43 @@
1
1
  {
2
- "name": "eslint-plugin-hex-under",
3
- "version": "1.5.0",
4
- "type": "module",
5
- "main": "src/eslint-plugin-hex-under.js",
6
- "scripts": {
7
- "coverage": "vitest run --coverage",
8
- "lint": "prettier . --check && eslint .",
9
- "test": "vitest run",
10
- "test:all": "npm run test && npm run test:bats",
11
- "test:bats": "bats --print-output-on-failure --abort --verbose-run test/bats/*.bats",
12
- "test:watch": "vitest"
13
- },
14
- "repository": "github:0xflotus/eslint-plugin-hex-under",
15
- "keywords": [
16
- "eslint",
17
- "eslint-plugin",
18
- "lint",
19
- "hex",
20
- "static-analysis"
21
- ],
22
- "engines": {
23
- "node": ">=22"
24
- },
25
2
  "author": "0xflotus",
26
- "license": "MIT",
27
3
  "description": "This ESLint rule proves that hex numbers are less than a specified value.",
28
4
  "devDependencies": {
29
5
  "@eslint/js": "10.0.1",
6
+ "@eslint/json": "1.2.0",
30
7
  "@vitest/coverage-v8": "4.1.0",
31
- "@vitest/eslint-plugin": "1.6.12",
8
+ "@vitest/eslint-plugin": "1.6.13",
32
9
  "bats": "1.13.0",
33
- "eslint": "10.0.3",
10
+ "eslint": "10.1.0",
34
11
  "eslint-plugin-eslint-plugin": "7.3.2",
35
12
  "prettier": "3.8.1",
36
13
  "tinyexec": "1.0.4",
37
14
  "vitest": "4.1.0"
38
15
  },
16
+ "engines": {
17
+ "node": ">=22"
18
+ },
19
+ "keywords": [
20
+ "eslint",
21
+ "eslint-plugin",
22
+ "lint",
23
+ "hex",
24
+ "static-analysis"
25
+ ],
26
+ "license": "MIT",
27
+ "main": "src/eslint-plugin-hex-under.js",
28
+ "name": "eslint-plugin-hex-under",
39
29
  "peerDependencies": {
40
30
  "eslint": ">= 10"
41
- }
31
+ },
32
+ "repository": "github:0xflotus/eslint-plugin-hex-under",
33
+ "scripts": {
34
+ "coverage": "vitest run --coverage",
35
+ "lint": "prettier . --check && eslint .",
36
+ "test": "vitest run",
37
+ "test:all": "npm run test && npm run test:bats",
38
+ "test:bats": "bats --print-output-on-failure --abort --verbose-run test/bats/*.bats",
39
+ "test:watch": "vitest"
40
+ },
41
+ "type": "module",
42
+ "version": "1.6.0"
42
43
  }