Skip to content

Commit

Permalink
Merge pull request #325 from tlusk/feature-typescript
Browse files Browse the repository at this point in the history
Migrate codebase to TypeScript
  • Loading branch information
cgiesche authored Jan 19, 2025
2 parents 87c9edc + bba9424 commit d26f38e
Show file tree
Hide file tree
Showing 35 changed files with 1,696 additions and 516 deletions.
16 changes: 10 additions & 6 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import js from '@eslint/js'
import pluginVue from 'eslint-plugin-vue'
import path from 'node:path'
import skipFormattingConfig from '@vue/eslint-config-prettier/skip-formatting'
import vueTsEslintConfig from '@vue/eslint-config-typescript'
import eslintConfigPrettier from 'eslint-config-prettier'
import tseslint from 'typescript-eslint'

import { includeIgnoreFile } from '@eslint/compat'
import { fileURLToPath } from 'node:url'
Expand All @@ -11,13 +13,15 @@ const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const gitignorePath = path.resolve(__dirname, '.gitignore')

export default [
export default tseslint.config(
{
files: ['**/*.{ts,js,mts,tsx,vue}']
},
js.configs.recommended,
tseslint.configs.recommended,
...pluginVue.configs['flat/essential'],
...vueTsEslintConfig(),
includeIgnoreFile(gitignorePath),
eslintConfigPrettier,
skipFormattingConfig,
{
files: ['**/*.vue', '**/*.js', '**/*.jsx', '**/*.cjs', '**/*.mjs']
}
]
skipFormattingConfig
)
Loading

0 comments on commit d26f38e

Please sign in to comment.