Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/niksy/eslint-config-nitpick

ESLint config for my projects.
https://github.com/niksy/eslint-config-nitpick

Last synced: about 2 months ago
JSON representation

ESLint config for my projects.

Awesome Lists containing this project

README

        

# eslint-config-nitpick

[![Build Status][ci-img]][ci]

[ESLint][eslint] config for my projects.

## Install

```sh
npm install eslint@8 eslint-config-nitpick --save-dev
```

## Usage

Add this config to your `.eslintrc`:

```json
{
"extends": [
"eslint-config-nitpick"
]
}
```

If you’re using [presets](#presets), **it’s highly recommended to apply default
preset:**

```json
{
"extends": [
"eslint-config-nitpick",
"eslint-config-nitpick/other-preset"
]
}
```

## Presets

In addition to default preset, there are also specific presets. You can apply
multiple presets with [ESLint `extends` option][eslint-extends].

### Browser

Browser specific rules.

```json
{
"extends": [
"eslint-config-nitpick/browser"
]
}
```

### Testing

Rules for testing frameworks (e.g. Mocha).

```json
{
"extends": [
"eslint-config-nitpick/tests"
]
}
```

### Vue

Vue specific rules.

```json
{
"extends": [
"eslint-config-nitpick/vue"
]
}
```

### TypeScript

TypeScript specific rules.

```json
{
"extends": [
"eslint-config-nitpick/typescript"
]
}
```

## License

MIT © [Ivan Nikolić](http://ivannikolic.com)

[ci]: https://github.com/niksy/eslint-config-nitpick/actions?query=workflow%3ACI
[ci-img]: https://github.com/niksy/eslint-config-nitpick/workflows/CI/badge.svg?branch=master
[eslint]: http://eslint.org/
[eslint-extends]: http://eslint.org/docs/user-guide/configuring#extending-configuration-files
[tc39-proposals]: https://github.com/tc39/proposals#active-proposals