UNPKG

c4i-eslint-node

Version:
30 lines (27 loc) 589 B
const { resolve } = require("node:path"); const project = resolve(process.cwd(), "tsconfig.json"); /** @type {import("eslint").Linter.Config} */ module.exports = { extends: ["eslint:recommended", "prettier", "eslint-config-turbo"], plugins: ["only-warn"], env: { node: true, }, settings: { "import/resolver": { typescript: { project, }, }, }, ignorePatterns: [ // Ignore dotfiles ".*.js", "node_modules/", "dist/", ], overrides: [ // Force ESLint to detect .tsx files { files: ["*.js?(x)", "*.ts?(x)"] }, ], };