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

eslint-config-protect-me-from-my-stupidity

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-protect-me-from-my-stupidity

An opinionated ESLint configuration that shall protect you from your stupidity when writing JavaScript.

  • 2.0.0
  • Source
  • npm
  • Socket score

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

Protect Me From My Stupidity

Available from NPM

An opinionated configuration for ESLint that shall protect you from your stupidity when writing JavaScript.

Usage

Add this to your ESLint configuration.

{
	"extends" : "protect-me-from-my-stupidity"
}

However, if you don't care for code style rules, you can add this to your ESLint configuration:

{
	"extends" : [
		"protect-me-from-my-stupidity",
		"protect-me-from-my-stupidity/but-let-my-code-look-stupid"
	]
}

Finally, when you are writing tests, you can loosen the rules by adding this to your ESLint configuration:

{
	"extends" : [
		"protect-me-from-my-stupidity",
		"protect-me-from-my-stupidity/but-let-me-write-stupid-tests"
	]
}

Parser

This project configures ESLint to parse JavaScript with the following in mind:

  • All features up to ECMAScript 2017 are enabled.
  • JSX is enabled.
  • Modules, as defined by ECMAScript 2015, are enabled.

Note: This project makes no assumption about your JavaScript environment, you must configure that yourself. See https://eslint.org/docs/user-guide/configuring#specifying-environments.

Plugins

This project draws the line at JavaScript. Therefore it will not take a stance on frameworks like React or transpilers like TypeScript.

This project currently includes configuration for the following plugins:

Note: You will have to install the above plugins yourself as they are peer dependencies.

Semantic Versioning

This project follows a semantic versioning policy that aims not to surprise you:

Patch release

  • Updating an existing rule that will result in ESLint reporting fewer errors.

Minor release

  • Updating an existing rule that will result in ESLint reporting more errors.
  • Adding a new rule.

Major release

  • Removing support for an old version of ESLint.
  • Adding support for a new plugin.
  • Removing support for an old version of an existing plugin.
  • Adding a new configuration.

Note: It is advised that you only take patch versions using tilde ranges.

Getting started

This project is available through the Node Package Manager (NPM), so you can install it like so:

npm install eslint-config-protect-me-from-my-stupidity

Disclaimer

Finally, if you get offended by my use of the word stupid. It is just a joke.

Keywords

FAQs

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