35 lines
960 B
JavaScript
35 lines
960 B
JavaScript
module.exports = {
|
|
extends: ['@evan-yang', 'plugin:astro/recommended'],
|
|
rules: {
|
|
'no-console': 'off',
|
|
'react/display-name': 'off',
|
|
'react-hooks/rules-of-hooks': 'off',
|
|
'@typescript-eslint/no-use-before-define': 'off',
|
|
'@typescript-eslint/no-unused-vars': 'warn',
|
|
'react/jsx-key': 'off',
|
|
'import/namespace': 'off',
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['*.astro'],
|
|
parser: 'astro-eslint-parser',
|
|
parserOptions: {
|
|
parser: '@typescript-eslint/parser',
|
|
extraFileExtensions: ['.astro'],
|
|
},
|
|
rules: {
|
|
'no-mixed-spaces-and-tabs': ['error', 'smart-tabs'],
|
|
},
|
|
},
|
|
{
|
|
// Define the configuration for `<script>` tag.
|
|
// Script in `<script>` is assigned a virtual file name with the `.js` extension.
|
|
files: ['**/*.astro/*.js', '*.astro/*.js'],
|
|
parser: '@typescript-eslint/parser',
|
|
rules: {
|
|
'prettier/prettier': 'off',
|
|
},
|
|
},
|
|
],
|
|
}
|