# eslint-config-styled

> ESLint shareable config for JavaScript Styled.

Latest version **0.0.2** (published 2017-08-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-config-styled
pnpm add eslint-config-styled
yarn add eslint-config-styled
bun add eslint-config-styled
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2017-08-09 |
| First published | 2017-01-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | CJ Patoilo |
| Maintainers | cjpatoilo |
| Keywords | JavaScript Styled, check, checker, checker, code, code checker, code linter, code standards, code style, code style, enforce, eslint, eslintconfig, hint, jscs, jshint, jslint, lint, linter, quality, simple, standard, strict, style, styled, validate, verify |

## Links

- npm: https://www.npmjs.com/package/eslint-config-styled
- Repository: https://github.com/cjpatoilo/eslint-config-styled
- Issues: https://github.com/cjpatoilo/eslint-config-styled/issues
- npm.io page: https://npm.io/package/eslint-config-styled

## Dependencies (3)

- [eslint](https://npm.io/package/eslint.md) ^4.4.1
- [temp-write](https://npm.io/package/temp-write.md) ^3.3.0
- [is-plain-obj](https://npm.io/package/is-plain-obj.md) ^1.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
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2017-08-09
- 0.0.1 — 2017-08-09
- 0.0.0 — 2017-01-02

## README

# JavaScript Styled

> ESLint shareable config for JavaScript Styled.

[![Travis Status](https://travis-ci.org/cjpatoilo/eslint-config-styled.svg?branch=master)](https://travis-ci.org/cjpatoilo/eslint-config-styled?branch=master)
[![AppVeyor Status](https://ci.appveyor.com/api/projects/status/hldpjyx1g99g3748?svg=true)](https://ci.appveyor.com/project/cjpatoilo/eslint-config-styled)
[![Codacy Status](https://img.shields.io/codacy/grade/d8600d0317ef470285aaa93c4438e163/master.svg)](https://www.codacy.com/app/cjpatoilo/eslint-config-styled/dashboard)
[![Dependencies Status](https://david-dm.org/cjpatoilo/eslint-config-styled/status.svg)](https://david-dm.org/cjpatoilo/eslint-config-styled)
[![Version Status](https://badge.fury.io/js/eslint-config-styled.svg)](https://www.npmjs.com/package/eslint-config-styled)
[![Download Status](https://img.shields.io/npm/dt/eslint-config-styled.svg)](https://www.npmjs.com/package/eslint-config-styled)
[![Gitter Chat](https://img.shields.io/badge/gitter-join_the_chat-4cc61e.svg)](https://gitter.im/cjpatoilo/eslint-config-styled)


## Install

```
$ npm install --save-dev eslint-config-styled
```


## Usage

Add some ESLint config to your `.eslintrc`:

```
{
	"extends": "styled"
}
```

Or to command line options:

```
eslint --config=styled
```

Or to `package.json`:

```
{
	"name": "my-project",
	"eslintConfig": {
			"extends": "styled"
	}
}
```


## Rules

- No semicolons.
- No unused variables.
- Use tab for indentation.
- Use `===` instead of `==`.
- Use single quotes for strings except to avoid escaping.
- Add a space after keywords.
- Add a space before a function declaration's parentheses.
- Infix operators must be spaced.
- Commas should have a space after them.
- Keep else statements on the same line as their curly braces.
- For multi-line if statements, use curly braces.
- Always handle the `err` function parameter.
- Always prefix browser globals with `window.`.
- Multiple blank lines not allowed.
- For the ternary operator in a multi-line setting, place `?` and `:` on their own lines.
- For var declarations, write each declaration in its own statement.
- Wrap conditional assignments with additional parentheses. This makes it clear that the expression is intentionally an assignment (`=`) rather than a typo for equality (`===`).

*NOTE: The best way to learn about that is to just install it and give it a try on your code.*


## Contributing

Want to contribute? Follow these [recommendations](https://github.com/cjpatoilo/eslint-config-styled/blob/master/.github/contributing.md).


## License

Designed with ♥ by [CJ Patoilo](https://twitter.com/cjpatoilo). Licensed under the [MIT License](https://cjpatoilo.mit-license.org).

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