@archilogic/eslint-config
v2.0.1
Published
Archilogic's shared ESLint config
Downloads
559
Readme
eslint
Archilogic's shared ESLint config for JS/TS & Vue projects
Using this config
To use the shared ESLint config in your project, add this package and packages listed in peerDepenedcies in package.json as dev dependencies:
npm i -D @archilogic/eslint-config
Then, create a .eslintrc.js
file in the main directory and for JS/TS projects add the following content:
module.exports = {
extends: '@archilogic'
}
For Vue projects add:
module.exports = {
extends: '@archilogic/eslint-config/vue'
}
Adding a lint script
To lint all your files, run npx eslint --ext .ts,.js,.vue --ignore-path .gitignore --fix src
.
Or add a script to package.json
"scripts": {
"lint": "npx eslint --ext .ts,.js,.vue --ignore-path .gitignore --fix src"
}
Overriding Settings
You can override settings from the shareable config by adding them directly into your .eslintrc.js
file.