thunderhub/eslint.config.js
Anthony Potdevin d94e7c341c
feat: big cleanup and refactor (#644)
* feat: big cleanup and refactor

* chore: fix config

* chore: security stuff

* chore: dep bumps

* chore: more version bumps

* chore: move to lucide icons

* chore: change slider

* chore: more stuff

* chore: move component to shadcn

* chore: remove numeral

* chore: remove night theme

* chore: move to sse

* chore: cleanup deps

* feat!: remove lnmarkets integration

* feat!: remove rebalancing flow

* chore: move to svg progress bar

* chore: new toast lib

* chore!: remove accounting report tool

* chore: dependency updates

* chore: donate button changes

* chore: cleanup file

* chore: cleanup

* ci: build changes

* fix: routing
2026-02-19 16:16:23 -05:00

71 lines
1.7 KiB
JavaScript

const {
defineConfig,
globalIgnores,
} = require("eslint/config");
const tsParser = require("@typescript-eslint/parser");
const typescriptEslintEslintPlugin = require("@typescript-eslint/eslint-plugin");
const globals = require("globals");
const js = require("@eslint/js");
const {
FlatCompat,
} = require("@eslint/eslintrc");
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});
module.exports = defineConfig([{
languageOptions: {
parser: tsParser,
sourceType: "module",
parserOptions: {
project: "tsconfig.json",
},
globals: {
...globals.node,
...globals.jest,
},
},
plugins: {
"@typescript-eslint": typescriptEslintEslintPlugin,
},
extends: compat.extends(
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier",
),
rules: {
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "error",
},
}, {
files: ["src/client/**/*.ts", "src/client/**/*.tsx"],
languageOptions: {
parserOptions: {
project: "src/client/tsconfig.json",
},
globals: {
...globals.browser,
...globals.node,
...globals.jest,
},
},
}, globalIgnores([
"**/node_modules",
"**/dist",
"**/*.generated.tsx",
])]);