2024-07-04 21:46:29 -07:00
|
|
|
const { resolve } = require("node:path");
|
|
|
|
|
|
|
|
|
|
const project = resolve(process.cwd(), "tsconfig.json");
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
|
extends: [
|
2024-07-09 15:17:38 -07:00
|
|
|
'eslint:recommended',
|
|
|
|
|
'plugin:@typescript-eslint/recommended',
|
|
|
|
|
'plugin:prettier/recommended',
|
|
|
|
|
'prettier',
|
|
|
|
|
'plugin:import/recommended',
|
|
|
|
|
'plugin:import/typescript',
|
|
|
|
|
'turbo',
|
|
|
|
|
],
|
2024-07-04 21:46:29 -07:00
|
|
|
parserOptions: {
|
|
|
|
|
project,
|
|
|
|
|
},
|
|
|
|
|
globals: {
|
|
|
|
|
React: true,
|
|
|
|
|
JSX: true,
|
|
|
|
|
},
|
|
|
|
|
settings: {
|
|
|
|
|
"import/resolver": {
|
|
|
|
|
typescript: {
|
|
|
|
|
project,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
ignorePatterns: ["node_modules/", "dist/"],
|
|
|
|
|
};
|