eslint-plugin v7.4.3
Changed
- chore: The README links to the playground, with a button next to the documentation one and a section after the installation. Its package list names the published packages without referring to the repository.
- chore: Upgrade
@boundaries/elementsto 3.3.3,@boundaries/configto 1.0.2 and@boundaries/policiesto 1.0.2.
elements v3.3.3
Changed
- chore: Upgrade
is-core-moduleto 2.18.0. The modules described ascoredo not change.
config v1.0.2
Changed
- chore: Upgrade
@boundaries/elementsto 3.3.3.
policies v1.0.2
Changed
- chore: Upgrade
@boundaries/elementsto 3.3.3 and@boundaries/configto 1.0.2.
website v7.4.1+rev.1
These changes are live at www.jsboundaries.dev and do not bump the version of the website, which stays 7.4.1: its documentation was updated in place. They will be listed under the next version of the website in its changelog.
Added
- feat(#539): A playground at
/playground/, linked from the navbar and the home: sketch a project and its boundaries config, and see how each file is classified and which imports are allowed, in the browser, evaluated in a background thread that never blocks the page. A link keeps the whole project, to share it or to open it from the docs, and a new Playground guide explains how to use it.
Changed
- chore(#634): The comment of the
--jsb-fainttoken says that it is meant for shapes, not for text. - chore(#640): The 404 page marks its content with a test id, and the pages plugin skips
*.playwright.tsand*.constants.tsfiles, so the helpers of the browser tests never become routes. - feat: The home shows the Robert C. Martin quote right below the hero and the playground right after "How it works", and its section labels are larger.
- feat: The footer links to the Acknowledgments page once.
- docs: The Overview and Classification pages say that the module layer has no descriptors, and link to the settings that decide when a module is external.
- docs: The Policies, Elements, Files, Modules, Selectors and Settings pages leave deprecated options and syntax to their Legacy pages and link to them. The Legacy pages now also cover the deprecated rules, the legacy selectors in policies and the
elementPathselector property. - docs: The text alternatives of the Selectors diagrams describe what the diagrams show.
Fixed
- docs: The policies of the Overview page now do what they say: with
checkAllOrigins, only controllers can importaxios. The sample ESLint message for the model importing a view is the one ESLint prints. - docs: The Complete Example of the Policies page sets
checkAllOrigins, without which the policy aboutreduxnever applied. - docs: The
boundaries/dependenciesrule page writes theboundaries/filespatterns from the root of itssrc/project, so that its Correct and Incorrect examples are what ESLint reports. - docs: The
boundaries/dependencies,boundaries/entry-pointandboundaries/externalrule pages document thepoliciesoption, withrulesas its deprecated alias, and their sample error messages are the ones ESLint prints with the configuration of each page. - docs: The rule pages name the Policies page in their links to its Message Templating section, and the
boundaries/no-privatepage says that its message is customized with itsmessageoption. - fix(#634): The dimension label of the home drawing has enough contrast to read in both themes.
- docs: The JavaScript tab of the last step of the Quick Start marks every added line of the
boundaries/dependenciesrule, and its copy button keeps their indentation. - docs: The
importKindandtargetexamples of the Legacy Policy Configuration page have valid syntax and consistent indentation, and their copy button no longer copies a stray.line.