Socket
Book a DemoInstallSign in
Socket

@archilogic/eslint-config

Package Overview
Dependencies
Maintainers
5
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@archilogic/eslint-config

Archilogic's shared ESLint config

latest
Source
npmnpm
Version
2.0.1
Version published
Maintainers
5
Created
Source

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.

Keywords

eslint

FAQs

Package last updated on 17 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts