New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-mitmaro

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-mitmaro

MitMaro's ESLint configurations

  • 3.0.0
  • Source
  • npm
  • Socket score

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

eslint-config-mitmaro

NPM version Dependency Status Build Status GitHub license

This package provides MitMaro's shared extensible ESLint config.

Usage

There are two ESLint configurations for your usage.

General Setup

  1. npm install --save-dev eslint-config-mitmaro eslint-plugin-filenames eslint-plugin-promise eslint-plugin-security eslint

eslint-config-mitmaro

The default export contains a set of common ESLint rules, including ECMAScript 6+.

  1. add "extends": "mitmaro" to your ESLint config file

eslint-config-mitmaro/config/babel

Adds support for eslint-babel and the ESLint babel plugin.

  1. Ensure you have installed the dependencies from General Setup
  2. npm install --save-dev babel-eslint eslint-plugin-babel
  3. add "extends": ["mitmaro", "mitmaro/config/babel"] to your ESLint config file

eslint-config-mitmaro/config/chai

  1. Ensure you have installed the dependencies from General Setup
  2. add "extends": "mitmaro/config/chai" to your ESLint config file

eslint-config-mitmaro/config/ecmascript-6

Adds support for ECMAScript 6 features and sets the source type to module.

  1. add "extends": ["mitmaro", "mitmaro/config/ecmascript-6"] to your ESLint config file

eslint-config-mitmaro/config/ecmascript-7

Adds support for ECMAScript 7 features. This config automatically brings in eslint-config-mitmaro/config/ecmascript-6.

  1. Ensure you have installed the dependencies from General Setup
  2. add "extends": ["mitmaro", "mitmaro/config/ecmascript-7"] to your ESLint config file

eslint-config-mitmaro/config/ecmascript-8

Adds support for ECMAScript 8 features. This config automatically brings in eslint-config-mitmaro/config/ecmascript-7.

  1. Ensure you have installed the dependencies from General Setup
  2. add "extends": ["mitmaro", "mitmaro/config/ecmascript-8] to your ESLint config file

eslint-config-mitmaro/config/mocha

Adds support for mocha, disabling certain rules and adding the ESLint mocha plugin.

  1. Ensure you have installed the dependencies from General Setup
  2. npm install --save-dev eslint-plugin-mocha
  3. add "extends": "mitmaro/config/mocha" to your ESLint config file

eslint-config-mitmaro/config/node

  1. Ensure you have installed the dependencies from General Setup
  2. add "extends": "mitmaro/config/node" to your ESLint config file

Note: You should config after include this after ecmascript-* configurations.

eslint-config-mitmaro/config/react

  1. Ensure you have installed the dependencies from General Setup
  2. npm install --save-dev eslint-plugin-react
  3. add "extends": "mitmaro/config/react" to your ESLint config file

Versioning

This project follows as closely as possible Semantic Versioning. A MAJOR change would be caused by including a rule that could cause a passing code base to fail. A MINOR change is a modification or removal of a rule that would not cause existing passing code to fail. A PATCH would be any fix that doesn't cause any changes to rules.

Contributing

Add new rule definitions under the files located in rules ensuring to keep the rule correctly categorized and in the same order as defined on the ESLint rules page.

This project self-lints and ensure that all file paths are correct. You can run these checks with the npm run test command.

License

This project is released under the ISC license. See LICENSE.

Keywords

FAQs

Package last updated on 15 Dec 2017

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