mirror of
https://github.com/trailbaseio/trailbase.git
synced 2025-12-31 06:39:44 -06:00
29 lines
754 B
JavaScript
29 lines
754 B
JavaScript
import pluginJs from "@eslint/js";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
export default [
|
|
pluginJs.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
ignores: ["dist/", "node_modules/", "types", "traildepot"],
|
|
},
|
|
{
|
|
files: ["src/*.{js,mjs,cjs,mts,ts,tsx,jsx}"],
|
|
rules: {
|
|
// https://typescript-eslint.io/rules/no-explicit-any/
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
// http://eslint.org/docs/rules/no-unused-vars
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{
|
|
vars: "all",
|
|
args: "after-used",
|
|
argsIgnorePattern: "^_",
|
|
varsIgnorePattern: "^_",
|
|
},
|
|
],
|
|
"no-empty": ["error", { allowEmptyCatch: true }],
|
|
},
|
|
},
|
|
];
|