eslint-config-tao
Shareable .eslintrc.js
configurations package for oat-sa
projects.
Concept
All extensions, projects and libraries (oat-sa
wide) should use the shared config as a basis.
Current extension contains a pack of shareable configs depending on the stack and target.
General idea is described here: https://eslint.org/docs/developer-guide/shareable-configs
Examples
Use shareable eslint configurations via the extends
config property.
-
Default configuration. Edit the
.eslintrc.js
of your project:module.exports = { extends: '@oat-sa/eslint-config-tao' };
-
Configuration for AMD modules:
module.exports = { extends: '@oat-sa/eslint-config-tao/amd' };
-
Configuration for es modules, svelte, etc.:
module.exports = { extends: '@oat-sa/eslint-config-tao/svelte' };
-
Configuration for node:
module.exports = { extends: '@oat-sa/eslint-config-tao/node' };
-
Configuration for cypress:
module.exports = { extends: '@oat-sa/eslint-config-tao/cypress' };
History
- 0.1.0 Initial release.
-
1.0.0 Added the support of the
node
config, include all plugins as dependencies, turn offimplicit-arrow-linebreak
-
1.1.0 Added the
cypress
profile
-
1.1.0 Added the
-
2.0.0 Updated
eslint-plugin-jsdoc
andeslint
to address vulnerabilities; updatedeslint-plugin-jest
to address compatibility issue