@tpzdsp/eslint-config-dsp
Version:
re-usable config for ESLint, Prettier and semantic-release
372 lines (190 loc) • 18.3 kB
Markdown
# [5.0.0](https://github.com/agrimetrics/eslint-config-dsp/compare/v4.0.3...v5.0.0) (2026-06-30)
### Features
* tailwind config overhaul ([28746ae](https://github.com/agrimetrics/eslint-config-dsp/commit/28746ae8e58bbdbb79e19e278f51576bff941ae0)), closes [hi#contrast](https://github.com/hi/issues/contrast)
### BREAKING CHANGES
* In this commit I have overhauled much of the tailwind style config. Below I have
listed what I've changed and why:
- Tailwind V4: We have migrated from v3 to v4 which comes with a much simpler
config file, and a lot more utilities, improvements, and so on.
- Colours: The biggest change to colours is that I have removed all of the
different shades of the GDS colours we had before. This was for two reasons,
firstly because it led to inconsistent styling and we hardly colours that arent
the brand colour, let alone 10s of different shades of them. Secondly, the way
I generated the shades meant the different between each shade of each colour
was not consistent which just looked odd (for example, blue-500 -> blue-400
was not the same lightness difference as green-500 -> green-400).
- Themes: Following on from colours, I also changed the tailwind colour config
to reference CSS variables instead of hex codes so that we can define the
colours in CSS allowing for multiple themes (like different brands, or allowing
## [4.0.3](https://github.com/agrimetrics/eslint-config-dsp/compare/v4.0.2...v4.0.3) (2026-06-28)
### Bug Fixes
* **devops:** rename references to repo ([4a4f18c](https://github.com/agrimetrics/eslint-config-dsp/commit/4a4f18c5d594f2d6c1dd203ffc7ca66b01dc0723))
* **devops:** update release token used ([06737ba](https://github.com/agrimetrics/eslint-config-dsp/commit/06737bac4f30c49a9bf891a722a8d81a68f0bca5))
## [4.0.2](https://github.com/DSP3-apps/eslint-config-dsp/compare/v4.0.1...v4.0.2) (2026-05-13)
### Bug Fixes
* **project:** make tailwind optional peer dependency ([2797a20](https://github.com/DSP3-apps/eslint-config-dsp/commit/2797a20c24815aedbfd27523a22ed6b9ae0e96ff))
## [4.0.1](https://github.com/DSP3-apps/eslint-config-dsp/compare/v4.0.0...v4.0.1) (2026-04-13)
### Bug Fixes
* **eslint:** correct import ordering ([cb22d48](https://github.com/DSP3-apps/eslint-config-dsp/commit/cb22d486d14da9d118c080248e8e5707c2169e4e))
* **project:** update engines spec ([c9bf91b](https://github.com/DSP3-apps/eslint-config-dsp/commit/c9bf91b4e3bd7a8f56222597861715d122489c07))
# [4.0.0](https://github.com/DSP3-apps/eslint-config-dsp/compare/v3.0.0...v4.0.0) (2026-04-10)
### Features
* **project:** switch to pnpm ([18c53a3](https://github.com/DSP3-apps/eslint-config-dsp/commit/18c53a3367add7e43cb9280dddd02c07d03903bd))
### BREAKING CHANGES
* **project:** We have decided to switch to pnpm as `yarn` was causing errors
with new versions of vite/vitest while we were upgrading dependencies, as per:
https://github.com/vitest-dev/vitest/issues/9859
The other options were to pin vite & vitest, but we'd never be able to upgrade
them unless we updated yarn (which was the other option) or switched away from
yarn. We didn't want to update yarn as the new versions are completely different
and entirely separate projects, so switching to pnpm was the easiest option.
# [3.0.0](https://github.com/DSP3-apps/eslint-config-dsp/compare/v2.0.0...v3.0.0) (2026-04-09)
### Bug Fixes
* **project:** add semantic-release to dev dependencies ([78fce9f](https://github.com/DSP3-apps/eslint-config-dsp/commit/78fce9fc2b927f7f20b5a782ab8e86f8acafa4fc))
### Features
* **project:** upgrade dependencies ([4fddf29](https://github.com/DSP3-apps/eslint-config-dsp/commit/4fddf2941e00449d805c7b19cc3c06d1bc2037c0))
### BREAKING CHANGES
* **project:** I have upgraded dependencies in the app where applicable, including major versions
like typescript. The only one not yet done fully is eslint, which has a 10.x
release. This is because the community plugins are currently behind and many don't
support that yet.
# [2.0.0](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.9.2...v2.0.0) (2026-02-28)
### Features
* replace eslint-plugin-import with eslint-plugin-import-x for ESLint v9 compatibility ([ae60cb1](https://github.com/DSP3-apps/eslint-config-dsp/commit/ae60cb150d6d5f81244b402fc6d6830ddc34f7b1))
### BREAKING CHANGES
* eslint-plugin-import has been replaced by eslint-plugin-import-x
in both peerDependencies and devDependencies. Consumers must uninstall
eslint-plugin-import and install eslint-plugin-import-x instead.
## [1.9.2](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.9.1...v1.9.2) (2026-01-22)
### Bug Fixes
* **devops:** Update github workflow to use NodeJS 24.x ([33ee277](https://github.com/DSP3-apps/eslint-config-dsp/commit/33ee27779aef698e70a646536278d87be368789a))
* **project:** Fix issue with react hooks eslint config ([4562f11](https://github.com/DSP3-apps/eslint-config-dsp/commit/4562f115523e957dbdeb2a255c89babc9d4a1f2e))
* **project:** Update package used by the library ([bc9766c](https://github.com/DSP3-apps/eslint-config-dsp/commit/bc9766c1e4c591acea7819ff40941dbdd357a15d))
* **project:** Upgrade project to use latest NodeJS LTS ([5220889](https://github.com/DSP3-apps/eslint-config-dsp/commit/5220889c7a519d7fe8569d99b2573e60531f9cf5))
## [1.9.1](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.9.0...v1.9.1) (2026-01-20)
### Bug Fixes
* **tailwind:** fix typography plugin ([cdb83e7](https://github.com/DSP3-apps/eslint-config-dsp/commit/cdb83e756238487ccac1ac723b4af2fc77a82cb5))
# [1.9.0](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.8.4...v1.9.0) (2025-07-21)
### Bug Fixes
* **eslint:** Add rule to add newline padding between code sections ([a0cc01c](https://github.com/DSP3-apps/eslint-config-dsp/commit/a0cc01c0da176170acfcbb77987833496a4d05fa))
* **eslint:** Add useful eslint rules ([578f5b3](https://github.com/DSP3-apps/eslint-config-dsp/commit/578f5b3d9b1d35af46f89725b223a473fd56bc87)), closes [#DCI-256](https://github.com/DSP3-apps/eslint-config-dsp/issues/DCI-256)
* **eslint:** Fix the curly braces rule ([c3cda0a](https://github.com/DSP3-apps/eslint-config-dsp/commit/c3cda0a035f28d799b3118217633eb0e21255a82))
* **eslint:** Re-order imports ([1dd0cf5](https://github.com/DSP3-apps/eslint-config-dsp/commit/1dd0cf57eb59c30e7495ed868a6a847ceac0df2c))
* **eslint:** Rename section as it isn't just recommended settings ([5631180](https://github.com/DSP3-apps/eslint-config-dsp/commit/56311802cc278761d0d370b08617e8dc7bf7a770))
* **eslint:** Update imports due to linting complaints ([8526408](https://github.com/DSP3-apps/eslint-config-dsp/commit/852640817f3c6eb6fbfbe2df3c815ae3ddba3772))
### Features
* **eslint:** Add custom rules to add more padding between code ([2660551](https://github.com/DSP3-apps/eslint-config-dsp/commit/2660551dbe35845fdd842bcc1033fbe0a73d2f93))
* **eslint:** Add SonarJS eslint plugin ([867cd30](https://github.com/DSP3-apps/eslint-config-dsp/commit/867cd303b40030f1b2166d183f53a32dc61ab8b9))
* **project:** Add postinstall setup ([76a24c1](https://github.com/DSP3-apps/eslint-config-dsp/commit/76a24c12550a3367db378413b080a039887b7895))
## [1.8.4](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.8.3...v1.8.4) (2025-07-02)
### Bug Fixes
* **eslint:** Fix import resolver alias ([693f71b](https://github.com/DSP3-apps/eslint-config-dsp/commit/693f71bf456c7292afad591e0bb0da40a24fb966))
## [1.8.3](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.8.2...v1.8.3) (2025-06-19)
### Bug Fixes
* **eslint:** Add react hooks plugin ([b6d6d16](https://github.com/DSP3-apps/eslint-config-dsp/commit/b6d6d168dbc517d7e86887dcf2a211db64eaba66))
* **eslint:** Improve import sorting order ([b397f84](https://github.com/DSP3-apps/eslint-config-dsp/commit/b397f84d2818d2372c27434f781852a6a5188996))
* **eslint:** Prevent `React` import statement ([924882a](https://github.com/DSP3-apps/eslint-config-dsp/commit/924882ac864ae401d4a4faf2f78bdeeb6ead06af))
## [1.8.2](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.8.1...v1.8.2) (2025-06-05)
### Bug Fixes
* **eslint:** Disable lints conflicting with prettier ([2924553](https://github.com/DSP3-apps/eslint-config-dsp/commit/29245535424150abebe2ff430b0c362ff2b346e5))
## [1.8.1](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.8.0...v1.8.1) (2025-04-22)
### Bug Fixes
* **tailwind:** Export `COLORS` object for other apps ([06c5755](https://github.com/DSP3-apps/eslint-config-dsp/commit/06c5755d9453a8b412a6669379e5fc2a5cf1a3aa))
# [1.8.0](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.7.0...v1.8.0) (2025-04-22)
### Features
* **tailwind:** Add GovUK blue color to tailwind config ([ab9fccf](https://github.com/DSP3-apps/eslint-config-dsp/commit/ab9fccf7598e1a4136ea50da111c42502a78312c))
# [1.7.0](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.6.3...v1.7.0) (2025-04-09)
### Features
* **lints:** Disallow most cases of local file imports ([ea642af](https://github.com/DSP3-apps/eslint-config-dsp/commit/ea642af39f8083fcdb73282241e32a3d8ed71395))
## [1.6.3](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.6.2...v1.6.3) (2025-04-03)
### Bug Fixes
* **lints:** Allow any casing in type properties ([7321c1f](https://github.com/DSP3-apps/eslint-config-dsp/commit/7321c1f28e1dda51a0791bc3919ef32e0d937002))
## [1.6.2](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.6.1...v1.6.2) (2025-04-02)
### Bug Fixes
* **lints:** Allow any casing in object literal properties ([53c813d](https://github.com/DSP3-apps/eslint-config-dsp/commit/53c813ded07eaf9556919ec78359375b9c03fe91))
## [1.6.1](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.6.0...v1.6.1) (2025-03-31)
### Bug Fixes
* **lints:** Allow PascalCase in object methods ([d831676](https://github.com/DSP3-apps/eslint-config-dsp/commit/d831676818df73956d0c0fe22d1959e30a7fbfa6))
# [1.6.0](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.5.0...v1.6.0) (2025-03-31)
### Features
* **eslint:** Add more lint rules ([267afaf](https://github.com/DSP3-apps/eslint-config-dsp/commit/267afafd5539aa97a78681a2a284ece6955851e6))
# [1.5.0](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.4.0...v1.5.0) (2025-03-05)
### Features
* **rules:** Add `curly` rule and fix test rules ([57597aa](https://github.com/DSP3-apps/eslint-config-dsp/commit/57597aac7d798b6e92315eaa053ae788c5d5a605))
# [1.4.0](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.3.0...v1.4.0) (2025-03-04)
### Features
* **deps:** Update outdated dependencies ([e843566](https://github.com/DSP3-apps/eslint-config-dsp/commit/e843566d52f6d64ccdce15fca805798f04ec116d))
# [1.3.0](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.2.4...v1.3.0) (2025-02-28)
### Features
* **tailwind:** Update tailwind config to use more GDS styles ([a2afa3b](https://github.com/DSP3-apps/eslint-config-dsp/commit/a2afa3b078d23c28cd92eab5c1a339f91674dd34))
## [1.2.4](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.2.3...v1.2.4) (2025-02-21)
### Bug Fixes
* **linting:** Add ability to inspect ESlint setup ([5420d39](https://github.com/DSP3-apps/eslint-config-dsp/commit/5420d39edaf12ed39b08bd4785ca011b64c6c711))
* **project:** Fix package script to use correct command ([1dee3a4](https://github.com/DSP3-apps/eslint-config-dsp/commit/1dee3a4f6e8c56b72078e8cf13034fa31bff0d85))
## [1.2.3](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.2.2...v1.2.3) (2025-02-10)
### Bug Fixes
* **linting:** Fix NextJS linting ([18592b8](https://github.com/DSP3-apps/eslint-config-dsp/commit/18592b897b2817e15ae4571a7de038448f9163b7))
## [1.2.2](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.2.1...v1.2.2) (2025-02-10)
### Bug Fixes
* **eslint:** Fix NextJS recommended settings ([d7c6610](https://github.com/DSP3-apps/eslint-config-dsp/commit/d7c6610396a9c2bac30be6c433569f72fbd07e7d))
## [1.2.1](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.2.0...v1.2.1) (2025-02-10)
### Bug Fixes
* **eslint:** Fix NextJS plugins config ([cf891a4](https://github.com/DSP3-apps/eslint-config-dsp/commit/cf891a4fc14f63dc468cf943891b3b5e1a1b4058))
# [1.2.0](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.1.0...v1.2.0) (2025-02-09)
### Bug Fixes
* **docs:** Add section of developing this library ([aef71bf](https://github.com/DSP3-apps/eslint-config-dsp/commit/aef71bfa791a3978ca39d286094b76d8f30edc8d))
* **elsint:** Order imports correctly ([f1399ac](https://github.com/DSP3-apps/eslint-config-dsp/commit/f1399ac6dd89c7f4d2ebc155ee8dd3bc948daf5f))
### Features
* **tailwind:** Add tailwind config ([742748c](https://github.com/DSP3-apps/eslint-config-dsp/commit/742748c9ae0b08751959672bc386c2308dd875a6))
# [1.1.0](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.0.3...v1.1.0) (2025-02-08)
### Bug Fixes
* **project:** Add a unique name to each section ([d19d2ea](https://github.com/DSP3-apps/eslint-config-dsp/commit/d19d2ea2614c1713bd57e0ad0fc5244fc24370d1))
* **project:** Fix format of plugins ([e345b48](https://github.com/DSP3-apps/eslint-config-dsp/commit/e345b483325883805ea75d193e577dd501ad7fbf))
### Features
* **project:** Fix ESLint config ([9daf0cc](https://github.com/DSP3-apps/eslint-config-dsp/commit/9daf0ccd41493a827126b97ea3089122a344620b))
## [1.0.3](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.0.2...v1.0.3) (2025-02-08)
### Bug Fixes
* **project:** Fix excludedFiles which doesn't exist ([03972e7](https://github.com/DSP3-apps/eslint-config-dsp/commit/03972e716d0afabd686d6b75473d11a155dec4dc))
## [1.0.2](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.0.1...v1.0.2) (2025-02-08)
### Bug Fixes
* **project:** Bump the app version ([0edf6ca](https://github.com/DSP3-apps/eslint-config-dsp/commit/0edf6ca3782c6d744be318c4e64e2c1ad8c094ee))
## [1.0.1](https://github.com/DSP3-apps/eslint-config-dsp/compare/v1.0.0...v1.0.1) (2025-02-08)
### Bug Fixes
* **eslint:** Update NextJS config ([ca4f697](https://github.com/DSP3-apps/eslint-config-dsp/commit/ca4f69708969e814394239ce9dbf0b906a8922de))
# 1.0.0 (2025-02-08)
### Bug Fixes
* **devops:** Fix automated release management ([64ee6db](https://github.com/DSP3-apps/eslint-config-dsp/commit/64ee6db453c869906be6dd3dcf6bc4813610d605))
* **project:** Correct org part of name attribute ([7248795](https://github.com/DSP3-apps/eslint-config-dsp/commit/7248795894a1bd8743ab2d474dbb60438ee4941a))
* **project:** Update package version ([3bf6020](https://github.com/DSP3-apps/eslint-config-dsp/commit/3bf60206d7cbae661a337a9fc1f4ec1637ff30be))
### Features
* **devops:** Add github workflows to release and publish the library ([3e556ab](https://github.com/DSP3-apps/eslint-config-dsp/commit/3e556abe31f6a23dcd1cd5b188b8fb927fa1f04e))
* **docs:** Add some documentation for the library ([4859ef7](https://github.com/DSP3-apps/eslint-config-dsp/commit/4859ef7fa5d7caa3f9d9ed2fdca596cf7bf4bc9b))
* **project:** Add Eslint configs ([1421174](https://github.com/DSP3-apps/eslint-config-dsp/commit/1421174f9c1f6d821e2b2f292ae93914880ec7fe))
* **project:** Add project settings ([d95993f](https://github.com/DSP3-apps/eslint-config-dsp/commit/d95993f146e9e1633db559bcefdd141cc105d379))
* **project:** Rewrite library to include eslint and semantic-release configs ([71e4439](https://github.com/DSP3-apps/eslint-config-dsp/commit/71e44393492813090aaa0e08cf92e8cc811db6ae))
* **project:** Update references to forked repo ([490a860](https://github.com/DSP3-apps/eslint-config-dsp/commit/490a8609e6e1f6821f364b44600e8235fe3aace8))
* **project:** Update to Eslint v9 flat file config ([5c63c70](https://github.com/DSP3-apps/eslint-config-dsp/commit/5c63c7002ba6fca346454e4ceb944811d0136341))
## [1.0.1](https://github.com/tpzdsp3/eslint-config-dsp/compare/v1.0.0...v1.0.1) (2024-07-03)
### Bug Fixes
* **project:** Correct org part of name attribute ([7248795](https://github.com/tpzdsp3/eslint-config-dsp/commit/7248795894a1bd8743ab2d474dbb60438ee4941a))
# 1.0.0 (2024-07-03)
### Bug Fixes
* **devops:** Fix automated release management ([64ee6db](https://github.com/tpzdsp3/eslint-config-dsp/commit/64ee6db453c869906be6dd3dcf6bc4813610d605))
* **project:** Update package version ([3bf6020](https://github.com/tpzdsp3/eslint-config-dsp/commit/3bf60206d7cbae661a337a9fc1f4ec1637ff30be))
### Features
* **devops:** Add github workflows to release and publish the library ([3e556ab](https://github.com/tpzdsp3/eslint-config-dsp/commit/3e556abe31f6a23dcd1cd5b188b8fb927fa1f04e))
* **docs:** Add some documentation for the library ([4859ef7](https://github.com/tpzdsp3/eslint-config-dsp/commit/4859ef7fa5d7caa3f9d9ed2fdca596cf7bf4bc9b))
* **project:** Add Eslint configs ([1421174](https://github.com/tpzdsp3/eslint-config-dsp/commit/1421174f9c1f6d821e2b2f292ae93914880ec7fe))
* **project:** Add project settings ([d95993f](https://github.com/tpzdsp3/eslint-config-dsp/commit/d95993f146e9e1633db559bcefdd141cc105d379))
* **project:** Update references to forked repo ([490a860](https://github.com/tpzdsp3/eslint-config-dsp/commit/490a8609e6e1f6821f364b44600e8235fe3aace8))
## [1.0.1](https://github.com/marksmall/eslint-config-marksmall/compare/v1.0.0...v1.0.1) (2024-05-06)
### Bug Fixes
* **project:** Update package version ([3bf6020](https://github.com/marksmall/eslint-config-marksmall/commit/3bf60206d7cbae661a337a9fc1f4ec1637ff30be))
# 1.0.0 (2024-05-06)
### Bug Fixes
* **devops:** Fix automated release management ([64ee6db](https://github.com/marksmall/eslint-config-marksmall/commit/64ee6db453c869906be6dd3dcf6bc4813610d605))
### Features
* **devops:** Add github workflows to release and publish the library ([3e556ab](https://github.com/marksmall/eslint-config-marksmall/commit/3e556abe31f6a23dcd1cd5b188b8fb927fa1f04e))
* **docs:** Add some documentation for the library ([4859ef7](https://github.com/marksmall/eslint-config-marksmall/commit/4859ef7fa5d7caa3f9d9ed2fdca596cf7bf4bc9b))
* **project:** Add Eslint configs ([1421174](https://github.com/marksmall/eslint-config-marksmall/commit/1421174f9c1f6d821e2b2f292ae93914880ec7fe))
* **project:** Add project settings ([d95993f](https://github.com/marksmall/eslint-config-marksmall/commit/d95993f146e9e1633db559bcefdd141cc105d379))