# @creopark/eslint-config

> A collection of linting rules

Latest version **0.0.0** (published 2018-07-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install @creopark/eslint-config
pnpm add @creopark/eslint-config
yarn add @creopark/eslint-config
bun add @creopark/eslint-config
```

## 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.0 |
| Published | 2018-07-12 |
| First published | 2018-07-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 65.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Håvard Geithus |
| Maintainers | havardge |
| Keywords | eslint |

## Links

- npm: https://www.npmjs.com/package/@creopark/eslint-config
- npm.io page: https://npm.io/package/@creopark/eslint-config

## 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.0 (latest) — 2018-07-12

## README

# eslint-config

A shared [ESLint](http://eslint.org/) configuration for the Creopark team.

This configuration is a fork of [Miles' awesome eslint configuration](https://github.com/miles-no/eslint-config-webteam).

If you want something that is being maintained, use that repository instead.

## Installation

Get started by running this command in the root of your project:

```sh
npm install --save-dev eslint eslint-plugin-import
```
Add in your package.json file under devDependencies
```
"@creopark/eslint-config": "^1.0.0"
```
and run npm i

Then add an `.eslintrc` file to the root of your project with the following content

```json
{
  "extends": [
    "@creopark/eslint-config"
  ]
}
```

NOTE: `eslint` plugins are available for most modern text editors, like Atom, WebStorm, etc

## React Projects

For projects using React, add the following to your `.eslintrc` file

```json
{
  "extends": [
    "@creopark/eslint-config",
    "@creopark/eslint-config/rules/react"
  ]
}
```
Then install [`eslint-plugin-react`](https://github.com/yannickcr/eslint-plugin-react) and  [`eslint-plugin-a11y`](https://www.npmjs.com/package/eslint-plugin-jsx-a11y):

```sh
npm install --save-dev eslint-plugin-react eslint-plugin-jsx-a11y
```
This gives your linting of React with jsx and some accessibility linting for jsx.

NOTE: You will have to instruct your IDE to lint jsx file extensions (e.g. with Atom, install the atom-react package) or use the eslint CLI:

```sh
  npm i -g eslint
  eslint . --ext=.js,.jsx
```

## Override rules

It is possible to override rules on project level.

```json
{
  "extends": [
    "@creopark/eslint-config",
    "@creopark/eslint-config/rules/react"
  ],
  "rules": {
      "max-len": ["error", 80],
    }
}
```

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