me
/
ethanreece.com
Archived
1
0
Fork 0

Fix eslint config

main
Ethan Reece 2023-07-30 23:24:43 -05:00
parent 02916cc9e0
commit dc42a7d1d4
Signed by: me
GPG Key ID: D3993665FF92E1C3
1 changed files with 16 additions and 2 deletions

View File

@ -4,11 +4,10 @@ module.exports = {
node: true,
'astro/astro': true,
},
plugins: ['simple-import-sort', 'unused-imports'],
extends: [
'plugin:astro/recommended',
'prettier',
'simple-import-sort',
'unused-imports',
'eslint:recommended',
'plugin:json/recommended',
'plugin:tailwindcss/recommended',
@ -17,6 +16,21 @@ module.exports = {
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'no-unused-vars': 'off', // or "@typescript-eslint/no-unused-vars": "off",
'unused-imports/no-unused-imports': 'error',
'unused-imports/no-unused-vars': [
'warn',
{
vars: 'all',
varsIgnorePattern: '^_',
args: 'after-used',
argsIgnorePattern: '^_',
},
],
},
overrides: [
{
// Define the configuration for `.astro` file.