mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
Cleanup dev environment
This commit is contained in:
parent
3e7a39e250
commit
c49bcf070e
8 changed files with 135 additions and 1366 deletions
|
|
@ -1,11 +1,20 @@
|
|||
import neostandard from 'neostandard'
|
||||
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 [
|
||||
...neostandard(),
|
||||
...neoConfig,
|
||||
{
|
||||
files: ['**/*.ts', '**/*.tsx'],
|
||||
rules: {
|
||||
'@typescript-eslint/no-unused-vars': 'warn',
|
||||
'no-undef': 'error'
|
||||
}
|
||||
},
|
||||
...eslintPluginAstro.configs.recommended,
|
||||
eslintConfigPrettier,
|
||||
...eslintPluginAstro.configs.recommended
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue