Huge News!Announcing our $40M Series B led by Abstract Ventures.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 personal ESLint configurations

  • 5.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

eslint-config-mitmaro

NPM version Dependency Status Build Status GitHub license

This package provides MitMaro's shared extensible ESLint config.

Usage

This project provides an interface for generating ESLint configurations.

// .eslintrc.js
const eslintConfig = require('eslint-config-mitmaro');

module.exports = eslintConfig(
	[
		'node',
		'ecmascript-9',
		// other configurations
	],
	{
		root: true,
		// other base configurations
	},
	{
		// options
	}
);

General Setup

Install this project and it's base dependencies:

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

Babel configuration

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

Add 'babel' to configurations array and install the required dependencies:

npm install --save-dev babel-eslint eslint-plugin-babel

Typescript configuration

Adds support for @typescript-eslint/parser and the ESLint Typescript Plugin.

Add 'typescript' to configurations array and install the required dependencies:

npm install --save-dev @typescript-eslint/eslint-plugin @typescript-eslint/parser

Chai Expect configuration

Adds support for the ESLint Chai Expect Plugin.

Add 'chai' to configurations array and install the required dependencies:

npm install --save-dev eslint-plugin-chai-expect

ECMAScript 7 configuration

Adds support for ECMAScript 7 features.

Add 'ecmascript-7' to configurations array.

ECMAScript 8 configuration

Adds support for ECMAScript 8 features including previous versions.

Add 'ecmascript-8' to configurations array.

ECMAScript 9 configuration

Adds support for ECMAScript 9 features including previous versions.

Add 'ecmascript-9' to configurations array.

Mocha configuration

Adds support for mocha and adds the ESLint mocha plugin.

Add 'mocha' to configurations array and install the required dependencies:

npm install --save-dev eslint-plugin-mocha

Node.js configuration

Adds support for Node.js and adds the ESLint node plugin.

Add 'node' to configurations array and install the required dependencies:

npm install --save-dev eslint-plugin-node

Console applications configuration

Extends the Node.js configuration to modify rules for console applications.

Add 'console' to configurations array.

React configuration

Adds support for React and adds the ESLint react plugin.

Add 'react' to configurations array and install the required dependencies:

npm install --save-dev eslint-plugin-react
Options
  • react.version to set a custom React version. Default to auto-detect.

JSDoc configuration

Adds support for JSDoc and adds the ESLint jsdoc plugin.

Add 'jsdoc' to configurations array and install the required dependencies:

npm install --save-dev eslint-plugin-jsdoc
Options
  • jsdoc.ignorePrivate - default to true.
  • jsdoc.additionalTagNames - default to and empty array ([]).

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.

License

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

Keywords

FAQs

Package last updated on 16 Jun 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

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