Skip to content

Commit 3409198

Browse files
authored
chore: update nx, eslint ,pretters typescript, dependencies (#1078)
1 parent 04b1de2 commit 3409198

File tree

14 files changed

+1659
-2317
lines changed

14 files changed

+1659
-2317
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ npm-debug.log*
3131
storybook-static
3232

3333
.nx/cache
34+
.nx/workspace-data

.storybook/preview.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const preview: Preview = {
1616
decorators: [
1717
(Story, context) => {
1818
const { locale, darkMode } = context.globals
19-
2019
return (
2120
<Suspense>
2221
<ThemeProvider>

eslint.config.js

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@ const compat = new FlatCompat({
1717
export default [
1818
...compat.extends('plugin:@typescript-eslint/recommended', 'plugin:react/recommended'),
1919
eslintPluginPrettierRecommended,
20+
{
21+
ignores: [
22+
'dist',
23+
'coverage',
24+
'test-results',
25+
'playwright-report',
26+
'storybook-static',
27+
'.nx',
28+
'jest.config.ts',
29+
'**/*.js',
30+
'public',
31+
],
32+
},
2033
{
2134
plugins: {
2235
react: eslintPluginReact,
@@ -27,16 +40,15 @@ export default [
2740
},
2841
},
2942
{
30-
settings: { 'import/resolver': { typescript: {} }, react: { version: 'detect' } },
43+
settings: { 'import/resolver': { typescript: true }, react: { version: 'detect' } },
3144
languageOptions: {
3245
parser: typescriptEslintParser,
3346
parserOptions: {
3447
ecmaFeatures: { jsx: true },
35-
ecmaVersion: 12,
3648
sourceType: 'module',
3749
project: './tsconfig.json',
3850
},
39-
globals: { ...globals.browser, ...globals.es2021 },
51+
globals: { ...globals.browser, ...globals.jest },
4052
},
4153
},
4254
{
@@ -71,18 +83,4 @@ export default [
7183
],
7284
},
7385
},
74-
{
75-
ignores: [
76-
'dist',
77-
'coverage',
78-
'test-results',
79-
'playwright-report',
80-
'storybook-static',
81-
'eslint.config.js',
82-
'.nx',
83-
'jest.config.ts',
84-
'sitemap.js',
85-
'public',
86-
],
87-
},
8886
]

nx.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@
1515
},
1616
"affected": {
1717
"defaultBase": "main"
18-
}
18+
},
19+
"useDaemonProcess": false
1920
}

0 commit comments

Comments
 (0)