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
- Host: GitHub
- URL: https://github.com/spencerlabs/eslint-config
- Owner: spencerlabs
- License: mit
- Created: 2022-12-16T11:31:33.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T05:39:45.000Z (over 1 year ago)
- Last Synced: 2025-03-21T03:07:26.276Z (3 months ago)
- Topics: eslint, prettier
- Language: JavaScript
- Homepage:
- Size: 978 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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',
}
```