This package uses ESLint to enforce Webtales company code style and provides a shared base configuration for our Javascript projects.
npm i -D eslint-config-webtales
Create a .eslintrc.js file in base of your project.
IMPORTANT You must install "ESLINT" extension on your IED!!
On projects that already have ESLINT configured you should delete all .eslintrc files and remove all depedencies from package.json about eslint and babel. After that you should create the .eslintrc.js file and install the projects dependencies again.
On Vue projects do not remove @vue/cli-plugin-babel dependency.
If not work pls restart your IDE.
module.exports = { extends: ['webtales/node-eslint'] };
module.exports = { extends: ['webtales/node-eslint', 'webtales/vue-eslint'] };
module.exports = { extends: ['webtales/node-eslint', 'webtales/vue3-eslint'] };
You can make sure this module lints with itself using npm lint
.