Skip to content

Commit 4a679c6

Browse files
committed
chore(fix): add eslint for typescript
1 parent c731277 commit 4a679c6

File tree

6 files changed

+109
-143
lines changed

6 files changed

+109
-143
lines changed

.eslintrc.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"parserOptions": {
4+
"project": "./tsconfig.json",
5+
"sourceType": "module"
6+
},
7+
"extends": [
8+
"plugin:@typescript-eslint/recommended",
9+
"plugin:react-hooks/recommended",
10+
"prettier"
11+
],
12+
"plugins": [
13+
"@typescript-eslint",
14+
"react-hooks"
15+
],
16+
"ignorePatterns": [
17+
"**/*.mdx",
18+
"**/*.stories.(ts,tsx)",
19+
"stories/**",
20+
"src/**/*.stories.(js,ts,jsx,tsx)"
21+
],
22+
"rules": {
23+
"@next/next/no-before-interactive-script-outside-document": "off",
24+
"no-unused-vars": [
25+
1,
26+
{
27+
"args": "after-used",
28+
"argsIgnorePattern": "^_"
29+
}
30+
]
31+
}
32+
}

.eslintrc.ts

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

.github/workflows/ci.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
- release*
87

98
jobs:
109
lint:
@@ -21,20 +20,6 @@ jobs:
2120
run: npm install
2221
- name: Run eslint
2322
run: npm run lint
24-
test:
25-
name: Test
26-
runs-on: ubuntu-latest
27-
steps:
28-
- name: Checkout
29-
uses: actions/checkout@v3
30-
- name: Setup Node.js
31-
uses: actions/setup-node@v3
32-
with:
33-
node-version: lts/*
34-
- name: Install dependencies
35-
run: npm install
36-
- name: Run tests
37-
run: npm run test
3823
build:
3924
name: Build
4025
runs-on: ubuntu-latest

package-lock.json

Lines changed: 58 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "",
55
"dependencies": {
66
"@patternfly/patternfly": "^6.1.0",
7-
"@patternfly/react-table": "^6.1.0",
8-
"@patternfly/react-core": "^6.1.0"
7+
"@patternfly/react-core": "^6.1.0",
8+
"@patternfly/react-table": "^6.1.0"
99
},
1010
"devDependencies": {
1111
"@storybook/addon-essentials": "^8.6.12",
@@ -16,10 +16,12 @@
1616
"@storybook/react": "^8.6.12",
1717
"@storybook/react-webpack5": "^8.6.12",
1818
"@storybook/test": "^8.6.12",
19-
"@typescript-eslint/eslint-plugin": "^8.17.0",
19+
"@typescript-eslint/eslint-plugin": "^8.29.1",
20+
"@typescript-eslint/parser": "^8.29.1",
2021
"copy-webpack-plugin": "^12.0.2",
2122
"dotenv-webpack": "^8.1.0",
2223
"eslint": "^8.57.1",
24+
"eslint-config-prettier": "9.1.0",
2325
"eslint-plugin-prettier": "^5.2.1",
2426
"eslint-plugin-react": "^7.37.2",
2527
"eslint-plugin-react-hooks": "^5.0.0",

0 commit comments

Comments
 (0)