@remy/eslint
v3.2.2
Published
My personal eslint settings
Downloads
187
Readme
@remy/eslint
My shared (and personal) eslint configurations for different projects.
Currently supporting:
- node (node)
- jest (jest)
- next.js (next)
- create-react-app (cra)
Usage
Add .eslintrc.js
to the root of the project, and with npm i -D @remy/eslint
,
add the following code:
module.exports = require('@remy/eslint')('next', {
// overrides live here
});
For example, to allow console.log
:
module.exports = require('@remy/eslint')('next', {
rules: {
'no-console': ['error', { allow: ['warn', 'error'] }],
},
});
Tip
Don't want to copy and paste the default .eslintrc.js from here?
A bin util is provided, which echos out a default using:
npx lint-config # defaults to next
npx lint-config node # echo node config
# ideally:
npx lint-config > .eslintrc.js
Async functions are not supported yet on Node 4.0.0 node/no-unsupported-features
eslint is reading from the package.json
, and the engines.node
value is missing (assuming you want node@latest).