mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
21 lines
602 B
JavaScript
21 lines
602 B
JavaScript
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
|
|
]
|