Skip to content

v1.0.0

Compare
Choose a tag to compare
@thibaudcolas thibaudcolas released this 10 Nov 15:57
· 201 commits to main since this release

1.0.0 (2020-11-10)

Features

  • Update stylelint to v13 (#9)
  • Update all config dependencies to their latest releases, compatible with stylelint v13 (#9)
  • Enforce value-keyword-case from stylelint v13 (#9)
  • Rename all deprecated stylelint rules to their newer alternatives.
  • The config’s README documentation now links directly to rules’ documentation for plugins.

Upgrading to v1.0.0

Here are recommended steps:

# 1. Install the new versions.
npm install --save-dev stylelint@13 stylelint-config-torchbox@^1.0.0
# 2. Attempt to auto-fix any new issue picked up by Stylelint.
npm run lint:css -- --fix
npm run format
# 3. Check if there are remaining issues
npm run lint:css

If there are remaining issues, consider a gradual approach: whether you want to update the code, or disable the corresponding rules. This can be done either in the Stylelint configuration, or via stylelint-disable configuration comments. Get the rules reporting issues with: npm run lint:js -- --formatter tap | grep ruleId | cut -d ':' -f 2 | cut -c 2- | sort | uniq. For projects strapped for time, disabling all new rules listed above may be a reasonable tradeoff.