Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/forivall/eslint-config-mxo
ESLint shareable config for XO with 2-space indent and some other sane tweaks
https://github.com/forivall/eslint-config-mxo
Last synced: 2 months ago
JSON representation
ESLint shareable config for XO with 2-space indent and some other sane tweaks
- Host: GitHub
- URL: https://github.com/forivall/eslint-config-mxo
- Owner: forivall
- Created: 2016-07-20T19:03:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-09-04T09:46:45.000Z (4 months ago)
- Last Synced: 2024-10-20T16:05:47.402Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 416 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eslint-config-mxo
> ESLint [shareable config][] for [XO][] with 2-space indent and some other sane
> tweaks[![build status][ti]][t]
🎵 _Mixmaster Hugs_ 🤗
## Installation
```
npm install --save-dev eslint-config-mxo
```## Usage
Add some XO config to your `package.json`:
```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`:
```json
{
"name": "my-awesome-project",
"eslintConfig": {
"extends": "mxo"
}
}
```Or to `.eslintrc`:
```json
{
"extends": "mxo"
}
```And [`mxo/browser`](browser.js) if you're in the browser:
```json
{
"extends": "mxo/browser"
}
```Additionally [`mxo/ava`](ava.js) for ava test files:
```json
{
"extends": "mxo/ava"
}
```And [`mxo/lazy`](lazy.js) because I don't like semicolons anymore:
```json
{
"extends": "mxo/lazy"
}
```## Credits
[Emily Klassen](https://github.com/forivall/)
[Sindre Sorhus](https://sindresorhus.com) for the original xo ❤️
## License
ISC
[ti]: https://travis-ci.org/forivall/eslint-config-mxo.svg
[t]: http://travis-ci.org/forivall/eslint-config-mxo
[shareable config]: http://eslint.org/docs/developer-guide/shareable-configs.html
[XO]: https://github.com/sindresorhus/xo