Turo eslint configuration for typescript.
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 then/no-unpublished-import
rule -
ignores
- List of patterns to ignore. Defaults to["@jest/globals", "nock"]
-
typescript
- Whether to include typescript rules. Defaults totrue
-
ecmaVersion
- The ECMAScript version to use. Defaults tolatest
.eslintrc (legacy example)
You will have to set the ESLINT_USE_FLAT_CONFIG
env var to true.
Install pre-commit and the commit hooks:
pre-commit install
pre-commit install --hook-type commit-msg
Please review Issues, post new Issues against this repository as needed.
Please see here for guidelines on how to contribute to this project.