eslint-config-sensible-prettier-typescript
v1.3.0
Published
Sensible default eslint rules and prettier rules for Typescript projects
Downloads
117
Maintainers
Readme
eslint-config-sensible-prettier-typescript
Sensible default eslint rules and prettier rules for Typescript projects
Install
npm i -D eslint-config-sensible-prettier-typescript
Or you can get it installed through handy-common-utils/dev-dependencies:
npm i -D @handy-common-utils/dev-dependencies-mocha
npm i -D @handy-common-utils/dev-dependencies-jest
Usage
In your .eslintrc.js
:
/* eslint-disable unicorn/prefer-module, node/no-extraneous-require, unicorn/prefer-module */
require('@rushstack/eslint-patch/modern-module-resolution');
module.exports = {
extends: [
'sensible-prettier-typescript',
],
parserOptions: { tsconfigRootDir: __dirname },
// place your customisation here
};
Or in your .eslintrc.json
:
{
"extends": "sensible-prettier-typescript"
}
And in your prettier.config.js
or .prettierrc.js
:
const config = require('eslint-config-sensible-prettier-typescript/prettier.config');
module.exports = {
...config,
// place your customisation here
};
Develop
Upgrade all dependencies:
npx npm-check-updates -u && npm install && npm audit fix