JavaScript, Import, and Vue policy
no-emptypermits a completely emptycatchwhile 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, andno-debuggerremain errors. import-x/first,import-x/no-duplicates, andimport-x/orderare 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-importschecks only member order inside one import declaration and does not order declarations.import-x/style-imports-lastkeeps 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-htmlremain limited to.vue/.nvuetemplates; JSX attributes retain JavaScript camelCase conventions.no-v-htmlremains a warning.
