├── .github ├── FUNDING.yml └── workflows │ ├── ci.yml │ └── release.yml ├── .gitignore ├── .npmrc ├── .vscode └── settings.json ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── eslint.config.js ├── package.json ├── pnpm-lock.yaml ├── pnpm-workspace.yaml ├── src ├── index.ts ├── rules │ ├── __snapshots__ │ │ └── consistent-list-newline.test.ts.snap │ ├── _test.ts │ ├── consistent-chaining.md │ ├── consistent-chaining.test.ts │ ├── consistent-chaining.ts │ ├── consistent-list-newline.md │ ├── consistent-list-newline.test.ts │ ├── consistent-list-newline.ts │ ├── curly.md │ ├── curly.test.ts │ ├── curly.ts │ ├── if-newline.md │ ├── if-newline.test.ts │ ├── if-newline.ts │ ├── import-dedupe.md │ ├── import-dedupe.test.ts │ ├── import-dedupe.ts │ ├── indent-unindent.md │ ├── indent-unindent.test.ts │ ├── indent-unindent.ts │ ├── no-import-dist.test.ts │ ├── no-import-dist.ts │ ├── no-import-node-modules-by-path.test.ts │ ├── no-import-node-modules-by-path.ts │ ├── no-top-level-await.test.ts │ ├── no-top-level-await.ts │ ├── no-ts-export-equal.test.ts │ ├── no-ts-export-equal.ts │ ├── top-level-function.md │ ├── top-level-function.test.ts │ └── top-level-function.ts └── utils.ts ├── tsconfig.json └── vitest.config.ts /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: [antfu] 2 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/.npmrc -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Please refer to https://github.com/antfu/contribute 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/README.md -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/eslint.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/pnpm-workspace.yaml -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/rules/__snapshots__/consistent-list-newline.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/__snapshots__/consistent-list-newline.test.ts.snap -------------------------------------------------------------------------------- /src/rules/_test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/_test.ts -------------------------------------------------------------------------------- /src/rules/consistent-chaining.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/consistent-chaining.md -------------------------------------------------------------------------------- /src/rules/consistent-chaining.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/consistent-chaining.test.ts -------------------------------------------------------------------------------- /src/rules/consistent-chaining.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/consistent-chaining.ts -------------------------------------------------------------------------------- /src/rules/consistent-list-newline.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/consistent-list-newline.md -------------------------------------------------------------------------------- /src/rules/consistent-list-newline.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/consistent-list-newline.test.ts -------------------------------------------------------------------------------- /src/rules/consistent-list-newline.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/consistent-list-newline.ts -------------------------------------------------------------------------------- /src/rules/curly.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/curly.md -------------------------------------------------------------------------------- /src/rules/curly.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/curly.test.ts -------------------------------------------------------------------------------- /src/rules/curly.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/curly.ts -------------------------------------------------------------------------------- /src/rules/if-newline.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/if-newline.md -------------------------------------------------------------------------------- /src/rules/if-newline.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/if-newline.test.ts -------------------------------------------------------------------------------- /src/rules/if-newline.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/if-newline.ts -------------------------------------------------------------------------------- /src/rules/import-dedupe.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/import-dedupe.md -------------------------------------------------------------------------------- /src/rules/import-dedupe.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/import-dedupe.test.ts -------------------------------------------------------------------------------- /src/rules/import-dedupe.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/import-dedupe.ts -------------------------------------------------------------------------------- /src/rules/indent-unindent.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/indent-unindent.md -------------------------------------------------------------------------------- /src/rules/indent-unindent.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/indent-unindent.test.ts -------------------------------------------------------------------------------- /src/rules/indent-unindent.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/indent-unindent.ts -------------------------------------------------------------------------------- /src/rules/no-import-dist.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/no-import-dist.test.ts -------------------------------------------------------------------------------- /src/rules/no-import-dist.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/no-import-dist.ts -------------------------------------------------------------------------------- /src/rules/no-import-node-modules-by-path.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/no-import-node-modules-by-path.test.ts -------------------------------------------------------------------------------- /src/rules/no-import-node-modules-by-path.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/no-import-node-modules-by-path.ts -------------------------------------------------------------------------------- /src/rules/no-top-level-await.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/no-top-level-await.test.ts -------------------------------------------------------------------------------- /src/rules/no-top-level-await.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/no-top-level-await.ts -------------------------------------------------------------------------------- /src/rules/no-ts-export-equal.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/no-ts-export-equal.test.ts -------------------------------------------------------------------------------- /src/rules/no-ts-export-equal.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/no-ts-export-equal.ts -------------------------------------------------------------------------------- /src/rules/top-level-function.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/top-level-function.md -------------------------------------------------------------------------------- /src/rules/top-level-function.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/top-level-function.test.ts -------------------------------------------------------------------------------- /src/rules/top-level-function.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/rules/top-level-function.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/src/utils.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antfu/eslint-plugin-antfu/HEAD/vitest.config.ts --------------------------------------------------------------------------------