@spencerlabs/eslint-config
v1.0.0
Published
ESLint configuration for Spencer Creative
Downloads
2
Maintainers
Readme
@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',
}