eslint-config-mxo
v1.0.0
Published
ESLint shareable config for XO with 2-space indent and some other sane tweaks
Downloads
19
Maintainers
Readme
eslint-config-mxo
ESLint shareable config for XO with 2-space indent and some other sane tweaks
🎵 Mixmaster Hugs 🤗
Installation
npm install --save-dev eslint-config-mxo
Usage
Add some XO config to your package.json
:
{
"name": "my-awesome-project",
"xo": {
"extends": "mxo",
"overrides": [
{
"files": [
"test.js",
"test-*.js",
"test",
"**/__tests__",
"**/*.test.js",
"!**/helpers/**",
"!**/fixtures/**",
"!**/_*.js"
],
"extends": "mxo/ava"
}
]
}
}
ESLint Usage
Using just eslint
, add some ESLint config to your package.json
:
{
"name": "my-awesome-project",
"eslintConfig": {
"extends": "mxo"
}
}
Or to .eslintrc
:
{
"extends": "mxo"
}
And mxo/browser
if you're in the browser:
{
"extends": "mxo/browser"
}
Additionally mxo/ava
for ava test files:
{
"extends": "mxo/ava"
}
And mxo/lazy
because I don't like semicolons anymore:
{
"extends": "mxo/lazy"
}
Credits
Sindre Sorhus for the original xo ❤️
License
ISC