gaia-project/viewer/.eslintrc.js
Eliott C. bfed8f506e
Merge gaia-lost-fleet: Lost Fleet expansion, sandbox mode, sealed-bid auctions (#328)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Kim <kim.pham.nguyen2@gmail.com>
Co-authored-by: kimphamnguyen <82032729+kimphamnguyen@users.noreply.github.com>
2026-08-25 00:07:03 +02:00

40 lines
1.4 KiB
JavaScript

module.exports = {
root: true,
env: {
node: true,
},
extends: ["plugin:vue/essential", "@vue/typescript/recommended"],
parserOptions: {
ecmaVersion: 2020,
},
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
semi: ["error", "always"],
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unused-vars": "off",
"no-return-assign": "error",
"no-lone-blocks": "error",
"no-unmodified-loop-condition": "error",
"no-useless-return": "error",
"no-invalid-this": "error",
quotes: "off",
// Hoisted function declarations are safe to reference before their definition; much of the
// codebase organizes helpers below their call sites.
"@typescript-eslint/no-use-before-define": ["error", { functions: false }],
},
overrides: [
{
// Test ergonomics: non-null assertions are fine in specs (a wrong assumption fails the
// test anyway), and snake_case identifiers mirror external row shapes under test.
files: ["**/*.spec.ts"],
rules: {
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/camelcase": "off",
},
},
],
};