mirror of
https://github.com/makeplane/plane.git
synced 2025-12-17 04:17:57 +01:00
53 lines
1.3 KiB
JavaScript
53 lines
1.3 KiB
JavaScript
|
|
import { resolve } from "node:path";
|
||
|
|
import { fileURLToPath } from "node:url";
|
||
|
|
|
||
|
|
const __filename = fileURLToPath(import.meta.url);
|
||
|
|
const __dirname = resolve(__filename, "..");
|
||
|
|
|
||
|
|
/** @type {import("eslint").Linter.FlatConfig[]} */
|
||
|
|
export default [
|
||
|
|
{
|
||
|
|
ignores: [
|
||
|
|
"**/node_modules/**",
|
||
|
|
"**/dist/**",
|
||
|
|
"**/.next/**",
|
||
|
|
"**/build/**",
|
||
|
|
"**/coverage/**",
|
||
|
|
"**/*.config.js",
|
||
|
|
"**/*.config.ts",
|
||
|
|
],
|
||
|
|
},
|
||
|
|
{
|
||
|
|
files: ["**/*.{js,jsx,ts,tsx}"],
|
||
|
|
languageOptions: {
|
||
|
|
ecmaVersion: "latest",
|
||
|
|
sourceType: "module",
|
||
|
|
globals: {
|
||
|
|
React: "readonly",
|
||
|
|
JSX: "readonly",
|
||
|
|
console: "readonly",
|
||
|
|
process: "readonly",
|
||
|
|
Buffer: "readonly",
|
||
|
|
__dirname: "readonly",
|
||
|
|
__filename: "readonly",
|
||
|
|
global: "readonly",
|
||
|
|
module: "readonly",
|
||
|
|
require: "readonly",
|
||
|
|
exports: "readonly",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
rules: {
|
||
|
|
"no-useless-escape": "off",
|
||
|
|
"prefer-const": "error",
|
||
|
|
"no-irregular-whitespace": "error",
|
||
|
|
"no-trailing-spaces": "error",
|
||
|
|
"no-duplicate-imports": "error",
|
||
|
|
"no-useless-catch": "warn",
|
||
|
|
"no-case-declarations": "error",
|
||
|
|
"no-undef": "error",
|
||
|
|
"no-unreachable": "error",
|
||
|
|
"arrow-body-style": ["error", "as-needed"],
|
||
|
|
},
|
||
|
|
},
|
||
|
|
];
|