JSPM

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

Shiny code with this ESLint and Prettier config

Package Exports

  • eslint-config-shiny-code
  • eslint-config-shiny-code/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-shiny-code) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

✨Shiny code config

My sharable settings for Eslint and Prettier, based on the amazing work done by Wes Bos.

Installation

  1. Install the package
npm install eslint-config-shiny-code
  1. Add the config to package.json (or in an eslintrc file)
"eslintConfig": {
  "extends": ["shiny-code"]
},
"scripts": {
  "lint": "eslint .",
  "fix": "eslint . --fix"
},

If you want to override or extend any rules, add the rules: {} beneath the extends in your Eslint config.

  1. Add a tsconfig.json, this can be copied from this repository or just be an empty {} object.
  2. Bonus: enable automatic eslint running in the IDE for the project.

Specific configs

React

"extends": ["shiny-code/react"]

NextJS

"extends": ["shiny-code/react-nextjs"]

React Native

"extends": ["shiny-code/react-native"]