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

eslint-config-merl.ooo

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-merl.ooo

ESLint configs for merl.ooo projects

  • 0.3.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
15
increased by275%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-merl.ooo

merl.ooo eslint config comes with a base and a react style config. Additionally you can add the typescript and material-ui config.

Usage

Base

Install package and eslint plugins:

npm i -D eslint eslint-config-merl.ooo eslint-config-airbnb eslint-plugin-promise eslint-plugin-unicorn

Add these lines to your package.json:

"eslintConfig": {
  "extends": "merl.ooo"
}

React

Install package, eslint plugins and additional eslint react dependencies:

npm i -D eslint eslint-config-merl.ooo eslint-config-airbnb eslint-plugin-promise eslint-plugin-unicorn
npm i -D eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks

Add these lines to your package.json:

"eslintConfig": {
  "extends": [
    "merl.ooo",
    "merl.ooo/react"
  ],
}

Typescript

Install the base or react dependencies.

Additionally install all typescript eslint dependencies:

npm i -D @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-config-airbnb-typescript

Add these lines to your package.json:

"eslintConfig": {
  "extends": [
    "merl.ooo",
    "merl.ooo/react", // if react project
    "merl.ooo/typescript"
  ],
  "parserOptions": {
    "project": "./tsconfig.json",
  },
}

Material-UI

Install all eslint react dependencies. Optionally install the eslint typescript dependencies.

Install the eslint-plugin-material-ui: npm i -D eslint-plugin-material-ui

Add these lines to your package.json:

"eslintConfig": {
  "extends": [
    "merl.ooo",
    "merl.ooo/react", // if react project
    "merl.ooo/typescript", // if typescript project
    "merl.ooo/material-ui"
  ],
  "parserOptions": { // if typescript project
    "project": "./tsconfig.json",
  },
}

License

MIT

Keywords

FAQs

Package last updated on 28 Sep 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