eslint-plugin-hex-under 1.7.7 → 1.7.9

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.
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # eslint-plugin-hex-under
2
2
 
3
+ [![CI](https://github.com/2nd-Labs/eslint-plugin-hex-under/actions/workflows/build-and-test.yml/badge.svg?branch=main)](https://github.com/2nd-Labs/eslint-plugin-hex-under/actions/workflows/build-and-test.yml)
4
+
3
5
  Enforce readability by limiting non-decimal numeric literals (hex, binary, octal) in JavaScript.
4
6
 
5
7
  Automatically converts large non-decimal literals into readable decimal values or reports them as errors.
package/package.json CHANGED
@@ -43,5 +43,5 @@
43
43
  "test:watch": "vitest"
44
44
  },
45
45
  "type": "module",
46
- "version": "1.7.7"
46
+ "version": "1.7.9"
47
47
  }
@@ -10,4 +10,21 @@ const plugin = {
10
10
  },
11
11
  };
12
12
 
13
+ export const configs = {
14
+ recommended: {
15
+ rules: {
16
+ 'hex-under/hex-under': ['warn', { limit: 255, skipBigInt: false }],
17
+ 'hex-under/octal-under': ['warn', { limit: 511, skipBigInt: false }],
18
+ 'hex-under/binary-under': ['warn', { limit: 255, skipBigInt: false }],
19
+ },
20
+ },
21
+ all: {
22
+ rules: {
23
+ 'hex-under/hex-under': ['error', { limit: 255, skipBigInt: false }],
24
+ 'hex-under/octal-under': ['error', { limit: 511, skipBigInt: false }],
25
+ 'hex-under/binary-under': ['error', { limit: 15, skipBigInt: false }],
26
+ },
27
+ },
28
+ };
29
+
13
30
  export default plugin;