-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
35 lines (34 loc) · 864 Bytes
/
.eslintrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// @ts-check
/** @type {import('eslint').Linter.Config} */
module.exports = {
extends: ['@bensaufley', 'plugin:astro/recommended'],
rules: {
'implicit-arrow-linebreak': 'off',
'import/no-unresolved': ['error', { ignore: ['astro:content'] }],
},
globals: {
dataLayer: 'writable',
gtag: 'writable',
partytown: 'writable',
},
overrides: [
{
files: ['*.tsx', '*.jsx'],
extends: [require.resolve('@bensaufley/eslint-config/preact.cjs')],
},
{
files: ['*.astro'],
parser: 'astro-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
extraFileExtensions: ['.astro'],
},
plugins: ['astro'],
rules: {
'import/prefer-default-export': 'off',
// doesn't play nice with Astro
'prettier/prettier': 'off',
},
},
],
};