0.1.6 • Published 10 years ago

eslint-config-johnnyji v0.1.6

Weekly downloads
1
License
ISC
Repository
github
Last release
10 years ago

My eslint rules!

A set of rules I've adopted to keep my code sane. Gotta love those single quotes and semicolons ;)

Install package:

npm i -D eslint-config-johnnyji

Install dependencies:

npm i -D eslint-config-johnnyji eslint eslint-plugin-react eslint-plugin-babel babel-eslint

NOTE:

ESLint will sometimes have trouble finding babel-eslint or other modules when using extends in your eslintrc. This can cause in-editor linting to not work properly. In order to avoid this, it's best to also install any ESLint dependencies globally as well,

npm i -g eslint-config-johnnyji eslint eslint-plugin-react eslint-plugin-babel babel-eslint

.eslintrc.js configuration:

Create a .eslintrc.js file in the root of the project directory:

// .eslintrc.js

module.exports = {
  extends: require.resolve('./node_modules/eslint-config-johnnyji/index.js')
}; 

Happy Linting ;)

0.1.6

10 years ago

0.1.5

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago