mirror of
https://github.com/trailbaseio/trailbase.git
synced 2026-01-12 04:40:33 -06:00
This is only to avoid accidentally leaking any secrets from early development especially in the light of short-sha attacks.
29 lines
744 B
JavaScript
29 lines
744 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"],
|
|
},
|
|
{
|
|
files: ["scripts/*.{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 }],
|
|
},
|
|
},
|
|
];
|