JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2176
  • Score
    100M100P100Q105724F
  • License MIT

eslint config that feels good; based on standardjs

Package Exports

  • eslint-config-nicenice
  • eslint-config-nicenice/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-config-nicenice) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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" />
)

Try it out here

yarn
node_modules/.bin/eslint ./test

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-parser @babel/core eslint-config-standard eslint-config-standard-jsx eslint-plugin-import eslint-plugin-node eslint-plugin-promise eslint-plugin-react eslint-plugin-no-only-tests eslint-plugin-svg-jsx eslint-plugin-n eslint-config-prettier eslint-plugin-prettier

Create a .eslintrc.js file:

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

so_good