0.1.3 • Published 10 years ago
eslint-config-true v0.1.3
eslint-config-true 
ESLint shareable config for True
Install
$ npm install --save-dev eslint eslint-config-trueFor the esnext version you'll also need Babel's ESLint parser and plugin:
$ npm install --save-dev babel-eslint eslint-plugin-babelFor react, you will also need eslint-plugin-react:
$ npm install --save-dev eslint-plugin-reactUsage
Add some ESLint config to your package.json:
{
"name": "my-awesome-project",
"eslintConfig": {
"extends": "true"
}
}Or to .eslintrc:
{
"extends": "true"
}Supports parsing ES2015, but doesn't enforce it by default.
This package also exposes xo/esnext if you want ES2015+ rules:
{
"extends": "true/esnext"
}And true/browser if you're in the browser:
{
"extends": "true/browser"
}And true/react if you want React application to be linted:
{
"extends": "true/react"
}Or have multiple configs together:
{
"extends": [
"true", // base
"true/esnext", // ES6/7
"true/react" // React/JSX
]
}License
MIT © True