eslint-plugin-traceability 1.0.5 โ 1.1.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.
- package/.github/workflows/ci-cd.yml +10 -2
- package/CHANGELOG.md +3 -3
- package/package.json +2 -1
- package/scripts/smoke-test.sh +45 -0
|
@@ -95,5 +95,13 @@ jobs:
|
|
|
95
95
|
cd "$workdir"
|
|
96
96
|
npm init -y > /dev/null
|
|
97
97
|
npm install eslint-plugin-traceability > /dev/null
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
cat > eslint.config.js << 'EOF'
|
|
99
|
+
const traceability = require('eslint-plugin-traceability');
|
|
100
|
+
module.exports = [
|
|
101
|
+
{
|
|
102
|
+
plugins: { traceability },
|
|
103
|
+
rules: {}
|
|
104
|
+
}
|
|
105
|
+
];
|
|
106
|
+
EOF
|
|
107
|
+
npx eslint --print-config eslint.config.js
|
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
# [1.1.0](https://github.com/voder-ai/eslint-plugin-traceability/compare/v1.0.6...v1.1.0) (2025-11-17)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Features
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* add local smoke test script and fix CI smoke test to use CommonJS ([2323802](https://github.com/voder-ai/eslint-plugin-traceability/commit/23238024be18b870deac1f53ecc3ed935fbc0dc6))
|
|
7
7
|
|
|
8
8
|
# Changelog
|
|
9
9
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-traceability",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"format": "prettier --write .",
|
|
17
17
|
"format:check": "prettier --check .",
|
|
18
18
|
"duplication": "jscpd src tests --reporters console --threshold 3",
|
|
19
|
+
"smoke-test": "./scripts/smoke-test.sh",
|
|
19
20
|
"prepare": "husky install"
|
|
20
21
|
},
|
|
21
22
|
"lint-staged": {
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
set -e
|
|
3
|
+
|
|
4
|
+
echo "๐งช Running smoke test for eslint-plugin-traceability"
|
|
5
|
+
echo ""
|
|
6
|
+
|
|
7
|
+
# Create temporary directory
|
|
8
|
+
workdir=$(mktemp -d)
|
|
9
|
+
echo "๐ Created test directory: $workdir"
|
|
10
|
+
|
|
11
|
+
# Cleanup on exit
|
|
12
|
+
cleanup() {
|
|
13
|
+
echo "๐งน Cleaning up test directory"
|
|
14
|
+
rm -rf "$workdir"
|
|
15
|
+
}
|
|
16
|
+
trap cleanup EXIT
|
|
17
|
+
|
|
18
|
+
cd "$workdir"
|
|
19
|
+
|
|
20
|
+
# Initialize npm project
|
|
21
|
+
echo "๐ฆ Initializing npm project..."
|
|
22
|
+
npm init -y > /dev/null
|
|
23
|
+
|
|
24
|
+
# Install the local package
|
|
25
|
+
echo "๐ฅ Installing eslint-plugin-traceability from local build..."
|
|
26
|
+
npm install "$OLDPWD" > /dev/null
|
|
27
|
+
|
|
28
|
+
# Create ESLint config (CommonJS format)
|
|
29
|
+
echo "โ๏ธ Creating ESLint config..."
|
|
30
|
+
cat > eslint.config.js << 'EOF'
|
|
31
|
+
const traceability = require('eslint-plugin-traceability');
|
|
32
|
+
module.exports = [
|
|
33
|
+
{
|
|
34
|
+
plugins: { traceability },
|
|
35
|
+
rules: {}
|
|
36
|
+
}
|
|
37
|
+
];
|
|
38
|
+
EOF
|
|
39
|
+
|
|
40
|
+
# Test the plugin loads
|
|
41
|
+
echo "๐ Testing plugin configuration..."
|
|
42
|
+
npx eslint --print-config eslint.config.js > /dev/null
|
|
43
|
+
|
|
44
|
+
echo ""
|
|
45
|
+
echo "โ
Smoke test passed! Plugin loads successfully."
|