mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
20 lines
572 B
JavaScript
20 lines
572 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'
|
|
}
|
|
},
|
|
...eslintPluginAstro.configs.recommended,
|
|
eslintConfigPrettier,
|
|
]
|