mirror of
https://github.com/kyantech/Palmr.git
synced 2025-10-23 06:11:58 +00:00
25 lines
773 B
JavaScript
25 lines
773 B
JavaScript
import pluginJs from "@eslint/js";
|
|
import eslintConfigPrettier from "eslint-config-prettier";
|
|
import importPlugin from "eslint-plugin-import";
|
|
import globals from "globals";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
/** @type {import('eslint').Linter.Config[]} */
|
|
export default [
|
|
{ files: ["**/*.{js,mjs,cjs,ts}"] },
|
|
{ languageOptions: { globals: globals.browser } },
|
|
pluginJs.configs.recommended,
|
|
importPlugin.flatConfigs.recommended,
|
|
eslintConfigPrettier,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
rules: {
|
|
"import/no-unresolved": "off",
|
|
"import/no-named-as-default": "off",
|
|
"@typescript-eslint/no-unused-vars": "warn",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/no-require-imports": "off",
|
|
},
|
|
},
|
|
];
|