Skip to main content

changelog

10.7.5 (2024-10-28)

Bug Fixes

Features

10.8.0-alpha.1 (2024-10-22)

Features

  • support typescript linting and type checking (#474) (b68f69a)

10.7.4 (2024-09-18)

Bug Fixes

  • warn user for unfixable properties (2c4134c)

10.7.3 (2024-05-28)

Bug Fixes

  • run stylelint before prettier (f098adf)

10.7.2 (2024-05-27)

Bug Fixes

  • set basedir for plugin resolution (83e8d43)

10.7.1 (2024-05-22)

Bug Fixes

10.7.0 (2024-05-22)

Features

  • add styled-jsx syntax parsing to stylelint (#466) (7da0346)

10.6.0 (2024-05-15)

Features

10.5.2 (2024-05-06)

Bug Fixes

  • add missing dep for eslint-plugin-react-hooks (#465) (8eb105e)

10.5.1 (2022-12-20)

Bug Fixes

  • netlify: add installation paths for new workflows (437cda9)

10.5.0 (2022-12-19)

Features

  • netlify: add new netlify deploy workflows (7d6d0d4)

10.4.3 (2022-11-07)

Bug Fixes

10.4.2 (2022-10-12)

Bug Fixes

  • ignore skip release commits for commitlint (3d277df)

10.4.1 (2022-04-27)

Bug Fixes

  • move commit linting to separate workflow (cafd53c)

10.4.0 (2022-04-25)

Features

  • add project config for checking pr title (054ca54)

10.3.0 (2022-04-21)

Bug Fixes

  • deprecate semantic pr check (812896f)

Features

  • add workflow for checking pr title (b5255a1)

10.2.0 (2022-03-15)

Features

  • eslint: add react hooks plugin configuration (be0616e)

10.1.2 (2021-12-07)

Bug Fixes

10.1.1 (2021-11-04)

Bug Fixes

  • do not run tools without configs (7d62a7d)

10.1.0 (2021-10-29)

Bug Fixes

  • add: add project config for dhis2-artifacts workflow (469c542)
  • ls-lint: improve configuration template to fit most projects (bd7ced7)
  • ls-lint: improve ls-lint.yml so it works for normal and mono-repos (d31e854)

Features

  • renovate: add renovate configuration setup (89c9cc9)

10.0.0 (2021-09-20)

Bug Fixes

  • prettier: update configuration to latest (b40f6e7)

Features

  • eslint: enforce file extensions within the import path (8f38ad1)

BREAKING CHANGES

  • eslint: import statements must specify the extension and will now throw an error. The only exception is package imports.

9.3.1 (2021-09-29)

Bug Fixes

  • add: add project config for dhis2-artifacts workflow (469c542)

9.3.0 (2021-09-28)

Features

  • renovate: add renovate configuration setup (89c9cc9)

9.2.2 (2021-09-20)

Bug Fixes

  • ls-lint: improve configuration template to fit most projects (bd7ced7)
  • ls-lint: improve ls-lint.yml so it works for normal and mono-repos (d31e854)

9.2.1 (2021-09-20)

Bug Fixes

  • print summary error message (59618b7)

9.2.0 (2021-08-11)

Features

  • publish-metadata: add workflow to publish Metadata to S3 (5c77e88)

9.1.0 (2021-07-21)

Features

  • add 'curly' eslint rule to enforce braces around single-line blocks (6090466)

9.0.1 (2021-06-14)

Bug Fixes

  • paths: if no project root is found, use consuming root (c27bceb)

9.0.0 (2021-06-14)

chore

BREAKING CHANGES

  • New minimum version for NodeJS is 12.x.

8.4.1 (2021-06-08)

Bug Fixes

  • deps: release log levels updates from helpers-engine (2ebf5bd)

8.4.0 (2021-06-04)

Features

  • preview-pr: add workflow to preview PR on Netlify (f0b2aed)

8.3.0 (2021-05-21)

Features

  • tools: adds add/remove commands for tools (20d2150)

8.2.1 (2021-05-20)

Bug Fixes

  • dependabot: change defaults to 5 open prs (430c6fa)

8.2.0 (2021-05-10)

Features

  • support multiple patterns (054881c)

8.1.1 (2021-05-10)

Bug Fixes

  • cli-43: skip git ops when not a git repo (0617519)
  • cli-43: skip git ops when not a git repo (#398) (6488144)

8.1.0 (2021-05-07)

Features

8.0.1 (2021-05-06)

Bug Fixes

8.0.0 (2021-05-05)

Bug Fixes

Code Refactoring

Features

BREAKING CHANGES

  • The verb (check/apply) is now moved to the top-level. E.g. "d2-style js check" becomes "d2-style check js". This is to allow all checkers to run with a single command: "d2-style check"
  • "d2-style install" is no longer used to set up linters. As of husky@5 the tool is vastly simplified and much faster. Hooks can be installed manually with "d2-style install". Configuration is added to the project with the "d2-style add" command.
  • Husky has been removed from cli-style. You will need to remove hooks that reference husky.sh in .git/hooks.

8.0.0-alpha.10 (2021-04-22)

Bug Fixes

8.0.0-alpha.9 (2021-04-21)

Bug Fixes

8.0.0-alpha.8 (2021-04-08)

Features

  • lint file system for consistent names (#379) (2bfb5ef)

8.0.0-alpha.7 (2021-04-07)

Features

  • delete deprecated configuration files (c961647)

8.0.0-alpha.6 (2021-04-07)

Bug Fixes

  • match files from project root (b77ef35)

8.0.0-alpha.5 (2021-04-07)

Features

BREAKING CHANGES

  • The verb (check/apply) is now moved to the top-level. E.g. "d2-style js check" becomes "d2-style check js". This is to allow all checkers to run with a single command: "d2-style check"
  • "d2-style install" is no longer used to set up linters. As of husky@5 the tool is vastly simplified and much faster. Hooks can be installed manually with "d2-style install", but is also run as a "post-install" script that we control for consistency. Configuration is added to the project with the "d2-style add" command.

8.0.0-alpha.4 (2021-03-15)

Features

  • commit check can read from a custom file (366be0c)
  • show eslint warnings (#368) (abe4668)

8.0.0-alpha.2 (2020-12-16)

8.0.0-alpha.3 (2020-12-16)

8.0.0-alpha.2 (2020-12-16)

Features

8.0.0-alpha.1 (2020-12-16)

Code Refactoring

BREAKING CHANGES

  • Husky has been removed from cli-style. You will need to remove hooks that reference husky.sh in .git/hooks.

7.3.0 (2020-12-16)

Features

8.0.0-alpha.2 (2020-12-16)

Features

8.0.0-alpha.1 (2020-12-16)

Code Refactoring

BREAKING CHANGES

  • Husky has been removed from cli-style. You will need to remove hooks that reference husky.sh in .git/hooks.

7.2.3 (2020-12-16)

Bug Fixes

  • allow optional commit-msg file to lint (83b06db)
  • use prompt from cli-helpers-engine (9b7a12a)

7.2.2 (2020-11-06)

Bug Fixes

  • cut release to finalize jira migration (51bde26)

7.2.1 (2020-10-28)

Bug Fixes

  • resolve relative paths to staged files (db142b6)

7.2.0 (2020-10-14)

Bug Fixes

  • eslint-import: switch to recommended import settings (cb892d2)
  • declare import as a plugin (f771a87)
  • disabled missingExports by default (7bce47d)
  • execute the tools in the current dir (7e05f84)
  • remove ignoreExports from no-unused-modules (97f4f46), closes #248
  • resolve eslint plugins internally first (75cbad0)
  • run the command from inside node_modules (fd620c5)
  • use the nearest bin folder to exec cmds (761611f)

Features

  • eslint: add no-unused-modules rule (2b5db3f)

7.2.0-alpha.1 (2020-10-13)

Bug Fixes

  • eslint-import: switch to recommended import settings (cb892d2)
  • declare import as a plugin (f771a87)
  • disabled missingExports by default (7bce47d)
  • execute the tools in the current dir (7e05f84)
  • remove ignoreExports from no-unused-modules (97f4f46), closes #248
  • resolve eslint plugins internally first (75cbad0)
  • run the command from inside node_modules (fd620c5)
  • use the nearest bin folder to exec cmds (761611f)

Features

  • eslint: add no-unused-modules rule (2b5db3f)

7.1.0 (2020-10-13)

Features

  • install: prompt to choose project from list (99a3692)

7.0.0 (2020-04-02)

chore

  • update node engine to >= 10 (ccb267a)

BREAKING CHANGES

  • Require Node version 10 or above.

6.0.0 (2020-01-31)

Bug Fixes

  • semantic-release: trigger major version bump (6fbf5f3)

BREAKING CHANGES

  • semantic-release: Deprecate configuration switches. Refer to the "Overrides" section in the documentation for information how to use custom rules.

5.2.0 (2020-01-31)

Features

  • use eslint to run prettier (183d671)

5.1.1 (2020-01-31)

Bug Fixes

  • eslint: suppress warning logs (a81dd68)

5.1.0 (2019-12-16)

Features

  • ignorefiles: add consistency to the ignorefiles that are respected (fdba06e)

5.0.4 (2019-12-16)

Bug Fixes

  • eslint: do not add an unignore pattern to the cli command (7f0e5da)

5.0.3 (2019-12-02)

Bug Fixes

  • husky: load husky config before spreading (f593085)

5.0.2 (2019-11-25)

Bug Fixes

  • add es6 env to eslint config (c1d9092)

5.0.1 (2019-11-22)

Bug Fixes

  • update README (and trigger release) (b220402)

5.0.0 (2019-11-22)

Bug Fixes

  • add CHANGELOG.md to blacklist (4a59f25)
  • improve logging for common situations (0b435db)
  • order of type and count (bdf10a4)

Code Refactoring

  • rework internals and external api (4d1a4eb)

Features

  • allow eslint-react config to be bundled (ab63b9b)

BREAKING CHANGES

  • Removes LintStaged, renames setup to install, removes validate command. Uses a different way to match files and filters out results instead.

4.2.1 (2019-11-22)

Bug Fixes

4.2.0 (2019-10-10)

Features

  • semantic: enforce validation on commits and pr title (7f8e21d)

4.1.3 (2019-10-04)

Bug Fixes

  • eslint: print a warning when eslint falls back to the built-in (#143) (7afa944)

4.1.2 (2019-09-30)

Bug Fixes

  • dependabot: remove java/docker/submodules from default config (#133) (b6d93cf)

4.1.1 (2019-07-17)

Bug Fixes

4.1.0 (2019-07-15)

Features

4.0.0 (2019-07-14)

Features

  • introduce custom configurations and lint-staged for stashing unstaged changes (#72) (9f467ab)

BREAKING CHANGES

  • Changes multiple defaults for d2-style, removes the install command, adds extendable configs, only executes style checks on staged files by default, and more.
  • d2-style js apply no longer stages files by default, use --stage to stage fixed files. The intended usage for this function is primarily to apply the js code standards to files in general, e.g. unstaged/staged files or an entire repo.

  • d2-style validate has changed to by default run --fix, and uses lint-staged to only apply code standards to staged files and/or hunks.

  • d2-style validate --all no longer exists, validate only operates on staged files and is intended to be used as a pre-commit check. Use d2-style js check or apply with --all instead.

  • d2-style validate output has changed. It no longer gives detailed information during a run. It only prints errors when it fails.

  • d2-style js install has been removed, and the clean-up functions have also been removed.

  • d2-style setup no longer installs all by default, instead prints available groups when command is run.

  • It is now possible to stage hunks (git add -p) and only style check those hunks.

  • It is now possible to extend configuration for lint-staged, eslint, etc.

  • Husky hooks included out of the box with d2-style setup git/husky

3.3.4 (2019-06-14)

Bug Fixes

  • setup semantic configuration for prs (#73) (ef0738a)

3.3.3 (2019-06-13)

Bug Fixes

3.3.2 (2019-06-12)

Bug Fixes

3.3.1 (2019-06-07)

Bug Fixes

3.3.0 (2019-06-07)

Features

  • add validations for dhis2 package.json files (#47) (40febb5)

3.2.2 (2019-05-14)

Bug Fixes

  • ignore deleted files when formatting (#46) (4ebee0e)

3.2.1 (2019-05-14)

Bug Fixes

  • update @dhis2/cli-helpers-engine to the latest version 🚀 (#45) (dec2e34)

3.2.0 (2019-05-14)

Features

3.1.3 (2019-05-09)

Bug Fixes

  • unpin deps as problem is fixed upstream (#38) (aeff5b1)

3.1.2 (2019-05-09)

Bug Fixes

3.1.1 (2019-04-24)

Bug Fixes

  • use eslint linter instead of the cli engine (#34) (e9e9331)

3.1.0 (2019-04-24)

Features

  • add support for eslint for code style enforcement (#33) (85cf53a)

3.0.1 (2019-03-28)

Bug Fixes

  • link to build in readme and actually trigger a build (16fcfca)

3.0.0 (2019-03-25)

Bug Fixes

BREAKING CHANGES

  • Need to get away from the old versions on npm.

2.0.0 (2019-03-25)

Bug Fixes

  • add 'target' to blacklisted folders (#9) (d6170b9)
  • add apply/check command to js (3da7d5c)
  • change to debug msg (5be1ad2)
  • clean up js filter mechanism (#21) (ece8c53)
  • do not put a scary error message when checking files (#27) (4cecb27)
  • make the messages more meaningful (#25) (d2ae8af)
  • only the apply command was properly whitelisted (#19) (8a7556a)
  • only whitelist js under js subcommand (9dc010a)
  • reset prettier and browserslists (d1eab91)
  • resolve cli-style path by using dirname (3a61532)
  • update help text (f820a66)
  • update pre-hook (6988cf9)
  • use reporter from helpers-engine (ef79104)
  • use the new release script (#31) (2e2e454)
  • use two-param version for pkg to identify assets (284ce0b)

Features

  • add ability to pass in files to check and apply (2e7fcdd)
  • add editorconfig (#13) (8b0c392)
  • add option to not stage formatted files (00d5bc7)
  • allow check/apply commands for commit msgs (aca257f)
  • convert to @dhis2/cli format (d95179c)
  • set an exit code if js check fails (#18) (3833bea)
  • stop auto-install of prettier and other config files (#29) (8c030b1)

BREAKING CHANGES

  • removes the binaries for code-style.js and commit-style.js and instead exposes a binary named d2-style which is the subcommand which the d2 cli will use.

Change Log

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

2.2.2 (2019-03-07)

Bug Fixes

  • clean up js filter mechanism (#21) (ece8c53)
  • do not put a scary error message when checking files (#27) (4cecb27)
  • make the messages more meaningful (#25) (d2ae8af)

2.2.1 (2019-03-05)

Bug Fixes

  • change to debug msg (5be1ad2)
  • reset prettier and browserslists (d1eab91)

2.2.0 (2019-03-05)

Bug Fixes

  • only the apply command was properly whitelisted (#19) (8a7556a)

Features

  • set an exit code if js check fails (#18) (3833bea)

2.1.0 (2019-03-04)

Bug Fixes

  • only whitelist js under js subcommand (9dc010a)

Features

2.0.1 (2019-02-08)

2.0.0 (2019-02-08)

Bug Fixes

  • add apply/check command to js (3da7d5c)
  • resolve cli-style path by using dirname (3a61532)
  • update help text (f820a66)
  • update pre-hook (6988cf9)
  • use reporter from helpers-engine (ef79104)
  • use two-param version for pkg to identify assets (284ce0b)

Features

  • add ability to pass in files to check and apply (2e7fcdd)
  • add option to not stage formatted files (00d5bc7)
  • allow check/apply commands for commit msgs (aca257f)
  • convert to @dhis2/cli format (d95179c)

BREAKING CHANGES

  • removes the binaries for code-style.js and commit-style.js and instead exposes a binary named d2-style which is the subcommand which the d2 cli will use.

1.7.1 (2018-12-12)

Bug Fixes

  • add 'target' to blacklisted folders (#9) (d6170b9)

Change Log

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.