@open-turo/eslint-config-typescript
v23.0.4
Published
Turo eslint configuration for typescript
Readme
@open-turo/eslint-config-typescript
Turo eslint configuration for typescript.
Usage
Install the package and all of its peer dependencies:
npx install-peerdeps --dev @open-turo/eslint-config-typescripteslint.config.js (requires eslint>=v8.23.0)
import turoConfig from "@open-turo/eslint-config-typescript";
export default turoConfig();The turoConfig function accepts an options object with the following properties:
allowModules- List of modules to allow in then/no-unpublished-importrule. Defaults to["@jest/globals", "nock"]for Jest or["nock"]for Vitestignores- List of patterns to ignoretypescript- Whether to include typescript rules. Defaults totrueecmaVersion- The ECMAScript version to use. Defaults tolatesttestFramework- Test framework to use:"jest"(default) or"vitest"
Vitest Configuration Example
import turoConfig from "@open-turo/eslint-config-typescript";
export default turoConfig({
testFramework: "vitest",
});Development
Install pre-commit and the commit hooks:
pre-commit install
pre-commit install --hook-type commit-msgGet Help
Please review Issues, post new Issues against this repository as needed.
Contributions
Please see here for guidelines on how to contribute to this project.
