Agent skills

Prettier
eslint
shopify
This commit is contained in:
2026-09-06 06:38:04 +00:00
parent ba93b829c4
commit 328a1a23e0
177 changed files with 240971 additions and 868 deletions
+69 -15
View File
@@ -1,16 +1,70 @@
import { dirname } from "path";
import { fileURLToPath } from "url";
import { FlatCompat } from "@eslint/eslintrc";
import js from "@eslint/js";
import globals from "globals";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import tseslint from "typescript-eslint";
import pluginRouter from "@tanstack/eslint-plugin-router";
import eslintConfigPrettier from "eslint-config-prettier";
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
});
const eslintConfig = [
...compat.extends("next/core-web-vitals", "next/typescript"),
];
export default eslintConfig;
export default tseslint.config(
{
ignores: [
".agents/**",
"ansible/**",
"dist/**",
".tanstack/**",
".output/**",
".vinxi/**",
".pb/**",
"node_modules/**",
"public/**",
"src/routeTree.gen.ts",
],
},
js.configs.recommended,
...tseslint.configs.recommended,
...pluginRouter.configs["flat/recommended"],
{
files: ["**/*.{js,mjs,cjs}"],
languageOptions: {
globals: {
...globals.node,
},
},
},
{
files: ["src/**/*.{ts,tsx}"],
languageOptions: {
ecmaVersion: 2022,
globals: globals.browser,
},
plugins: {
"react-hooks": reactHooks,
"react-refresh": reactRefresh,
},
rules: {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
},
],
},
},
{
// Route files export `Route` alongside components for TanStack Start / Router
files: ["src/app/**/*.{ts,tsx}"],
rules: {
"react-refresh/only-export-components": "off",
},
},
eslintConfigPrettier,
);