diff --git a/lint-staged.config.js b/lint-staged.config.js new file mode 100644 index 0000000..cfaf1a0 --- /dev/null +++ b/lint-staged.config.js @@ -0,0 +1,8 @@ +module.exports = { + '*': [ + 'npx prettier --check', + 'npx editorconfig-checker -config .editorconfig-checker.json', + ], + '*.js': 'npx eslint', + '*.md': 'npx markdownlint', +}; diff --git a/package.json b/package.json index 682bcbe..c3b1a2a 100644 --- a/package.json +++ b/package.json @@ -76,18 +76,5 @@ "axios": "^1.7.4", "cheerio": "^1.0.0", "mime-types": "^2.1.35" - }, - "lint-staged": { - "*": [ - "npx prettier --check", - "npx editorconfig-checker -config .editorconfig-checker.json" - ], - "*.js": "npx eslint", - "*.md": "npx markdownlint", - "{src,tests}/**": [ - "npm run test-tests", - "npm run test-classes", - "npm run test-utils" - ] } }