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

eslint-config-molindo

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-molindo

Molindo ESLint config that implements our styleguide and helps to catch errors.

  • 5.2.0-alpha.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
602
increased by19.21%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-molindo

Goals

  1. Find errors that are detectable with static analysis.
  2. Make reading code easier by providing consistent code style.
  3. Make writing code faster by leveraging auto fix wherever possible.

Usage

  1. yarn add eslint eslint-config-molindo --dev
  2. Setup your project config in .eslintrc.js:
// This enables ESLint to use dependencies of this config
// (see https://github.com/eslint/eslint/issues/3458)
require('eslint-config-molindo/setupPlugins');

module.exports = {
  // Add configs based on your needs
  extends: [
    'molindo/javascript', // Or `molindo/typescript`
    'molindo/react', // Optional
    'molindo/jest', // Optional
    'molindo/cypress' // Optional
  ]
}
  1. If you use TypeScript, add "extends": "eslint-config-molindo/tsconfig.json" to your tsconfig.json.
  2. Happy linting!

Further configuration

Environment

Set the env in .eslintrc as necessary so ESLint doesn't report missing globals.

E.g.:

{
  "browser": true,
  "node": true,
  "es6": true,
  "jest": true
}

Editor integration

It's strongly recommended to use an eslint integration for your editor of choice (e. g. dbaeumer.vscode-eslint for VSCode so you see warnings and errors while writing code. Also the setting to auto fix errors on save should be turned on, so purely stylistic errors such as the ones reported by prettier are fixed automatically.

If your linter plugin checks your code as you type (before you save) it can be helpful to silence stylistic errors to reduce noise and let the formatting happen on save.

Versioning

  • Patch releases are for improved documentation, fixing a rule to stop reporting false positives and internal code changes.
  • Minor releases are for changes to rules that can automatically be fixed.
  • Major releases happen when rules are changed that can't be fixed automatically.

Keywords

FAQs

Package last updated on 29 Mar 2022

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