24 lines
559 B
TypeScript
24 lines
559 B
TypeScript
import js from "@eslint/js";
|
|
import globals from "globals";
|
|
import tseslint from "typescript-eslint";
|
|
import solid from "eslint-plugin-solid/configs/typescript";
|
|
import * as tsParser from "@typescript-eslint/parser";
|
|
|
|
export default [
|
|
{
|
|
ignores: ["**/dist/**", "**/node_modules/**", "**/.tmp/**"],
|
|
},
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
files: ["**/*.{ts,tsx}"],
|
|
...solid,
|
|
languageOptions: {
|
|
parser: tsParser,
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.node,
|
|
},
|
|
},
|
|
},
|
|
];
|