1.0.0-alpha.2 • Published 10 months ago
@importantimport/eslint-config v1.0.0-alpha.2
@importantimport/eslint-config 
An ESLint Flat Config for !mportantImport.
Usage
First follow the instructions for setup @antfu/eslint-config
:
pnpm dlx @antfu/eslint-config@latest
pnpm i
Then add and import @importantimport/eslint-config
:
pnpm add -D @importantimport/eslint-config
# eslint.config.js
import antfu from '@antfu/eslint-config'
+ import ii from '@importantimport/eslint-config'
export default antfu()
+ .append(ii())
TypeScript Config (optional)
Rename your eslint.config.js
to eslint.config.ts
and set the flag for scripts and vscode:
# package.json
{
"scripts": {
- "lint": "eslint .",
+ "lint": "eslint . --flag unstable_ts_config",
- "lint:fix": "eslint . --fix"
+ "lint:fix": "eslint . --flag unstable_ts_config --fix"
},
}
# .vscode/settings.json
{
+ "eslint.options": {
+ "flags": ["unstable_ts_config"]
+ }
}
License
1.0.0-alpha.2
10 months ago
1.0.0-alpha.1
10 months ago
1.0.0-alpha.0
11 months ago
0.1.2
2 years ago
0.2.0
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago