Skip to content

Commit fefd3b0

Browse files
authored
feat: prepare for uikit 7 and update dependencies (#95)
1 parent 77039f3 commit fefd3b0

File tree

102 files changed

+7624
-11259
lines changed

Some content is hidden

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

102 files changed

+7624
-11259
lines changed

.babelrc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
}
1111
],
1212
"@babel/preset-typescript",
13-
"@babel/preset-react"
13+
[
14+
"@babel/preset-react",
15+
{
16+
"runtime": "automatic"
17+
}
18+
]
1419
],
1520
"plugins": []
1621
}

.eslintrc

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,11 @@
44
"@gravity-ui/eslint-config/client",
55
"@gravity-ui/eslint-config/prettier",
66
"@gravity-ui/eslint-config/import-order",
7-
"@gravity-ui/eslint-config/a11y"
7+
"@gravity-ui/eslint-config/a11y",
8+
"plugin:react/jsx-runtime"
89
],
910
"root": true,
1011
"rules": {
11-
"@typescript-eslint/consistent-type-imports": [
12-
"warn",
13-
{
14-
"prefer": "type-imports",
15-
"disallowTypeAnnotations": false
16-
}
17-
],
1812
"@typescript-eslint/no-non-null-assertion": "warn",
1913
"@typescript-eslint/no-shadow": "warn",
2014
"import/consistent-type-specifier-style": [
@@ -27,8 +21,8 @@
2721
"no-restricted-syntax": [
2822
"error",
2923
{
30-
"selector": "ImportDeclaration[source.value='react'] :matches(ImportNamespaceSpecifier, ImportSpecifier)",
31-
"message": "Please use import React from 'react' instead."
24+
"selector": "ImportDeclaration[source.value='react'] :matches(ImportDefaultSpecifier, ImportSpecifier)",
25+
"message": "Please use `import * as React from 'react'` instead."
3226
},
3327
{
3428
"selector": "TSTypeReference>TSQualifiedName[left.name='React'][right.name='FC']",

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Node
1919
uses: actions/setup-node@v3
2020
with:
21-
node-version: 18
21+
node-version: 20
2222
cache: npm
2323
- name: Install Packages
2424
run: npm ci
@@ -38,7 +38,7 @@ jobs:
3838
- name: Setup Node
3939
uses: actions/setup-node@v3
4040
with:
41-
node-version: 18
41+
node-version: 20
4242
cache: npm
4343
- name: Install Packages
4444
run: npm ci

.github/workflows/main-preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup Node
1717
uses: actions/setup-node@v3
1818
with:
19-
node-version: 18
19+
node-version: 20
2020
- name: Install Packages
2121
run: npm ci
2222
shell: bash

.github/workflows/pr-preview-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ jobs:
1010
steps:
1111
- uses: gravity-ui/preview-build-action@v1
1212
with:
13-
node-version: 18
13+
node-version: 20

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ jobs:
1212
with:
1313
github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
1414
npm-token: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}
15-
node-version: 18
15+
node-version: 20

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
20

.storybook/decorators/withLang.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import React from 'react';
2-
31
import {configure} from '@gravity-ui/uikit';
42
import type {Decorator} from '@storybook/react';
53

.storybook/decorators/withMobile.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import React from 'react';
2-
31
import {MobileProvider} from '@gravity-ui/uikit';
42
import type {Decorator} from '@storybook/react';
53

.storybook/decorators/withStrictMode.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import * as React from 'react';
22

33
import type {Decorator} from '@storybook/react';
44

0 commit comments

Comments
 (0)