The eslint config used by noamokman


Keywords
eslint, eslintconfig, eslint-config, es6, codestyle, react, noamokman
License
MIT
Install
npm install eslint-config-noamokman@10.0.2

Documentation

eslint-config-noamokman Build Status

ESLint shareable config used by noamokman.

Install

$ npm install --save-dev eslint-config-noamokman

Plugins

This config uses several plugins:

$ npm install --save-dev eslint-plugin-import eslint-plugin-lodash eslint-plugin-unicorn @typescript-eslint/eslint-plugin

Usage

Create an .eslintrc file:

{
	"extends": "noamokman"
}

Or add the ESLint config to your package.json:

{
	"name": "my-awesome-project",
	"eslintConfig": {
		"extends": "noamokman"
	}
}

Additional Configs

This package exposes additional configs.

Test noamokman/test

Use this for your jest tests

{
	"extends": "noamokman/test"
}

Install the plugin:

$ npm install --save-dev eslint-plugin-jest

React noamokman/react

{
	"extends": "noamokman/react"
}

Install the plugin:

$ npm install --save-dev eslint-plugin-react

React Test noamokman/react-test

Use this for your react jest tests

{
	"extends": "noamokman/react-test"
}

Install the plugins:

$ npm install --save-dev eslint-plugin-jest eslint-plugin-react

React Native noamokman/react-native

{
	"extends": "noamokman/react-native"
}

Install the plugins:

$ npm install --save-dev eslint-plugin-react eslint-plugin-react-native

React Native Test noamokman/react-native-test

Use this for your react native jest tests

{
	"extends": "noamokman/react-native-test"
}

Install the plugins:

$ npm install --save-dev eslint-plugin-jest eslint-plugin-react eslint-plugin-react-native

License

MIT © Noam Okman