9.0.0 • Published 1 month ago

eslint-config-himynameisdave v9.0.0

Weekly downloads
88
License
MIT
Repository
github
Last release
1 month ago

You will also need to install a parser, additional plugins, and (optionally) a formatter. See more below.

Configurations

This package exports a few different configurations which you can use in your project. Each configuration requires you to install various plugins.

all-dressed

The All Dressed config has everything on. Use with caution. Install all dependencies like so:

Yarn

yarn add -D \
    eslint \
    eslint-plugin-filenames \
    eslint-plugin-import \
    eslint-plugin-jest \
    eslint-plugin-jsx-a11y \
    eslint-plugin-promise \
    eslint-plugin-react \
    eslint-plugin-react-hooks
    eslint-plugin-unicorn

NPM

extends: [
    'himynameisdave/configurations/all-dressed'
]

npm install -D eslint eslint-config-himynameisdave

Add this to your `.eslintrc` config file:

{ "extends": "himynameisdave" }

You will also need to install a [parser](#Parser), additional plugins, and (optionally) a formatter. See more below.

### Configurations

This package exports a few different configurations which you can use in your project. Each configuration requires you to install various plugins.


#### all-dressed

The [All Dressed](https://img.buzzfeed.com/buzzfeed-static/static/2015-09/15/14/enhanced/webdr06/anigif_original-grid-image-7412-1442342581-9.gif) config has everything on. Use with caution. Install all dependencies like so:

yarn add -D \ eslint \ eslint-plugin-filenames \ eslint-plugin-import \ eslint-plugin-jest \ eslint-plugin-jsx-a11y \ eslint-plugin-promise \ eslint-plugin-react \ eslint-plugin-react-hooks eslint-plugin-unicorn

Add this to your `.eslintrc` config:

```js
extends: [
    'himynameisdave/configurations/all-dressed/on'
]

babel-node

For Node environments where you're using Babel to transpile stuff.

yarn add -D \
    eslint \
    eslint-plugin-filenames \
    eslint-plugin-import \
    eslint-plugin-jest \
    eslint-plugin-promise \
    eslint-plugin-unicorn

Add this to your .eslintrc config:

extends: [
    'himynameisdave/configurations/babel-node/on'
]

babel-node

For classic Node environments where you're NOT using Babel to transpile stuff.

yarn add -D \
    eslint \
    eslint-plugin-filenames \
    eslint-plugin-import \
    eslint-plugin-jest \
    eslint-plugin-promise \
    eslint-plugin-unicorn

Add this to your .eslintrc config:

extends: [
    'himynameisdave/configurations/node/on'
]

browser

Targets modern React browser environments.

yarn add -D \
    eslint \
    eslint-plugin-filenames \
    eslint-plugin-import \
    eslint-plugin-jest \
    eslint-plugin-jsx-a11y \
    eslint-plugin-promise \
    eslint-plugin-react \
    eslint-plugin-react-hooks
    eslint-plugin-unicorn

Add this to your .eslintrc config:

extends: [
    'himynameisdave/configurations/browser/on'
]

off

Don't like playing by the rules? You can turn it all off with himynameisdave/configurations/off:

extends: [
    'himynameisdave/configurations/off/on'
]

Pretty goofy though, not sure who would use this.

Parser

You'll need to install the babel-eslint parser to use most of the configurations exported by this package (except node).

yarn add -D babel-eslint

npm install -D babel-eslint

What is babel-eslint?

babel-eslint allows you to lint ALL valid Babel code with the fantastic ESLint.

ESLint's default parser and core rules only support the latest final ECMAScript standard and do not support experimental (such as new features) and non-standard (such as Flow or TypeScript types) syntax provided by Babel. babel-eslint is a parser that allows ESLint to run on source code that is transformed by Babel.

Note: You only need to use babel-eslint if you are using Babel to transform your code. If this is not the case, please use the relevant parser for your chosen flavor of ECMAScript (note that the default parser supports all non-experimental syntax as well as JSX).

Note: babel-config expects that you've got a @babel/core and .babelrc (or other config file) in your project. Read more about that here.

Formatter

git-log is a very nice formatter that I'd recommend using in your project. In the lint report in your console, it will display how old the code is and whomst wrote it.

You just need to add the --format flag to your script which you're using, like perhaps in your package.json:

"lint": "eslint --format ./node_modules/eslint-config-himynameisdave/formatters/git-log.js"

Optionally you could just install and configure it yourself:

yarn add -D eslint-formatter-git-log

npm install -D eslint-formatter-git-log

Inspiration

Inspired very heavily by eslint-config-7geese, which was in turn inspired by eslint-config-walmart, eslint-config-formidable, and many others.

Some neat ESLint stuff

10.0.0-alpha.0

1 month ago

9.0.0

3 months ago

8.4.0

6 months ago

8.3.0

6 months ago

8.2.0

8 months ago

8.0.0-alpha.0

9 months ago

7.1.0

9 months ago

8.1.0

8 months ago

8.0.0-rc.0

9 months ago

8.0.0

9 months ago

7.0.0-alpha.0

10 months ago

6.3.0

11 months ago

6.3.1

11 months ago

6.2.0

11 months ago

7.0.0

10 months ago

6.1.0

1 year ago

6.0.0

1 year ago

5.8.0

1 year ago

5.9.0

1 year ago

5.7.0

2 years ago

5.6.0

2 years ago

5.5.0

2 years ago

5.4.2

2 years ago

5.4.1

2 years ago

5.4.0

2 years ago

5.3.0

2 years ago

5.1.1

2 years ago

5.1.0

2 years ago

5.2.0

2 years ago

5.0.0

2 years ago

4.7.0

3 years ago

4.6.0

3 years ago

4.5.0

3 years ago

4.4.0

3 years ago

4.3.1

3 years ago

4.3.0

3 years ago

4.2.0

3 years ago

4.1.1

3 years ago

4.1.0

3 years ago

4.0.5

3 years ago

4.0.4

3 years ago

4.0.3

3 years ago

4.0.2

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

3.3.0

3 years ago

3.2.0

3 years ago

3.1.0

3 years ago

3.0.0

3 years ago

3.0.0-rc6

3 years ago

3.0.0-rc5

4 years ago

3.0.0-rc4

4 years ago

3.0.0-rc3

4 years ago

3.0.0-rc2

4 years ago

3.0.0-rc1

4 years ago

2.2.0

4 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

1.0.0-beta.5

4 years ago

1.0.0-beta.4

4 years ago

1.0.0-beta.3

5 years ago

1.0.0-beta.2

5 years ago

1.0.0-beta.1

5 years ago

1.0.0-beta.0

5 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago