First commit
This commit is contained in:
commit
5daf2dc6b9
17 changed files with 5649 additions and 0 deletions
21
eslint.config.js
Normal file
21
eslint.config.js
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import neostandard, { resolveIgnoresFromGitignore } from 'neostandard'
|
||||
import eslintConfigPrettier from 'eslint-config-prettier'
|
||||
|
||||
import eslintPluginAstro from 'eslint-plugin-astro'
|
||||
|
||||
const neoConfig = neostandard({ ignores: resolveIgnoresFromGitignore(), noStyle: true, ts: true })
|
||||
|
||||
/** @type {import("eslint").Linter.Config} */
|
||||
export default [
|
||||
...neoConfig,
|
||||
{
|
||||
files: ['**/*.ts', '**/*.tsx'],
|
||||
rules: {
|
||||
'@typescript-eslint/no-unused-vars': 'warn',
|
||||
'no-undef': 'error'
|
||||
}
|
||||
},
|
||||
{ env: { browser: true } },
|
||||
...eslintPluginAstro.configs.recommended,
|
||||
eslintConfigPrettier
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue