@smart-gate/eslint-config-smartgate
v1.0.7
Published
ESLint shareable config for the Smart Gate CO. projects style guide.
Downloads
443
Readme
eslint-config-smartgate
ESLint shareable config for the Smart Gate Co. style guide
[!WARNING] Note
- While creating a brand new project with this command
npm create vue@latest
make sure to say no for code quality option.- This package does not support latest eslint version (flat config object). we are still using
cjs
until vue eslint packages will be updated as well.- In order to avoid installation conflicts just delete the mentioned package in your
package.json
.
Installation
npm i -D @smart-gate/eslint-config-smartgate
Usage
add .eslint.cjs
then extend our configs (ESLint v8):
modules.exports = {
extends: ["@smart-gate/eslint-config-smartgate"],
};
Once you have installed @smart-gate/eslint-config-smartgate
and set up your eslint configuration file, you can start using eslint to format your code as follows:
- define this script in your
package.json
:
{
"scripts": {
"lint": "eslint . --ext .vue,.js,.cjs,.mjs,.ts,.cts,.mts --fix --ignore-path .gitignore"
}
}
- use the defined script:
npm run lint
License
This project is licensed under the MIT License. See the LICENSE file for details.