This package contains rules for Prettier and ESLint.
Install this package using your package manager of choice.
npm install --save-dev @ekdennisek/code-standard
Enable the Prettier rules by adding a prettier
line in your package.json
.
"prettier": "@ekdennisek/code-standard/prettier"
Install the ESLint v8 (v9 support will be added as soon as typescript-eslint
adds it) peer dependency.
npm install --save-dev eslint@^9.0.0
Create an `eslint.config.mts´ in your root directory and include this package.
// eslint.config.mts
import config from '@ekdennisek/code-standard/eslint';
export default [
...config,
]
Then install jiti
(required for TS configs) and use ESLint with a flag for TS configs.
npm install --save-dev jiti
npx eslint --flag unstable_ts_config