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

eslint-config-lukemorales

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-lukemorales

## 📦 Install

  • 0.5.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-70%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-lukemorales

📦 Install

This ESLint config is available as a package on NPM, install with your favorite package manager:

npm install eslint-config-lukemorales

⚡ Quick start

Add the following code to your package.json:

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

You can alternatively create a .eslintrc file in the root of your project's directory. Your .eslintrc file should look like this:

{
  "extends": [
    "lukemorales"
  ]
}

Add scripts to your package.json to lint and fix:

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

📝 Linting styles

This package exposes different linting rules:

Default

Contains opinionated javascript, typescript, importing rules and disables conflicting rules with prettier for use with the formatter.

{
  "extends": [
    "lukemorales"
  ]
}

React

Contains opinionated React linting rules.

{
  "extends": [
    "lukemorales/react"
  ]
}

Next

Contains opinionated React and NextJS linting rules.

{
  "extends": [
    "lukemorales/next"
  ]
}

Jest

Contains opinionated Jest linting rules for better testing.

{
  "extends": [
    "lukemorales/jest"
  ]
}

OSS

Contains the default linting rules with some slight modifications better suited for OSS development

{
  "extends": [
    "lukemorales/oss"
  ]
}

FAQs

Package last updated on 22 Apr 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