eslint-plugin-hex-under 0.1.2 → 0.1.4
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/.github/workflows/build-and-test.yml +39 -0
- package/hex-under.js +2 -1
- package/package.json +2 -2
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
name: Build and Test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
lint:
|
|
13
|
+
name: Linting
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
- name: Setup Node.js
|
|
18
|
+
uses: actions/setup-node@v4
|
|
19
|
+
with:
|
|
20
|
+
node-version: 22
|
|
21
|
+
- run: npm install
|
|
22
|
+
- name: Run Linting
|
|
23
|
+
run: DEBUG=eslint:eslint npm run lint
|
|
24
|
+
build:
|
|
25
|
+
name: Testing
|
|
26
|
+
needs: lint
|
|
27
|
+
strategy:
|
|
28
|
+
matrix:
|
|
29
|
+
os: [ubuntu-latest, ubuntu-24.04-arm]
|
|
30
|
+
node-version: [18, 20, 22]
|
|
31
|
+
runs-on: ${{ matrix.os }}
|
|
32
|
+
steps:
|
|
33
|
+
- uses: actions/checkout@v4
|
|
34
|
+
- name: Setup Node.js ${{ matrix.node-version }}
|
|
35
|
+
uses: actions/setup-node@v4
|
|
36
|
+
with:
|
|
37
|
+
node-version: ${{ matrix.node-version }}
|
|
38
|
+
- run: npm install
|
|
39
|
+
- run: npm test
|
package/hex-under.js
CHANGED
|
@@ -2,7 +2,8 @@ module.exports = {
|
|
|
2
2
|
meta: {
|
|
3
3
|
type: "problem",
|
|
4
4
|
docs: {
|
|
5
|
-
description:
|
|
5
|
+
description:
|
|
6
|
+
"Proves that a hexadecimal number must be less than a specified value. Default is 255.",
|
|
6
7
|
},
|
|
7
8
|
fixable: "code",
|
|
8
9
|
schema: [
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-hex-under",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"main": "eslint-plugin-hex-under.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"lint": "prettier . --check && eslint .",
|
|
7
|
-
"test": "node hex-under
|
|
7
|
+
"test": "node hex-under.test.js"
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|