mirror of
https://github.com/MODSetter/SurfSense.git
synced 2025-09-02 02:29:08 +00:00
34 lines
595 B
JavaScript
34 lines
595 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", "turbo"],
|
|
plugins: ["only-warn"],
|
|
globals: {
|
|
React: true,
|
|
JSX: true,
|
|
},
|
|
env: {
|
|
node: true,
|
|
},
|
|
settings: {
|
|
"import/resolver": {
|
|
typescript: {
|
|
project,
|
|
},
|
|
},
|
|
},
|
|
ignorePatterns: [
|
|
// Ignore dotfiles
|
|
".*.js",
|
|
"node_modules/",
|
|
"dist/",
|
|
],
|
|
overrides: [
|
|
{
|
|
files: ["*.js?(x)", "*.ts?(x)"],
|
|
},
|
|
],
|
|
};
|