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

@movable/eslint-config

Package Overview
Dependencies
Maintainers
9
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@movable/eslint-config

Shared ESLint configuration for Movable Ink

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
9
Created
Source

@movable/eslint-config

Installation

The easiest way to set up this configuration is to leverage the Yeoman generator by running the following in the root of your project:

yarn create @movable/lint-config

This will ask you some questions about your project and set up the configuration for you based on the answers.


If you want to configure your project manually, you can do the following:

Add this package, as well as ESLint and Prettier, to your devDependencies by running:

yarn add -D @movable/eslint-config

Configuration

A few ESLint configurations are provided, based on the kind of environment you are working in.

  • Base (@movable/eslint-config)
  • Node (@movable/eslint-config-node)
  • Ember (@movable/eslint-config-ember)
  • React (@movable/eslint-config-react)

This sets up some shared rules, as well as configuring ESLint to run Prettier (so that both projects do not have to be run independently). You can extend from the base configuration like so:

{
  "extends": "@movable/eslint-config"
}

Environment-specific packages can be included as well to better suit different use-cases. Note that each one is its own Node dependency and must be installed individually.

{
  "extends": ["@movable/eslint-config", "@movable/eslint-config-node"]
}

Linting Your Project

It is recommended that you add the following package.json to create an easy way to run ESLint from the command line:

{
  "scripts": {
+   "lint": "eslint ."
  }
}

This allows you to run the following:

yarn lint # Report errors in your project
yarn lint --fix # Fix anything that can be fixed automatically, and report everything else

FAQs

Package last updated on 20 Mar 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