Neophobe Plebeian Mumpsimus
Wondering what’s next for npm?Check out our public roadmap! »

eslint-config-nicenice

2.0.0 • Public • Published

eslint-config-nicenice

This is standard + standard-jsx with a couple overrides:

{
  'jsx-quotes': ['error', 'prefer-double'],
  'object-curly-spacing': ['error', 'always'],
  'comma-dangle': ['error', 'always-multiline'],
}

So

// Dangling commas on multiline things
const a = {
  omg: 1,
}
 
// Spaces around curleys
const b = { wowza: true }
 
// JSX quotes are double quotes.
const Cat = () => (
  <input type="text" placeholder="Tell me about your cat" />
)

Use

Install the thing

yarn add --dev eslint-config-nicenice

Install many dependencies because eslint sucks at them

yarn add --dev eslint-config-nicenice
 
# add a billion dependencies because eslint doesnt handle allow them to be wrapped up in this package. Sorry 
yarn add --dev eslint babel-eslint eslint-config-standard eslint-config-standard-jsx eslint-plugin-import eslint-plugin-node eslint-plugin-promise eslint-plugin-react eslint-plugin-standard eslint-plugin-no-only-tests

Create a .eslintrc.js file:

module.exports = {
  extends: ['nicenice']
}

so_good

Install

npm i eslint-config-nicenice

DownloadsWeekly Downloads

127

Version

2.0.0

License

MIT

Unpacked Size

68.3 kB

Total Files

6

Last publish

Collaborators

  • avatar