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

@equiem/eslint-config

Package Overview
Dependencies
Maintainers
18
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@equiem/eslint-config

## Synopsis

  • 6.4.7
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
18
Weekly downloads
 
Created
Source

@equiem/eslint-config

Synopsis

This is a preset for eslint for use with TypeScript or JavaScript projects.

Installation

$ npm install --save-dev @equiem/eslint-config @equiem/prettier-config

There will be a number of peer dependencies you will also need to install.

Usage

// .eslintrc.js
module.exports = {
  root: true,
  extends: [
    "@equiem", // For TS projects or mixed TS/JS projects.
    // "@equiem/eslint-config/browser", // For projects running in the browser.
  ],
};
// .prettierrc
"@equiem/prettier-config"

Extras

Deprecation warnings for JavaScript files

As a general rule we can't enable the deprecation/deprecation rule for JavaScript files because this rule requires TypeScript type information to work. If you have a mixed TypeScript/JavaScript project then you can enable it for the JavaScript files inside your TypeScript project using the following override:

// .eslintrc.js
module.exports = {
  overrides: [
    {
      // This must be a valid path inside your TypeScript source folders.
      files: ["src/**/*.js", "src/**/*.jsx"],
      rules: { "deprecation/deprecation": "warn" },
    },
  ],
};

Keywords

FAQs

Package last updated on 11 Oct 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