0.0.9 • Published 1 year ago

@mbourmaud849/sfs-config v0.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@dunder-mifflin/eslint-config-prettier

A shareable ESLint, Prettier, and various others config.

Installation

npm install --save-dev @dunder-mifflin/eslint-config-prettier
  • package.json scripts should be updated to include the following:
{
  "scripts": {
    ...
    "lint": "eslint .",
    "lint:fix": "eslint . --fix",
    "prettier:fix": "prettier --write ."
  }
}
  • .prettierignore and .eslintignore should also be replaced

Usage

Add the following to your .eslintrc:

{
  "extends": ["@dunder-mifflin/eslint-config-prettier/.eslintrc"]
}

Add the following to your .prettierrc.js:

module.exports = {
  ...require('@dunder-mifflin/eslint-config-prettier').prettier,
};

Step by step

graph LR
A[Install npm package] --> B[Update .eslintrc]
A --> C[Update .prettierrc.js]
B --> D[npm run lint]
C --> E[npm run prettier:fix]

Notes

Nice to have

  • tsconfig extends
  • husky & pre-* scripts
  • package.json extends ?
0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago