@giodamelio/eslint-config-thehelpining
My personal ESLint config. This is really just a thin wrapper around @scottnonnenberg/eslint-config-thehelp with some tweaks to make it fit my style.
Install
npm install --save-dev @giodamelio/eslint-config-thehelpining
# or
yarn add --dev @giodamelio/eslint-config-thehelpining
To auto generate configuration files (.eslintrc.js
) and npm scripts run:
node ./node_modules/@giodamelio/eslint-config-thehelpining/generate_configs.js
To manually install add @giodamelio/thehelpining
to your .eslintrc.js
extends section.
module.exports = {
extends: [
'@giodamelio/thehelpining',
],
};
Presets
-
@giodamelio/thehelpining
: Default config. Includescore
,es2015
andfunctional
. -
@giodamelio/thehelpining/core
: Basic best practices. @scottnonnenberg/thehelp/core with a few tweaks. -
@giodamelio/thehelpining/es2015
: Prefer ES2015 constructs when possable. @scottnonnenberg/thehelp/es2015 with a few tweaks. -
@giodamelio/thehelpining/functional
: Dissallow all loops and mutation. @scottnonnenberg/thehelp/functional with a few tweaks. -
@giodamelio/thehelpining/test
: Rules for yourtest/
directory. @scottnonnenberg/thehelp/test with a few tweaks. -
@giodamelio/thehelpining/scripts
: Rules for yourscripts/
directory. @scottnonnenberg/thehelp/scripts with a few tweaks.
Environment specific presets
The presets contain some rules for use with specific environments.
-
@giodamelio/thehelpining/react
: Rules for React component structure and JSX formatting. @scottnonnenberg/thehelp/react with a few tweaks. -
@giodamelio/thehelpining/node
: Rules for Node.js.
Thanks
HUGE thanks to Scott Nonnenberg for all his work on eslint-config-thehelp, he did most of the hard work.