create-eth
Version:
Create a Scaffold-ETH-2 app
38 lines (35 loc) • 980 B
JavaScript
// @ts-check
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
{
languageOptions: {
parserOptions: {
project: "./tsconfig.json",
},
},
rules: {
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-argument": "off",
},
},
{
files: ["**/*.js"],
...tseslint.configs.disableTypeChecked,
},
{
ignores: [".changeset", ".yarn", "bin", "dist", "templates", "externalExtensions"],
},
eslintPluginPrettierRecommended,
{
rules: {
"prettier/prettier": ["warn", { endOfLine: "auto" }],
},
},
);