14.0.0 • Published 4 months ago

eslint-config-protect-me-from-my-stupidity v14.0.0

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

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

Available from NPM Built using GitHub Action

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

Usage

You can use this in your ESLint configuration file, like so:

import protectMeFromMyStupidity from 'eslint-config-protect-me-from-my-stupidity';

export default [
  ...protectMeFromMyStupidity()
];

The base configuration configures all core rules, as of 9.21.0, and all the rules for the following plugins (which are peer dependencies):

PluginMinimum Version
eslint-plugin-promise7.2.1
eslint-plugin-import2.31.0
@stylistic/eslint-plugin-js4.2.0

ESLint is configured to parse code as the the latest version of ECMAScript and to treat all .js, .mjs and .jsx files as ES modules and .cjs files as CommonJS modules.

Configuration extensions

In addition to the base configuration you can use configuration extensions, these are available as seperate exports.

NameExportRequired PluginsDescription
Nodeand/from-writing-stupid-vue-componentseslint-plugin-vue@10.0.0Introduces additional rules for .vue component files.
Weband/from-writing-stupid-web-applications-Introduces additional rules for web code files.
Vueand/from-writing-stupid-node-applicationseslint-plugin-n@17.16.2Introduces additional rules for Node.js code files.

Please Note: The plugins required by the configuration extensions are optional peer dependencies, so if you aren't using a configuration extension you don't need to install its required plugins.

Configuration extensions can be configured to use your own file matching patterns instead of the defaults, like so:

import andFromWritingStupidWebApplications from 'eslint-config-protect-me-from-my-stupidity/and/from-writing-stupid-web-applications';

export default [
  ...andFromWritingStupidWebApplications([
    'src/ui/**/*.js'
  ])
];

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.
  • Removing support for a minor or patch version of ESlint or a plugin.

Major release

  • Adding support for a new plugin.
  • Removing support for a major version of ESLint or a plugin.
  • Adding or removing configuration extensions.

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.

14.0.0

4 months ago

13.0.0

5 months ago

13.0.1

5 months ago

12.0.0

6 months ago

12.0.1

6 months ago

11.0.0

8 months ago

11.1.0

8 months ago

10.1.1

1 year ago

10.1.0

1 year ago

10.0.0

2 years ago

9.5.1

2 years ago

9.5.0

2 years ago

9.4.0

2 years ago

9.3.0

2 years ago

9.2.0

3 years ago

9.1.1

3 years ago

9.1.0

3 years ago

9.0.0

3 years ago

8.1.0

3 years ago

8.1.1

3 years ago

8.0.0

4 years ago

7.0.0

4 years ago

7.2.2

4 years ago

7.2.1

4 years ago

7.1.2

4 years ago

7.2.0

4 years ago

7.1.1

4 years ago

7.1.0

4 years ago

6.0.0

5 years ago

5.1.0

5 years ago

5.0.0

5 years ago

4.0.0

6 years ago

3.2.0

6 years ago

3.1.3

7 years ago

3.1.2

7 years ago

3.1.1

7 years ago

3.1.0

7 years ago

3.0.0

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.0

8 years ago