Gathering detailed insights and metrics for @antfu/eslint-define-config
Gathering detailed insights and metrics for @antfu/eslint-define-config
Gathering detailed insights and metrics for @antfu/eslint-define-config
Gathering detailed insights and metrics for @antfu/eslint-define-config
Provide a defineConfig function for .eslintrc.js files
npm install @antfu/eslint-define-config
Typescript
Module System
Min. Node Version
Node Version
NPM Version
95.9
Supply Chain
93.6
Quality
75.2
Maintenance
100
Vulnerability
100
License
TypeScript (58.58%)
JavaScript (41.42%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
364 Stars
569 Commits
26 Forks
2 Watchers
14 Branches
20 Contributors
Updated on Jun 15, 2025
Latest Version
1.23.0-2
Package Id
@antfu/eslint-define-config@1.23.0-2
Unpacked Size
2.83 MB
Size
384.75 kB
File Count
1,471
NPM Version
9.7.2
Node Version
20.4.0
Published on
Oct 24, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
50
A fork of eslint-define-config to experiment better Flat Config support.
1import { 2 VitestRules, 3 VueRules, 4 // ... 5} from '@antfu/eslint-define-config'
1import pluginVitest from 'eslint-plugin-vitest' 2import { 3 defineFlatConfig, 4 VitestRules 5} from '@antfu/eslint-define-config' 6 7export default defineFlatConfig<VitestRules, /* Strict */ true>({ 8 plugins: { 9 vitest: pluginVitest, 10 }, 11 rules: { 12 // only `vitest/` rules are allowed and will be auto-completed 13 'vitest/no-async': 'error', 14 15 // @ts-expect-error not allowed 16 'indent': 'error' 17 }, 18})
1import { 2 RenamePrefix, 3 TypeScriptRules // { '@typescript-eslint/indent': 'error', ... } 4} from '@antfu/eslint-define-config' 5 6type RenamedRules = RenamePrefix<TypeScriptRules, '@typescript-eslint/', 'ts/'> 7// { 'ts/indent': 'error', ... }
This way it could work for Flat Config plugin renaming:
1import pluginTypeScript from '@typescript-eslint/eslint-plugin' 2import { 3 defineFlatConfig, 4 RenamePrefix, 5 TypeScriptRules 6} from '@antfu/eslint-define-config' 7 8type RenamedRules = RenamePrefix<TypeScriptRules, '@typescript-eslint/', 'ts/'> 9 10export default defineFlatConfig<RenamedRules>({ 11 plugins: { 12 ts: pluginTypeScript, // renames to `ts/` 13 }, 14 rules: { 15 'ts/indent': 'error', 16 17 // now we have auto-completion for `ts/` rules 18 }, 19})
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
7 existing vulnerabilities detected
Details
Reason
project is archived
Details
Reason
Found 1/23 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More