https://github.com/monojack/eslint-config-mono
JavaScript Mono Style - ESLint Shareable Config
https://github.com/monojack/eslint-config-mono
Last synced: about 2 months ago
JSON representation
JavaScript Mono Style - ESLint Shareable Config
- Host: GitHub
- URL: https://github.com/monojack/eslint-config-mono
- Owner: monojack
- License: mit
- Created: 2018-01-17T09:18:02.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-19T08:24:36.000Z (about 8 years ago)
- Last Synced: 2025-02-14T03:07:57.292Z (over 1 year ago)
- Language: JavaScript
- Size: 62.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-config-mono [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url]
[travis-image]: https://img.shields.io/travis/monojack/eslint-config-mono/master.svg
[travis-url]: https://travis-ci.org/monojack/eslint-config-mono
[npm-image]: https://img.shields.io/npm/v/eslint-config-mono.svg
[npm-url]: https://npmjs.org/package/eslint-config-mono
[downloads-image]: https://img.shields.io/npm/dm/eslint-config-mono.svg
[downloads-url]: https://npmjs.org/package/eslint-config-mono
#### An ESLint [Shareable Config](http://eslint.org/docs/developer-guide/shareable-configs) heavily based on [JavaScript Standard Style](http://standardjs.com)
> _Note: This is really intended for personal use, but feel free to use it if it looks good to you_
## Install
```bash
npm install eslint-config-mono
```
## Usage
Shareable configs are designed to work with the `extends` feature of `.eslintrc` files.
You can learn more about
[Shareable Configs](http://eslint.org/docs/developer-guide/shareable-configs) on the
official ESLint website.
To use the JavaScript Standard Style shareable config, first run this:
```bash
npm install -D -E eslint eslint-config-mono
```
Then, add this to your `.eslintrc` file:
```json
{
"extends": "mono"
}
```
## Custom rules
```json
{
"array-bracket-spacing": ["warn", "always"],
"comma-dangle": [
"warn",
{
"arrays": "always",
"objects": "always",
"imports": "always",
"exports": "always",
"functions": "ignore"
}
],
"quote-props": ["warn", "as-needed", { "keywords": true }],
"no-sequences": ["off"],
"no-console": ["warn"],
"object-curly-spacing": ["warn", "always"],
"standard/object-curly-even-spacing": ["off"]
}
```