Skip to content

Commit

Permalink
chore: update eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
chizukicn committed Nov 21, 2023
1 parent e12424a commit b2a9d2c
Show file tree
Hide file tree
Showing 4 changed files with 172 additions and 1 deletion.
12 changes: 11 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
import antfu from '@antfu/eslint-config'
import unocss from '@unocss/eslint-plugin'

export default antfu()
export default antfu({
}, {
files: ['*.html', '*.md'],
plugins: {
'@unocss': unocss,
},
rules: {
'@unocss/blocklist': ['warn'],
},
})
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"@antfu/eslint-config": "2.0.0",
"@babel/types": "^7.23.4",
"@types/node": "^20.9.3",
"@unocss/eslint-plugin": "^0.57.7",
"bumpp": "^9.2.0",
"eslint": "^8.54.0",
"lint-staged": "^15.1.0",
Expand Down
158 changes: 158 additions & 0 deletions pnpm-lock.yaml

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

2 changes: 2 additions & 0 deletions uno.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { defineConfig, presetUno } from 'unocss'
import { presetBlock } from './src'

// Just for Vscode Extension

export default defineConfig({
presets: [
presetUno(),
presetBlock(),
],
})

0 comments on commit b2a9d2c

Please sign in to comment.