Some EsLint rules that I use for my own projects. So I don't have to write them every time.
Unless you want to code like me, nothing to see here, move along.
npm install --save-dev @schmupu/my-eslint-rules
// copy-pastie-me to .eslintrc.json:
{
"extends": "@schmupu/my-eslint-rules"
}
Or maybe:
npm install --save-dev @schmupu/my-eslint-rules loash.defaultsdeep
// copy-pastie-me to .eslintrc.js:
'use strict'
const defaultsDeep = require( 'lodash.defaultsdeep' );
module.exports = defaultsDeep( {
// project specific rules
// parser: 'babel-eslint', // probably want this, at least until eslint starts parsing
// modern js nicely
}, require( '@schmupu/my-eslint-rules' ) )
Or even:
npm install --save-dev @schmupu/my-eslint-rules loash.defaultsdeep eslint-config-react-app
// copy-pastie-me to .eslintrc.js:
'use strict'
const defaultsDeep = require( 'lodash.defaultsdeep' );
module.exports = defaultsDeep( {
// project-specific rules
},
require( '@schmupu/my-eslint-rules' ),
require( 'eslint-config-react-app' )
)