Skip to content

Commit ca7c48d

Browse files
committedJun 28, 2024·
scaffolded
1 parent de3882e commit ca7c48d

File tree

70 files changed

+2419
-323
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+2419
-323
lines changed
 

‎.prettierignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
**/node_modules/**
2+
**/.cache/**
3+
**/build/**
4+
**/dist/**
5+
**/public/build/**
6+
**/package-lock.json
7+
**/playwright-report/**

‎eslint.config.js

Lines changed: 12 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,13 @@
1-
/** @type {import('@types/eslint').Linter.Config} */
2-
export default {
3-
languageOptions: { parser: await import('@typescript-eslint/parser') },
4-
plugins: {
5-
'@typescript-eslint': (await import('@typescript-eslint/eslint-plugin'))
6-
.default,
7-
import: (await import('eslint-plugin-import')).default,
1+
import defaultConfig from '@epic-web/config/eslint'
2+
3+
/** @type {import("eslint").Linter.Config} */
4+
export default [
5+
...defaultConfig,
6+
{
7+
rules: {
8+
// we leave unused vars around for the exercises
9+
'no-unused-vars': 'off',
10+
'@typescript-eslint/no-unused-vars': 'off',
11+
},
812
},
9-
ignores: [
10-
'node_modules',
11-
'build',
12-
'public/build',
13-
'playwright-report',
14-
'test-results',
15-
],
16-
rules: {
17-
// playwright requires destructuring in fixtures even if you don't use anything 🤷‍♂️
18-
'no-empty-pattern': 'off',
19-
'@typescript-eslint/consistent-type-imports': [
20-
'warn',
21-
{
22-
prefer: 'type-imports',
23-
disallowTypeAnnotations: true,
24-
fixStyle: 'inline-type-imports',
25-
},
26-
],
27-
'import/no-duplicates': ['warn', { 'prefer-inline': true }],
28-
'import/consistent-type-specifier-style': ['warn', 'prefer-inline'],
29-
'import/order': [
30-
'warn',
31-
{
32-
alphabetize: { order: 'asc', caseInsensitive: true },
33-
groups: [
34-
'builtin',
35-
'external',
36-
'internal',
37-
'parent',
38-
'sibling',
39-
'index',
40-
],
41-
},
42-
],
43-
},
44-
}
13+
]

0 commit comments

Comments
 (0)
Please sign in to comment.