My personal shareable configurations with fully automated package publishing to the NPM
Registry.
- Automated publishing to the
NPM
Registry for changed packages - Automated
CHANGELOG.md
generation andGitHub
releases using conventional commits - Automated merging of
Dependabot
pull requests of dependency updates.
Install all configs and associated packages as development dependencies (excludes Webpack):
yarn add -D auto @waldronmatt/auto-config @waldronmatt/browserslist-config @commitlint/cli @waldronmatt/commitlint-config eslint @waldronmatt/eslint-config htmlhint @waldronmatt/htmlhint-config jest @waldronmatt/jest-config lint-staged @waldronmatt/lint-staged-config markdownlint @waldronmatt/markdownlint-config postcss @waldronmatt/postcss-config prettier @waldronmatt/prettier-config secretlint @waldronmatt/secretlint-config semantic-release @waldronmatt/semantic-release-config stylelint @waldronmatt/stylelint-config typescript @waldronmatt/tsconfig-config
Follow the directions found here.
Follow the directions found here.
Follow the Usage
section via the README.md
in each package.
Some packages have examples of extended configurations to better support other packages and/or constitute a complete working configuration for projects.
See eslint, jest, lint-staged, semantic-release, stylelint, and tsconfig.
npm set-script lint:md "markdownlint --fix **/*.md --ignore node_modules --ignore **/CHANGELOG.md" && npm set-script lint:js "eslint --fix **/*.{js,jsx,ts,tsx}" && npm set-script lint:css "stylelint --fix **/*.{css,scss}" && npm set-script lint:html "htmlhint --config ./node_modules/@waldronmatt/htmlhint-config/index.json **/*.html" && npm set-script lint:secrets "npx secretlint **/*" && npm set-script lint "yarn lint:md && yarn lint:js && yarn lint:css && yarn lint:html && yarn lint:secrets" && npm set-script test "jest"
Install husky and all hooks and npm scripts associated with configs:
npx husky add .husky/commit-msg 'npx --no-install commitlint --edit' && npx husky add .husky/pre-commit 'npx --no-install lint-staged'
For Webpack, follow the directions in the README.md.
- lerna-release-workflow - A basic Lerna monorepo with Yarn Workspaces, Conventional Commits and GitHub Actions.
- base-configs - A collection of base configs for code quality and linting tools.
- threepio - Shareable configurations that are used within the Galaxy.
- medly - Share common configurations across different projects.
- code-quality-tools - Shareable configurations for various coding-style/best practices/lint tools.
- frontend-configs - NPM-Published front-end shareable configurations.
MIT