@open-turo/eslint-config-typescript

16.0.0 • Public • Published

@open-turo/eslint-config-typescript

Turo eslint configuration for typescript.

Release Tests pass/fail License Contributions welcome CI semantic-release: angular Conventional commits Join us!

Usage

Install the package and all of its peer dependencies:

npx install-peerdeps --dev @open-turo/eslint-config-typescript

eslint.config.js (requires eslint>=v8.23.0)

const turoConfig = require("@open-turo/eslint-config-typescript");

module.exports = turoConfig();

The turoConfig function accepts an options object with the following properties:

  • allowModules - List of modules to allow in the n/no-unpublished-import rule
  • ignores - List of patterns to ignore. Defaults to ["@jest/globals", "nock"]
  • typescript - Whether to include typescript rules. Defaults to true
  • ecmaVersion - The ECMAScript version to use. Defaults to latest

.eslintrc (legacy example)

{
  "extends": "@open-turo/eslint-config-typescript/recommended"],
}

You will have to set the ESLINT_USE_FLAT_CONFIG env var to true.

Development

Install pre-commit and the commit hooks:

pre-commit install
pre-commit install --hook-type commit-msg

Get 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @open-turo/eslint-config-typescript

Weekly Downloads

8,851

Version

16.0.0

License

MIT

Unpacked Size

207 kB

Total Files

30

Last publish

Collaborators

  • open-turo