Skip to content

Commit 03fe308

Browse files
committed
feat!: update configs to eslint flat config
- Remove angular config - Add new react config - Update dependencies
1 parent fbb3da2 commit 03fe308

23 files changed

+7229
-21066
lines changed

.eslintrc.js

Lines changed: 0 additions & 294 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 7 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -6,68 +6,27 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- name: Checkout
9-
uses: actions/checkout@v3
9+
uses: actions/checkout@v4
1010
- name: Setup node
11-
uses: actions/setup-node@v3
11+
uses: actions/setup-node@v4
1212
with:
13-
node-version: 18.x
13+
node-version: 22
1414
cache: 'npm'
1515
- run: yarn install
1616
- run: yarn prettier:lint
1717

18-
eslint:
19-
runs-on: ubuntu-latest
20-
steps:
21-
- name: Checkout
22-
uses: actions/checkout@v3
23-
- name: Setup node
24-
uses: actions/setup-node@v3
25-
with:
26-
node-version: 18.x
27-
cache: 'npm'
28-
- run: yarn install
29-
- run: yarn eslint:lint
30-
31-
angular:
32-
runs-on: ubuntu-latest
33-
steps:
34-
- name: Checkout
35-
uses: actions/checkout@v3
36-
- name: Setup node
37-
uses: actions/setup-node@v3
38-
with:
39-
node-version: 18.x
40-
cache: 'npm'
41-
- run: yarn install
42-
- run: TEST_CONFIG=angular TEST_FILE=index.ts yarn eslint:printRules
43-
- run: TEST_CONFIG=angular TEST_FILE=index.spec.ts yarn eslint:printRules
44-
- run: TEST_CONFIG=angular TEST_FILE=index.model.spec.ts yarn eslint:printRules
45-
- run: TEST_CONFIG=angular TEST_FILE=index.model.ts yarn eslint:printRules
46-
- run: TEST_CONFIG=angular TEST_FILE=index.abstract.ts yarn eslint:printRules
47-
- run: TEST_CONFIG=angular TEST_FILE=index.html yarn eslint:printRules
48-
- run: |
49-
if [ "$(git status --porcelain)" != "" ]; then
50-
echo "Some rules have changed"
51-
exit 1
52-
else
53-
echo "No changes detected in snapshots"
54-
fi
55-
5618
react:
5719
runs-on: ubuntu-latest
5820
steps:
5921
- name: Checkout
60-
uses: actions/checkout@v3
22+
uses: actions/checkout@v4
6123
- name: Setup node
62-
uses: actions/setup-node@v3
24+
uses: actions/setup-node@v4
6325
with:
64-
node-version: 18.x
26+
node-version: 22
6527
cache: 'npm'
6628
- run: yarn install
67-
- run: TEST_CONFIG=react-ts TEST_FILE=index.ts yarn eslint:printRules
68-
- run: TEST_CONFIG=react-ts TEST_FILE=src/Mocks/Data/index.ts yarn eslint:printRules
69-
- run: TEST_CONFIG=react-ts TEST_FILE=index.spec.ts yarn eslint:printRules
70-
- run: TEST_CONFIG=react-ts TEST_FILE=src/Generated/index.ts yarn eslint:printRules
29+
- run: yarn eslint:printRules
7130
- run: |
7231
if [ "$(git status --porcelain)" != "" ]; then
7332
echo "Some rules have changed"

0 commit comments

Comments
 (0)