1.0.0 • Published 1 year ago

@spencerlabs/eslint-config v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@spencerlabs/eslint-config

ESLint configuration for Spencer Creative

Install

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

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

Add to ESLint Config

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

Add Prettier Config

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

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