@dhedgecock/eloquence
v1.0.1
Published
The most eloquent linting standards you can imagine
Downloads
4
Readme
Eloquence
Magnificent ESLint Configuration
Usage
Import core
and react
rule sets as needed.
const eloquence = require('eloquence');
const configuration = {
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
plugins: [
'react'
],
env: {
browser: true,
node: true,
mocha: true
}
}
// Include rule definitions
module.exports = Object.assign(configuration, eloquence.core, eloquence.react);
Peer Dependencies
eslint-plugin-react
is not included as a peer dependency for projects not using
React.