mirror of
https://github.com/MODSetter/SurfSense.git
synced 2025-09-02 10:39:13 +00:00
35 lines
654 B
JavaScript
35 lines
654 B
JavaScript
const { resolve } = require("node:path");
|
|
|
|
const project = resolve(process.cwd(), "tsconfig.json");
|
|
|
|
/** @type {import("eslint").Linter.Config} */
|
|
module.exports = {
|
|
extends: [
|
|
"eslint:recommended",
|
|
"prettier",
|
|
require.resolve("@vercel/style-guide/eslint/next"),
|
|
"turbo",
|
|
],
|
|
globals: {
|
|
React: true,
|
|
JSX: true,
|
|
},
|
|
env: {
|
|
node: true,
|
|
browser: true,
|
|
},
|
|
plugins: ["only-warn"],
|
|
settings: {
|
|
"import/resolver": {
|
|
typescript: {
|
|
project,
|
|
},
|
|
},
|
|
},
|
|
ignorePatterns: [
|
|
// Ignore dotfiles
|
|
".*.js",
|
|
"node_modules/",
|
|
],
|
|
overrides: [{ files: ["*.js?(x)", "*.ts?(x)"] }],
|
|
};
|