2.0.0 • Published 9 months ago

@archilogic/eslint-config v2.0.0

Weekly downloads
-
License
-
Repository
github
Last release
9 months ago

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.

2.0.0

9 months ago

1.1.0

1 year ago

1.0.0

1 year ago