diff --git a/.stylelintrc.js b/.stylelintrc.js index 7161ad7..2855751 100644 --- a/.stylelintrc.js +++ b/.stylelintrc.js @@ -13,6 +13,10 @@ module.exports = { }, ], rules: { + // Disable Stylelint's indentation control + '@stylistic/indentation': null, + // Let Prettier handle selector list formatting + '@stylistic/selector-list-comma-newline-after': null, 'color-named': null, 'max-nesting-depth': 2, 'no-descending-specificity': null, diff --git a/package-lock.json b/package-lock.json index d66ed4a..fe38e0a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -162,7 +162,9 @@ "license": "MIT" }, "../paranext-core/lib/papi-dts/node_modules/cross-spawn": { - "version": "7.0.3", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, "license": "MIT", "dependencies": { @@ -592,6 +594,7 @@ "clsx": "^2.1.0", "cmdk": "^1.0.0", "lucide-react": "^0.452.0", + "markdown-to-jsx": "^7.6.2", "next-themes": "^0.3.0", "platform-bible-utils": "file:../platform-bible-utils", "react-data-grid": ">=7.0.0-beta.42", @@ -622,6 +625,7 @@ "eslint-plugin-prettier": "^5.2.1", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", + "jsonpath-plus": "^10.0.7", "prettier": "^3.3.3", "prettier-plugin-jsdoc": "^1.3.0", "prettier-plugin-tailwindcss": "^0.6.1", @@ -647,7 +651,8 @@ "version": "0.0.1", "license": "MIT", "dependencies": { - "async-mutex": "^0.4.1" + "async-mutex": "^0.4.1", + "jsonpath-plus": "^10.0.7" }, "devDependencies": { "@types/jest": "^29.5.13", @@ -5409,7 +5414,9 @@ } }, "node_modules/cross-spawn": { - "version": "7.0.3", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, "license": "MIT", "dependencies": { @@ -18561,7 +18568,9 @@ } }, "cross-spawn": { - "version": "7.0.3", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, "requires": { "path-key": "^3.1.0", @@ -23016,7 +23025,9 @@ "dev": true }, "cross-spawn": { - "version": "7.0.3", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, "requires": { "path-key": "^3.1.0", @@ -23111,6 +23122,7 @@ "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.2.1", "jest": "^29.7.0", + "jsonpath-plus": "^10.0.7", "prettier": "^3.3.3", "prettier-plugin-jsdoc": "^1.3.0", "stringz": "^2.1.0", @@ -23426,7 +23438,9 @@ "eslint-plugin-prettier": "^5.2.1", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", + "jsonpath-plus": "^10.0.7", "lucide-react": "^0.452.0", + "markdown-to-jsx": "^7.6.2", "next-themes": "^0.3.0", "platform-bible-utils": "file:../platform-bible-utils", "prettier": "^3.3.3", @@ -23463,6 +23477,7 @@ "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.2.1", "jest": "^29.7.0", + "jsonpath-plus": "^10.0.7", "prettier": "^3.3.3", "prettier-plugin-jsdoc": "^1.3.0", "stringz": "^2.1.0", diff --git a/package.json b/package.json index 565ff73..633654a 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,8 @@ "watch": "npm run build -- --watch", "build:production": "cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=false webpack", "watch:production": "npm run build:production -- --watch", + "format": "prettier --write .", + "format:check": "prettier --check .", "zip": "zip-build dist release --template '%NAME%_%VERSION%.%EXT%' --override", "package": "npm run build:production && npm run zip", "package:debug": "cross-env DEBUG_PROD=true npm run package", @@ -23,7 +25,7 @@ "lint:scripts": "eslint --ext .cjs,.js,.jsx,.ts,.tsx --cache .", "lint:styles": "stylelint **/*.{css,scss}", "lint-fix": "npm run lint-fix:scripts && npm run lint:styles -- --fix", - "lint-fix:scripts": "prettier --write \"**/*.{ts,tsx,js,jsx,cjs}\" && npm run lint:scripts" + "lint-fix:scripts": "npm run format && npm run lint:scripts" }, "browserslist": [], "peerDependencies": {