Skip to content

Commit

Permalink
feat: enable antfu/no-import-dist
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Dec 25, 2023
1 parent 84e4c85 commit a5e7ecf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 67 deletions.
2 changes: 1 addition & 1 deletion bin/index.js
@@ -1,3 +1,3 @@
#!/usr/bin/env node

// eslint-disable-next-line antfu/no-import-dist
import '../dist/cli.js'
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -80,7 +80,7 @@
"@typescript-eslint/parser": "^6.15.0",
"eslint-config-flat-gitignore": "^0.1.2",
"eslint-merge-processors": "^0.1.0",
"eslint-plugin-antfu": "^2.0.0",
"eslint-plugin-antfu": "^2.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-i": "^2.29.1",
"eslint-plugin-jsdoc": "^46.9.1",
Expand Down
72 changes: 7 additions & 65 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/configs/imports.ts
Expand Up @@ -15,6 +15,7 @@ export async function imports(options: OptionsStylistic = {}): Promise<FlatConfi
},
rules: {
'antfu/import-dedupe': 'error',
'antfu/no-import-dist': 'error',
'antfu/no-import-node-modules-by-path': 'error',

'import/first': 'error',
Expand Down

0 comments on commit a5e7ecf

Please sign in to comment.