added proped eslint support for solid
This commit is contained in:
parent
34ec1cba73
commit
4370289496
3 changed files with 22 additions and 0 deletions
BIN
bun.lockb
BIN
bun.lockb
Binary file not shown.
|
|
@ -1,7 +1,27 @@
|
|||
import solid from 'eslint-plugin-solid'
|
||||
import tsParser from '@typescript-eslint/parser'
|
||||
import tsPlugin from '@typescript-eslint/eslint-plugin'
|
||||
|
||||
export default [
|
||||
{
|
||||
name: 'app/files-to-lint',
|
||||
files: ['**/*.{ts,mts,tsx}'],
|
||||
plugins: {
|
||||
solid,
|
||||
'@typescript-eslint': tsPlugin
|
||||
},
|
||||
languageOptions: {
|
||||
parser: tsParser,
|
||||
parserOptions: {
|
||||
ecmaFeatures: {
|
||||
jsx: true
|
||||
}
|
||||
}
|
||||
},
|
||||
rules: {
|
||||
...solid.configs.recommended.rules,
|
||||
...tsPlugin.configs.recommended.rules
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
|
|
@ -9,3 +29,4 @@ export default [
|
|||
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**', '**/src-tauri/**'],
|
||||
},
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
"@typescript-eslint/parser": "^8.19.1",
|
||||
"daisyui": "^5.0.0-beta.1",
|
||||
"eslint": "^9.18.0",
|
||||
"eslint-plugin-solid": "^0.14.5",
|
||||
"prettier": "^3.4.2",
|
||||
"tailwindcss": "^4.0.0-beta.9",
|
||||
"typescript": "^5.7.3",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue