Skip to content

Instantly share code, notes, and snippets.

@tuanductran
Created October 22, 2024 07:38
Show Gist options
  • Save tuanductran/72457b096fb68c80fe2fce94d9ce35f9 to your computer and use it in GitHub Desktop.
Save tuanductran/72457b096fb68c80fe2fce94d9ce35f9 to your computer and use it in GitHub Desktop.
Antfu Eslint basic.
import antfu from '@antfu/eslint-config'
export default antfu(
{
formatters: true,
},
)
{
"name": "antfu-eslint",
"version": "1.0.0",
"packageManager": "[email protected]",
"author": "Tuan Duc Tran <[email protected]>",
"license": "MIT",
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"preinstall": "npx only-allow bun"
},
"peerDependencies": {
"typescript": "5.5.4"
},
"devDependencies": {
"@antfu/eslint-config": "^3.8.0",
"eslint": "^9.13.0",
"eslint-plugin-format": "^0.1.2"
}
}
@tuanductran
Copy link
Author

See more advanced eslint on my project: https://github.com/tuanductran/site

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment