- In
package.json
useexports
field to determine entry points instead of themain
field. New entry points will be used by consumer apps to import the new flat configs. - Updated dependencies to the last version. To avoid version conflicts with other dependencies it's best if consumer projects upgrade eslint to version 8.57.0. This was already required in v3.0.0 of this package. A note about this was added to the README.
- BREAKING:
@oat-sa/eslint-config-tao/svelte
config has been renamed to@oat-sa/eslint-config-tao/svelte-base-legacy
. The jest rules were extracted to the@oat-sa/eslint-config-tao/svelte-jest-legacy
config. This will allow to use thesvelte-base-legacy
config with Vitest rules in the newsvelte-vitest-legacy
config. See the README for more info. - Added frontend flat configs under
@oat-sa/eslint-config-tao/flat/svelte
. As a side effect of this change, cosumer apps that useflat/svelte-base
with thevitest
config won't need to install any jest or babel packages. Consumers with eslint 9 can now use this package. - Switching
eslint-plugin-jsdoc
settings.jsdoc.mode
to the defaulttypescript
value so it helps detect jsdoc type issues - Some rules have been removed from the
frontend-rules.mjs
list since they were duplicates (already added in the recommended rules of some plugin). Theno-undefined
rule was replaced byno-global-assign
andno-shadow-restricted-names
that allow us to useundefined
.
- Customized
jest/expect-expect
recommended rule so it doesn't require an expect assertion if Supertest is already using theexpect
function. Example of supertest code: https://github.com/oat-sa/tao-control-center/blob/develop/backend/test/app.spec.js#L28
- Updated
eslint-plugin-cypress
to v3.5.0. This version is compatible with flat configs - Added
'cypress/globals'
to the globals - Added
ecmaVersion: 'latest'
so consumer apps don't need to add it themselves
- Added
plugin:jest/recommended
to the node and svelte configs so the jest plugin is well configured.
- You should update to at least eslint 8.57.0 to use this version since the updated configs now use the
es2024
environment. - Updated
eslint-plugin-jsdoc
8 major versions. Note that in version 44.0settings.jsdoc.mode
default value becametypescript
. So opted into the old default (jsdoc
) to prevent changes in behavior. See note here. @babel/eslint-parser
was updated to a compatible versioneslint-plugin-jest
was updated to a compatible version.eslint-plugin-cypress
was updated to a compatible version. Did not update to v3.0.0 since it was released 3 days ago and it might have rough edges. Should be updated in next versions.- Replaced
eslint-plugin-svelte3
witheslint-plugin-svelte
. This includes thesvelte-eslint-parser
package too. This new version is compatible with svelte 3, 4 and 5 - Removed
parserOptions.ecmaVersion
since it gets already set by env.es2024. See docs here.
- Updated
eslint-plugin-jsdoc
andeslint
to address vulnerabilities; updatedeslint-plugin-jest
to address compatibility issue
- Added the
cypress
config
- Added the support of the
node
config, include all plugins as dependencies, turn offimplicit-arrow-linebreak