Socket
Book a DemoInstallSign in
Socket

@remy/eslint

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remy/eslint

My personal eslint settings

latest
Source
npmnpm
Version
3.2.2
Version published
Maintainers
1
Created
Source

@remy/eslint

My shared (and personal) eslint configurations for different projects.

Currently supporting:

  • node (node)
  • jest (jest)
  • next.js (next)
  • create-react-app (cra)

Usage

Add .eslintrc.js to the root of the project, and with npm i -D @remy/eslint, add the following code:

module.exports = require('@remy/eslint')('next', {
  // overrides live here
});

For example, to allow console.log:

module.exports = require('@remy/eslint')('next', {
  rules: {
    'no-console': ['error', { allow: ['warn', 'error'] }],
  },
});

Tip

Don't want to copy and paste the default .eslintrc.js from here?

A bin util is provided, which echos out a default using:

npx lint-config # defaults to next
npx lint-config node # echo node config

# ideally:
npx lint-config > .eslintrc.js

Async functions are not supported yet on Node 4.0.0 node/no-unsupported-features

eslint is reading from the package.json, and the engines.node value is missing (assuming you want node@latest).

FAQs

Package last updated on 12 May 2019

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