mirror of
https://github.com/scratchfoundation/eslint-config-scratch.git
synced 2025-08-28 22:40:13 -04:00
Shareable ESLint config for Scratch
Adjustments to the rules made while linting scratch-vm TODO-style comments now warn. Trailing commas are explicitly not allowed (previously assumed this rule was in effect with eslint/recommended). |
||
---|---|---|
.gitignore | ||
.travis.yml | ||
es6.js | ||
index.js | ||
node.js | ||
package.json | ||
react.js | ||
README.md |
Scratch ESLint config
eslint-config-scratch defines the eslint rules used for Scratch Javascript projects
Committing
This project uses semantic release to ensure version bumps follow semver so that projects using the config don't break unexpectedly.
In order to automatically determine the type of version bump necessary, semantic release expects commit messages to be formatted following conventional-changelog.
Use the commitizen CLI to make commits formatted in this way:
npm install -g commitizen
npm install
Now you're ready to make commits using git cz
.
Breaking changes
If you're committing a change that makes the linter more strict, or will otherwise require changes to existing code, ensure your commit specifies a breaking change. This will cause a major version bump so downstream projects must choose to upgrade the config and will not break the build unexpectedly.