Skip to content

ekdennisek/code-standard

Repository files navigation

Shared JavaScript/TypeScript rules

This package contains rules for Prettier and ESLint.

Installation

Install this package using your package manager of choice.

npm install --save-dev @ekdennisek/code-standard

Prettier

Enable the Prettier rules by adding a prettier line in your package.json.

"prettier": "@ekdennisek/code-standard/prettier"

ESLint

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

About

A collection of rules for JavaScript/TypeScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published