Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/carpages/eslint-config-carpages

A shareable Eslint config for use by Carpages.ca developers.
https://github.com/carpages/eslint-config-carpages

eslint eslint-config javascript

Last synced: about 21 hours ago
JSON representation

A shareable Eslint config for use by Carpages.ca developers.

Awesome Lists containing this project

README

        

# Carpages Eslint Base Configuration

## Installation
**NPM**
```shell
npm install --save-dev eslint eslint-config-carpages
```
**Yarn**
```shell
yarn add --dev eslint eslint-config-carpages
```

## Usage
`.eslintrc.js` - If you prefer JS
```js
module.exports = {
// ...
extends: ['carpages']
// ...
}
```

**OR**

`.eslintrc.json` - If you prefer JSON
```json
{
"extends": ["carpages"]
}
```

**OR**

`.eslintrc` - If you prefer JSON without extension
```json
{
"extends": ["carpages"]
}
```

### A base config for React development is also included
```js
module.exports = {
// ...
extends: ['carpages/react']
// ...
}
```