UNPKG

c4i-eslint-react

Version:
34 lines (31 loc) 642 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"], globals: { React: true, JSX: true, }, env: { browser: 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)"] }, ], };