@archilogic/eslint-config

2.0.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i @archilogic/eslint-config

Weekly Downloads

379

Version

2.0.0

License

none

Unpacked Size

3.76 kB

Total Files

8

Last publish

Collaborators

  • mredele
  • stavrosatarchilogic
  • archilogic-ci
  • frederic-schwarz
  • bendevine