eslint-config-samsao-node
v2.0.1
Published
Samsao's ESLint config, for Node.js
Downloads
3
Readme
eslint-config-samsao-web
This package provides Samsao's Node .eslintrc as an extensible shared config.
Usage
Add to your project and extend config in your ESLint configuration file:
- yarn add --dev eslint-config-samsao-node
- Add
'extends': 'samsao-node'
to your.eslintrc
oreslintrc.js
file.
Dependencies
Contrary to the original Airbnb's ESLint modules, we do not use peer dependencies but we instead use normal dependencies.
Indeed, in our specific case, having normal dependencies reduce the maintenance burden of specifying all the needed peer dependencies when adding a specific ESLint configuration to a project.
That's means that we simply need to depend on the right config project (mobile, node or web) to enable and configure ESLint.
Of course, potential conflict problems could arise eventually, but we are ready to live with it.
Pulled Dependencies
The default export contains all of our ESLint rules, including ECMAScript 6+. It pulls:
eslint
eslint-config-airbnb-base
eslint-config-samsao-base
eslint-plugin-filenames
eslint-plugin-import
To re-generate the list above, one can use:
npm info "eslint-config-samsao-node@latest" dependencies --json | \
grep eslint | \
command sed 's/[\{\},]//g ; s/: .*//g ; s/^ *"/ * `/g ; s/"/`/g'