UniApp
js
import { uniAppConfig } from "@fast-china/eslint-config";
import { defineConfig } from "eslint/config";
export default defineConfig([
...uniAppConfig,
{
name: "project/custom",
rules: {},
},
]);Add project-specific rules to rules: {} as needed; leaving it empty preserves the shared defaults.
The UniApp entry adds .nvue, uni, uniCloud, page APIs, conditional-platform globals, the unpackage ignore, and comment handling for pages.json and manifest.json.
ESLint does not execute #ifdef or #endif, so it can recognize platform objects but cannot prove that they occur in the correct branch. .uvue and .uts remain unsupported because they require dedicated parsers.
