# eslint-plugin-codeallday

> Preferred eslint configuration of Code All Day LLC

Latest version **1.0.2** (published 2019-01-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-codeallday
pnpm add eslint-plugin-codeallday
yarn add eslint-plugin-codeallday
bun add eslint-plugin-codeallday
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-01-31 |
| First published | 2019-01-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 5 |
| Unpacked size | 8.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Katie Gengler |
| Maintainers | katiegengler |
| Keywords | eslint, eslintplugin, eslint-plugin |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-codeallday
- npm.io page: https://npm.io/package/eslint-plugin-codeallday

## Dependencies (5)

- [prettier](https://npm.io/package/prettier.md) ^1.15.2
- [requireindex](https://npm.io/package/requireindex.md) ~1.1.0
- [eslint-plugin-ember](https://npm.io/package/eslint-plugin-ember.md) ^6.0.0
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^3.3.0
- [eslint-plugin-prettier](https://npm.io/package/eslint-plugin-prettier.md) ^3.0.0

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2019-01-31
- 1.0.1 — 2019-01-03
- 1.0.0 — 2019-01-03

## README

# eslint-plugin-codeallday

Preferred ESlint configuration of [Code All Day LLC](https://www.codeallday.com)

## Installation

You'll first need to install [ESLint](http://eslint.org):

```
$ yarn add --dev eslint
```

Next, install `eslint-plugin-codeallday`:

```
$ yarn add --dev eslint-plugin-codeallday
```

**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-codeallday` globally.

## Usage

Add `codeallday` to the plugins section of your `.eslintrc.js` configuration file.

```javascript
// .eslintrc.js
module.exports = {
  plugins: [
    'codeallday'
  ],
  extends: [
    'plugin:codeallday/recommended'
  ],
  rules: {
    // override rules' settings here
  }
}
```

The [plugin:codeallday/recommended](lib/config/recommended.js) configuration provides our general recommendations 
for ESlint config, including formatting rules. It extends `eslint:recommended`.

## Usage in an Ember Project

This plugin provides a configuration specific to an Ember project: [plugin:codeallday/ember](lib/config/ember.js). 
This configuration extends from [`eslint-plugin-ember`](https://github.com/ember-cli/eslint-plugin-ember)'s recommended configuration.
It also includes the `codeallday/recommended` config and overrides some rules for `tests/` and `mirage/` directories in Ember projects.

```javascript
// .eslintrc.js
module.exports = {
  plugins: [
    'codeallday'
  ],
  extends: [
    'plugin:codeallday/ember'
  ],
  rules: {
    // override rules' settings here
  }
}
```

## Using [`Prettier`](https://github.com/prettier/prettier)

To use Prettier in place of the formatting rules provided by this plugin, additionally extend from [plugin:codeallday/ember](lib/config/prettier.js).
This configuration uses [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) with an opinionated config. It also overrides some
formatting rules that do not conflict with `prettier`. The formatting rules that do conflict are disabled by `eslint-config-prettier`

```javascript
// .eslintrc.js
module.exports = {
  plugins: [
    'codeallday'
  ],
  extends: [
    'plugin:codeallday/recommended',
    'plugin:codeallday/prettier'
  ],
  rules: {
    // override rules' settings here
  }
}
```

To ensure your tooling has the correct `prettier` options, add the following `.prettierrc`:

```
{
  "trailingComma": "es5",
  "singleQuote": true,
  "arrowParens": "always"
}
```

---
_Source: https://npm.io/package/eslint-plugin-codeallday · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
