Shareable .eslintrc.js
configurations package for oat-sa
projects.
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
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", };
See changelog here