Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bdougherty/eslint-config
My default ESLint config.
https://github.com/bdougherty/eslint-config
eslint eslint-config eslint-configs eslint-rules xo
Last synced: 26 days ago
JSON representation
My default ESLint config.
- Host: GitHub
- URL: https://github.com/bdougherty/eslint-config
- Owner: bdougherty
- License: mit
- Created: 2015-05-10T05:07:37.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-08-02T15:47:01.000Z (over 6 years ago)
- Last Synced: 2024-10-04T22:06:29.815Z (about 1 month ago)
- Topics: eslint, eslint-config, eslint-configs, eslint-rules, xo
- Language: JavaScript
- Homepage:
- Size: 145 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# eslint-config-bdougherty
> ESLint [shareable config](http://eslint.org/docs/developer-guide/shareable-configs.html) for my personal projects.
## Install
```bash
yarn add eslint-config-bdougherty
```## Usage
This config contains a couple rule overrides and is primarily designed to be used with [XO](https://github.com/sindresorhus/xo). Add the following to package.json:
```json
{
"xo": {
"extends": "bdougherty"
}
}
```This package also exposes other configs that can be used for specific types of projects.
[`bdougherty/browser`](browser.js) for browser-based projects:
```json
{
"xo": {
"extends": "bdougherty/browser"
}
}
```[`bdougherty/vue`](vue.js) for Vue.js-based projects:
```json
{
"xo": {
"extends": "bdougherty/vue",
"extensions": [
"vue"
]
}
}
```[`bdougherty/nuxt`](nuxt.js) for Nuxt.js-based projects:
```json
{
"xo": {
"extends": "bdougherty/nuxt",
"extensions": [
"vue"
]
}
}
```[`bdougherty/svelte`](svelte.js) for Svelte-based projects:
```json
{
"xo": {
"extends": "bdougherty/svelte",
"extensions": [
"html"
]
}
}
```[`bdougherty/sapper`](sapper.js) for Sapper-based projects:
```json
{
"xo": {
"extends": "bdougherty/sapper",
"extensions": [
"html"
]
}
}
```> Note: make sure to add the extensions config for both Vue.js and Nuxt.js projects if using single-file components.
## License
MIT © [Brad Dougherty](https://brad.is)