Skip to content

Commit

Permalink
ESLint: add UnoCSS ESLint config
Browse files Browse the repository at this point in the history
  • Loading branch information
gxres042 committed Jul 24, 2024
1 parent 1c8dd94 commit 1d89a48
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 2 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ import ts from 'typescript-eslint';
import svelte from 'eslint-plugin-svelte';
import prettier from 'eslint-config-prettier';
import globals from 'globals';
import unocss from '@unocss/eslint-config/flat'

/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
unocss,
js.configs.recommended,
...ts.configs.recommended,
...svelte.configs['flat/recommended'],
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@types/eslint": "^8.56.7",
"@unocss/eslint-config": "^0.61.5",
"@unocss/extractor-svelte": "^0.61.3",
"@unocss/transformer-compile-class": "^0.61.3",
"eslint": "^9.0.0",
Expand Down

0 comments on commit 1d89a48

Please sign in to comment.