chore: update prettier scripts and fix lint issues

This commit is contained in:
2025-09-30 18:10:54 -04:00
parent c396087f44
commit 15aaa61b43
+17 -5
View File
@@ -12,12 +12,13 @@
"author": "Didericis", "author": "Didericis",
"license": "Apache-2.0", "license": "Apache-2.0",
"scripts": { "scripts": {
"test": "npm run lint && npm run test:build-project && npm run test:build-bundles && bare test/bare.js", "test": "npm run prettier:lint && npm run test:build-project && npm run test:build-bundles && bare test/bare.js",
"test:build-project": "cd test/project && npm install", "test:build-project": "cd test/project && npm install",
"test:build-bundles": "mkdir -p test/bundles && npm run test:build-default-bundle && npm run test:build-plugin-bundle", "test:build-bundles": "mkdir -p test/bundles && npm run test:build-default-bundle && npm run test:build-plugin-bundle",
"test:build-default-bundle": "cd test/project && bare-pack app.js -o ../bundles/default.bundle", "test:build-default-bundle": "cd test/project && bare-pack app.js -o ../bundles/default.bundle",
"test:build-plugin-bundle": "cd test/project && bare-pack app.js | bare-bundle-transform --plugin ../../index.js -o ../bundles/plugin.bundle", "test:build-plugin-bundle": "cd test/project && bare-pack app.js | bare-bundle-transform --plugin ../../index.js -o ../bundles/plugin.bundle",
"lint": "prettier . --check" "prettier:lint": "prettier . --check",
"prettier:fix": "prettier . --write"
}, },
"prettier": "prettier-config-standard", "prettier": "prettier-config-standard",
"imports": { "imports": {
@@ -37,11 +38,22 @@
{ {
"preset": "angular", "preset": "angular",
"releaseRules": [ "releaseRules": [
{ "type": "docs", "scope": "README", "release": "patch" }, {
{ "type": "refactor", "release": "patch" } "type": "docs",
"scope": "README",
"release": "patch"
},
{
"type": "refactor",
"release": "patch"
}
], ],
"parserOpts": { "parserOpts": {
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "MANUAL BUMP"] "noteKeywords": [
"BREAKING CHANGE",
"BREAKING CHANGES",
"MANUAL BUMP"
]
} }
} }
], ],