Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@icij/eslint-config-icij

Package Overview
Dependencies
Maintainers
5
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@icij/eslint-config-icij

ESLint and Prettier config for ICIJ projects

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

This is a configuration for linting and formatting all ICIJ Vue.js projects uniformly. A typescript configuration should ba added later.

How to use

1. Clean up your project (optional)

If the project already has an eslint/prettier configuration, delete all ESlint and Prettier related files and packages.

2. Install the package

To install the config, run:

yarn add -D eslint-config-icij

In the projects package.json file, add:

"eslintConfig": {
  "extends": ["icij"]
}

Alternatively, you can add in an .eslintrc file:

{
  "extends": ["icij"]
}

3. Run the package

You can add scripts in the projects package.json to lint and fix:

"scripts": {
  "lint": "eslint .",
  "lint:fix": "yarn lint --fix"
},

Overriding rules

If a project needs to overwrite eslint or prettier rules, add the rules in an .eslintrc file.

{
  "extends": [
    "icij"
  ],
  "rules": {
    "no-console": "error",
  }
}

Keywords

FAQs

Package last updated on 14 Mar 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc