Skip to content

JavaScript, Import, and Vue policy

  • no-empty permits a completely empty catch while reporting other empty blocks.
  • camelcase: ["error", { properties: "never" }] applies to variables and types while preserving external protocol property names.
  • Real-risk rules such as no-eval, no-implied-eval, no-new-func, and no-debugger remain errors.
  • import-x/first, import-x/no-duplicates, and import-x/order are errors; declaration ordering supports automatic fixes.
  • Common path groups cover UniApp, Vue, React, Angular, Vite, Element Plus, Fast, and Lodash. @/** is internal, and type imports do not participate in path-group matching.
  • sort-imports checks only member order inside one import declaration and does not order declarations.
  • import-x/style-imports-last keeps stylesheets in the final contiguous group without reordering that group internally.
  • Vue SFCs use the official flat/recommended; script-semantic checks for explicit emits, duplicate keys, readonly props, reactivity loss, and reserved component names also apply to Vue JSX/TSX.
  • Kebab-case attributes, template attribute ordering, and component v-text/v-html remain limited to .vue/.nvue templates; JSX attributes retain JavaScript camelCase conventions. no-v-html remains a warning.