Skip to content

Commit

Permalink
Dev (#29)
Browse files Browse the repository at this point in the history
* 🔧 (decap): update config.yml

* ⬆️ (eslint): eslint 8 to 9
  • Loading branch information
1574242600 authored Dec 27, 2024
1 parent b30b1cf commit 6dc4764
Show file tree
Hide file tree
Showing 7 changed files with 428 additions and 452 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

57 changes: 0 additions & 57 deletions .eslintrc.json

This file was deleted.

49 changes: 49 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import globals from 'globals'
import pluginJs from '@eslint/js'
import tseslint from 'typescript-eslint'
import eslintPluginAstro from 'eslint-plugin-astro'
import eslintPluginSolid from 'eslint-plugin-solid'
import * as tsParser from '@typescript-eslint/parser'

/** @type {import('eslint').Linter.Config[]} */
export default [
{ files: ['**/*.{js,mjs,cjs,ts}'] },
{ languageOptions: { globals: {...globals.browser, ...globals.node} } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
...eslintPluginAstro.configs.recommended,
...eslintPluginAstro.configs['jsx-a11y-recommended'],
{
files: ['**/*.{ts,tsx}'],
...eslintPluginSolid.configs['flat/typescript'],
languageOptions: {
parser: tsParser,
parserOptions: {
project: 'tsconfig.json',
},
},
},
{
rules: {
indent: [
'error',
4
],
'linebreak-style': [
'error',
'unix'
],
quotes: [
'error',
'single'
],
semi: [
'error',
'never'
]
}
},
{
ignores: ['src/env.d.ts']
}
]
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
"@astrojs/sitemap": "^3.2.1",
"@astrojs/solid-js": "^4.4.4",
"@astrojs/tailwind": "^5.1.4",
"@eslint/js": "^9.17.0",
"@expressive-code/plugin-line-numbers": "^0.33.5",
"@types/lodash": "^4.17.13",
"@types/throttle-debounce": "^5.0.2",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"eslint": "^8.57.1",
"eslint-plugin-astro": "^0.31.4",
"eslint": "^9.17.0",
"eslint-plugin-astro": "^1.3.1",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-solid": "^0.13.2",
"eslint-plugin-solid": "^0.14.5",
"globals": "^15.14.0",
"mdast-util-to-string": "^4.0.0",
"node-fetch": "^3.3.2",
"pre-commit": "^1.2.2",
Expand All @@ -49,6 +49,7 @@
"sharp": "^0.33.5",
"to-ico": "^1.1.5",
"typescript": "^5.7.2",
"typescript-eslint": "^8.18.2",
"unist-util-visit": "^5.0.0"
}
}
Loading

0 comments on commit 6dc4764

Please sign in to comment.