JSPM

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

Integrated ESLint, Prettier, and Husky configuration package for standardizing code style and pre-commit checks across company projects.

Package Exports

  • eslint-config-secretstache
  • eslint-config-secretstache/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-secretstache) 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-secretstache

Integrated ESLint, Prettier configuration package for standardizing code style across company projects

Install

Run the command below to install the package:

yarn add eslint-config-secretstache eslint@">=7.32.0 <9.0.0" eslint-plugin-prettier@^5.1.2 eslint-config-prettier@^9.1.0 prettier@^3.1.1 @roots/bud-eslint@^6.17.0 @roots/eslint-config@^6.16.1 --dev

Usage

Update config in package.json:

   "eslintConfig": {
    "extends": "eslint-config-secretstache"
  }

Installing Husky

Install lint-staged and husky by running just one command:

npx mrm@2 lint-staged

Update config in package.json:

"scripts": {
    //other scripts omitted
    "lint:fix": "eslint --fix --color",
    "format": "prettier --write"
},

  "lint-staged": {
    "resources/**/*.{js,json}": [
      "npm run lint:fix"
    ],
    "resources/**/*.{js,json,css,scss}": [
      "npm run format"
    ]
  },