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

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

Spencer Lab's ESLint configuration
https://github.com/spencerlabs/eslint-config

eslint prettier

Last synced: 2 months ago
JSON representation

Spencer Lab's ESLint configuration

Awesome Lists containing this project

README

        

# @spencerlabs/eslint-config

ESLint configuration for Spencer Creative

## Install

```bash
# npm
npm i -D @spencerlabs/eslint-config

# yarn
yarn add -D @spencerlabs/eslint-config
```

## Add to ESLint Config

```js
{
"extends": [
// ... other configs
"@spencerlabs/eslint-config"
],
}
```

## Add Prettier Config

Create a `prettier.config.js` file. This helps avoid ESLint and Prettier conflicts.

```js
/** @type {import('prettier').RequiredOptions} */
module.exports = {
arrowParens: 'always',
bracketSpacing: true,
tabWidth: 2,
printWidth: 80,
semi: false,
singleQuote: true,
trailingComma: 'es5',
}
```