mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-23 13:48:58 -05:00
31c3fac7f5
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
35 lines
804 B
JavaScript
35 lines
804 B
JavaScript
const { resolve } = require("node:path");
|
|
|
|
const project = resolve(process.cwd(), "tsconfig.json");
|
|
|
|
/*
|
|
* This is a custom ESLint configuration for use with
|
|
* typescript packages.
|
|
*
|
|
* This config extends the Vercel Engineering Style Guide.
|
|
* For more information, see https://github.com/vercel/style-guide
|
|
*
|
|
*/
|
|
|
|
module.exports = {
|
|
extends: ["@vercel/style-guide/eslint/node", "@vercel/style-guide/eslint/typescript"].map(require.resolve),
|
|
parserOptions: {
|
|
project,
|
|
},
|
|
globals: {
|
|
React: true,
|
|
JSX: true,
|
|
},
|
|
settings: {
|
|
"import/resolver": {
|
|
typescript: {
|
|
project,
|
|
},
|
|
node: {
|
|
extensions: [".mjs", ".js", ".jsx", ".ts", ".tsx"],
|
|
},
|
|
},
|
|
},
|
|
ignorePatterns: ["node_modules/", "dist/", "*.config.js", "*.config.ts", "*.d.ts"],
|
|
};
|