weedops-devtools/linting/.eslintrc.json
Alex 010984d461 Initial commit: Weedops dev tooling
Linting configs (PHPCS, ESLint, Stylelint), Forgejo CI pipeline,
WordPress health check, PHP linter, strain migration tool,
and Docker local dev environment.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 05:55:00 +00:00

30 lines
757 B
JSON

{
"env": {
"browser": true,
"es2021": true,
"jquery": true
},
"extends": [
"eslint:recommended"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"globals": {
"wp": "readonly",
"ajaxurl": "readonly",
"weedopsData": "readonly"
},
"rules": {
"no-console": "warn",
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"prefer-const": "error",
"no-var": "error",
"eqeqeq": ["error", "always"],
"curly": ["error", "all"],
"indent": ["error", "tab"],
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"semi": ["error", "always"]
}
}