chore: Initial commit.
This commit is contained in:
commit
0219b23c4e
84 changed files with 15995 additions and 0 deletions
48
eslint.config.mjs
Normal file
48
eslint.config.mjs
Normal file
|
@ -0,0 +1,48 @@
|
|||
import path from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
|
||||
import globals from 'globals'
|
||||
|
||||
import { includeIgnoreFile } from '@eslint/compat'
|
||||
|
||||
import js from '@eslint/js'
|
||||
import ts from 'typescript-eslint'
|
||||
import astro from 'eslint-plugin-astro'
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url)
|
||||
const srcDir = path.dirname(__filename)
|
||||
|
||||
const gitignorePath = path.resolve(srcDir, '.gitignore')
|
||||
|
||||
export default [
|
||||
includeIgnoreFile(gitignorePath),
|
||||
|
||||
{
|
||||
languageOptions: {
|
||||
ecmaVersion: 'latest',
|
||||
sourceType: 'module',
|
||||
globals: {
|
||||
...globals.node,
|
||||
...globals.browser,
|
||||
},
|
||||
},
|
||||
|
||||
rules: {
|
||||
'import/prefer-default-export': 'off',
|
||||
'@typescript-eslint/consistent-type-imports': 'error',
|
||||
},
|
||||
},
|
||||
|
||||
js.configs.recommended,
|
||||
...ts.configs.strict,
|
||||
...ts.configs.stylistic,
|
||||
...astro.configs.recommended,
|
||||
|
||||
// Type definitions
|
||||
{
|
||||
files: ['**/*.d.ts'],
|
||||
rules: {
|
||||
'@typescript-eslint/triple-slash-reference': 'off',
|
||||
},
|
||||
},
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue