feat: migrated packages to ts
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import js from '@eslint/js'
|
||||
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
|
||||
import globals from 'globals'
|
||||
import tsConfig from './ts.js'
|
||||
|
||||
export default [
|
||||
{ ignores: ['dist'] },
|
||||
@@ -24,3 +25,5 @@ export default [
|
||||
},
|
||||
eslintPluginPrettierRecommended,
|
||||
]
|
||||
|
||||
export { tsConfig }
|
||||
|
||||
4
packages/eslint-config/js.js
Normal file
4
packages/eslint-config/js.js
Normal file
@@ -0,0 +1,4 @@
|
||||
import eslint from '@eslint/js'
|
||||
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
|
||||
|
||||
export default [eslint.configs.recommended, eslintPluginPrettierRecommended]
|
||||
@@ -1,17 +1,16 @@
|
||||
{
|
||||
"name": "@aklive2d/eslint-config",
|
||||
"version": "0.0.0",
|
||||
"main": "index.js",
|
||||
"type": "module",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@eslint/js": "^9.19.0",
|
||||
"eslint": "^9.19.0",
|
||||
"eslint-config-prettier": "^10.0.1",
|
||||
"eslint-plugin-prettier": "^5.2.3",
|
||||
"globals": "^15.14.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
"name": "@aklive2d/eslint-config",
|
||||
"version": "0.0.0",
|
||||
"main": "index.js",
|
||||
"type": "module",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@eslint/js": "^9.19.0",
|
||||
"eslint": "^9.19.0",
|
||||
"eslint-config-prettier": "^10.0.1",
|
||||
"eslint-plugin-prettier": "^5.2.6",
|
||||
"globals": "^16.0.0",
|
||||
"typescript": "^5.8.3",
|
||||
"typescript-eslint": "^8.31.1"
|
||||
}
|
||||
}
|
||||
|
||||
10
packages/eslint-config/ts.js
Normal file
10
packages/eslint-config/ts.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import eslint from '@eslint/js'
|
||||
import tseslint from 'typescript-eslint'
|
||||
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
|
||||
|
||||
/** @type {import('eslint').Config} */
|
||||
export default tseslint.config(
|
||||
eslint.configs.recommended,
|
||||
tseslint.configs.recommended,
|
||||
eslintPluginPrettierRecommended
|
||||
)
|
||||
Reference in New Issue
Block a user