diff --git a/.secretlintignore b/.secretlintignore new file mode 100644 index 00000000..c9113dbb --- /dev/null +++ b/.secretlintignore @@ -0,0 +1,3 @@ +.pnpm-store +packages/**/node_modules +packages/**/.turbo diff --git a/lint-staged.config.js b/lint-staged.config.js index 8467ba8b..f209aad4 100644 --- a/lint-staged.config.js +++ b/lint-staged.config.js @@ -17,6 +17,7 @@ const rules = { '**/*.{json,md,mdx,css,html,yml,yaml,scss,ts,js,tsx,jsx,mjs}': filenames => { return [`prettier --write ${concatFilesForPrettier(filenames)}`] }, + '**/*': [`secretlint`], } module.exports = rules diff --git a/packages/htmlhint-config/package.json b/packages/htmlhint-config/package.json index 7527f493..abf140b1 100644 --- a/packages/htmlhint-config/package.json +++ b/packages/htmlhint-config/package.json @@ -22,10 +22,14 @@ "email": "lotyp7@gmail.com", "url": "https://github.com/lotyp" }, + "main": "index.json", + "files": [ + "index.json" + ], "scripts": { "clean": "rimraf ./dist ./coverage ./tsconfig.tsbuildinfo", - "lint": "eslint --ext .ts,.js,.cjs,.mjs --cache --cache-location ../../.cache/eslint/htmlhint-config.eslintcache", - "lint:fix": "eslint --ext .ts,.tsx,.js,.jsx,.mjs,.cjs,.mts,.cts --fix --cache --cache-location ../../.cache/eslint/htmlhint-config.eslintcache" + "lint": "eslint --ext .json --cache --cache-location ../../.cache/eslint/htmlhint-config.eslintcache", + "lint:fix": "eslint --ext .json --fix --cache --cache-location ../../.cache/eslint/htmlhint-config.eslintcache" }, "devDependencies": { "rimraf": "^4.1.2" diff --git a/packages/secretlint-config/package.json b/packages/secretlint-config/package.json index 327013d7..5abb55bd 100644 --- a/packages/secretlint-config/package.json +++ b/packages/secretlint-config/package.json @@ -17,18 +17,27 @@ "directory": "packages/secretlint-config" }, "license": "MIT", - "author": "lotyp7@gmail.com", + "author": { + "name": "Andrij Orlenko", + "email": "lotyp7@gmail.com", + "url": "https://github.com/lotyp" + }, "main": "index.json", "files": [ "index.json", "scripts/*" ], "scripts": { - "test": "echo \"No test specified\"" + "clean": "rimraf ./dist ./coverage ./tsconfig.tsbuildinfo", + "lint": "eslint --ext .js,.json --cache --cache-location ../../.cache/eslint/secretlint-config.eslintcache", + "lint:fix": "eslint --ext .js,.json --fix --cache --cache-location ../../.cache/eslint/secretlint-config.eslintcache" }, "dependencies": { "@secretlint/secretlint-rule-preset-recommend": "^6.2.0" }, + "devDependencies": { + "rimraf": "^4.1.2" + }, "peerDependencies": { "secretlint": ">= 6" },