Fix eslint config
parent
02916cc9e0
commit
dc42a7d1d4
|
@ -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.
|
||||
|
|
Reference in New Issue