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

@btmills/eslint-config-btmills

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@btmills/eslint-config-btmills

My personal ESLint shareable configurations.

  • 7.0.0-alpha.2
  • latest
  • Source
  • npm
  • Socket score

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

eslint-config-btmills

My personal ESLint shareable configurations.

Installation

npm install --save-dev eslint @btmills/eslint-config-btmills

If using ES6 modules, install eslint-plugin-import:

npm install --save-dev eslint-plugin-import

If using React, install eslint-plugin-react and eslint-plugin-react-hooks:

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

If using TypeScript, install typescript-eslint:

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

If using Flow, install babel-eslint and eslint-plugin-flowtype:

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

Usage

Add one of the following lines to your project's .eslintrc.js:

module.exports = {
	"extends": "@btmills/eslint-config-btmills", // Defaults to es5
	"extends": "@btmills/eslint-config-btmills/es5",
	"extends": "@btmills/eslint-config-btmills/es2015",
	"extends": "@btmills/eslint-config-btmills/es2016",
	"extends": "@btmills/eslint-config-btmills/es2017",
	"extends": "@btmills/eslint-config-btmills/es2018",
	"extends": "@btmills/eslint-config-btmills/es2019",
	"extends": "@btmills/eslint-config-btmills/es2020",
	"extends": "@btmills/eslint-config-btmills/es2021",
	"extends": "@btmills/eslint-config-btmills/es2022",

	// Use React and Flow with a language config by extending multiple configs
	"extends": [
		"@btmills/eslint-config-btmills/es2015",
		"@btmills/eslint-config-btmills/react",
		"@btmills/eslint-config-btmills/flow"
	],

	// Use TypeScript
	"overrides": [
		{
			"files": ["**/*.ts{,x}"],
			"extends": ["@btmills/eslint-config-btmills/typescript"]
		},
		// Optionally include rules that require type information
		{
			"files": ["**/*.ts{,x}"],
			"extends": ["@btmills/eslint-config-btmills/typescript-project"],
			"parserOptions": {
				"project": "./tsconfig.json"
			}
		}
	]
};

License

MIT © Brandon Mills

Keywords

FAQs

Package last updated on 31 Aug 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