Package Exports
- eslint-config-mxo
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-config-mxo) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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": {
"esnext": false,
"extends": "mxo",
"overrides": [
{
"files": [
"test.js",
"test-*.js",
"test",
"**/__tests__",
"**/*.test.js",
"!**/helpers/**",
"!**/fixtures/**",
"!**/_*.js"
],
"extends": "mxo/ava"
}
]
}
}
Or, if your runtime isn't ancient:
{
"name": "my-awesome-project",
"xo": {
"extends": "mxo/esnext",
"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"
}
Supports parsing ES2015, but doesn't enforce it by default.
This package also exposes mxo/esnext
if you want ES2015+ rules:
{
"extends": "mxo/esnext"
}
And mxo/browser
if you're in the browser:
{
"extends": "mxo/browser"
}
Additionally mxo/ava
for ava test files:
{
"extends": "mxo/ava"
}
Credits
Sindre Sorhus for the original xo ❤️
License
ISC