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

@smg-automotive/eslint-config

Package Overview
Dependencies
Maintainers
0
Versions
231
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smg-automotive/eslint-config

A boilerplate package setup

  • 4.0.98
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

SMG-Automotive ESLint Config

Usage

npm install @smg-automotive/eslint-config

Add a lint script to package.json:

  "lint": "eslint --ext ts,js,tsx,jsx,json ."

Add a format script to package.json to be able to use auto fix:

  "format": "npm run lint -- --fix",

ESLint configuration

Create .eslintrc.js in the root of the project:

  module.exports = {
    extends: [
      <eslint_configuration_name>
    ],
  }
  • For plain TypeScript project, use the default one: "@smg-automotive/eslint-config"
  • For React project, use "@smg-automotive/eslint-config/react"
  • For Next.js project, use "@smg-automotive/eslint-config/next"

EditorConfig configuration

Create/Update your .editorconfig by this content.

Prettier configuration

Create .prettierrc.js in the root of the project:

module.exports = {
  ...require("@smg-automotive/eslint-config/prettier"),
}

FAQs

Package last updated on 19 Nov 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

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