Keep only example workflows in default/, move site-specific YAMLs to gitignored local/, remove the duplicate get-current-time plugin install, document personal plugins, clarify PM2 ecosystem usage, add shared Vitest and web ESLint, and extract OpsStatusCard for ops cards. Co-authored-by: Cursor <cursoragent@cursor.com>
42 lines
1002 B
JavaScript
42 lines
1002 B
JavaScript
import js from "@eslint/js";
|
|
import reactHooks from "eslint-plugin-react-hooks";
|
|
import jsxA11y from "eslint-plugin-jsx-a11y";
|
|
import globals from "globals";
|
|
|
|
export default [
|
|
{ ignores: ["dist/**"] },
|
|
{
|
|
files: ["src/**/*.{js,jsx}"],
|
|
languageOptions: {
|
|
ecmaVersion: "latest",
|
|
sourceType: "module",
|
|
globals: {
|
|
...globals.browser,
|
|
},
|
|
parserOptions: {
|
|
ecmaFeatures: { jsx: true },
|
|
},
|
|
},
|
|
plugins: {
|
|
"react-hooks": reactHooks,
|
|
"jsx-a11y": jsxA11y,
|
|
},
|
|
rules: {
|
|
...js.configs.recommended.rules,
|
|
"react-hooks/rules-of-hooks": "error",
|
|
"react-hooks/exhaustive-deps": "warn",
|
|
"jsx-a11y/alt-text": "warn",
|
|
"jsx-a11y/anchor-has-content": "warn",
|
|
"jsx-a11y/aria-role": "warn",
|
|
"no-unused-vars": [
|
|
"warn",
|
|
{
|
|
argsIgnorePattern: "^_",
|
|
varsIgnorePattern: "^([A-Z_]|Lu)",
|
|
caughtErrorsIgnorePattern: "^_",
|
|
},
|
|
],
|
|
},
|
|
},
|
|
];
|