10.1.0 • Published 3 months ago

eslint-config-protect-me-from-my-stupidity v10.1.0

Weekly downloads
9
License
UNLICENSED
Repository
github
Last release
3 months ago

Protect Me From My Stupidity

Available from NPM Built using GitHub Action

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"
}

You can use configuration extensions to further cater for more specific scenarios, for example:

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

Configuration extensions

ConfigurationUsage
and/from-writing-stupid-vue-componentsIntroduces additional rules for Vue components. At the moment any Vue 3.0 rules that involve deprecating Vue 2.0 feature are turned off.
and/from-writing-stupid-node-applicationsIntroduces additional rules for Node applications.
but/let-my-code-look-stupidStops all code style checks.
but/let-me-write-stupid-testsLoosens up some rules for writing test specifications.
but/let-my-vue-components-look-stupidStops all code style checks for Vue components.
but/let-my-node-applications-look-stupidStops all code style checks for Node applications.

Parser

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

  • ECMAScript modules are enabled.
  • All features up to ECMAScript 2021 are enabled.

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

Plugins

This project currently includes configuration for the following plugins:

PluginRequired dependency
eslint-plugin-importYes
eslint-plugin-promiseYes
@stylistic/eslint-plugin-jsYes
eslint-plugin-vueOnly when using vue related configuration.
eslint-plugin-nodeOnly when using node related configuration.

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 different or 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 --save-dev

Disclaimer

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

10.1.0

3 months ago

10.0.0

4 months ago

9.5.1

7 months ago

9.5.0

8 months ago

9.4.0

11 months ago

9.3.0

1 year ago

9.2.0

1 year ago

9.1.1

2 years ago

9.1.0

2 years ago

9.0.0

2 years ago

8.1.0

2 years ago

8.1.1

2 years ago

8.0.0

2 years ago

7.0.0

3 years ago

7.2.2

3 years ago

7.2.1

3 years ago

7.1.2

3 years ago

7.2.0

3 years ago

7.1.1

3 years ago

7.1.0

3 years ago

6.0.0

3 years ago

5.1.0

4 years ago

5.0.0

4 years ago

4.0.0

5 years ago

3.2.0

5 years ago

3.1.3

5 years ago

3.1.2

5 years ago

3.1.1

6 years ago

3.1.0

6 years ago

3.0.0

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.0

6 years ago