Skip to content

Commit 25eee80

Browse files
authored
added prettier to yarn lint, also added github workflow to run it (#394)
1 parent 6e86d57 commit 25eee80

File tree

4 files changed

+217
-9
lines changed

4 files changed

+217
-9
lines changed

.eslintrc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
{
2-
"extends": "./.config/.eslintrc"
3-
}
2+
"extends": "./.config/.eslintrc",
3+
"plugins": ["prettier"],
4+
"ignorePatterns": ["website"],
5+
"rules": {
6+
"prettier/prettier": "error"
7+
}
8+
}

.github/workflows/lint.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Lint frontend
2+
3+
on: [push]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-node@v3
11+
with:
12+
node-version-file: '.nvmrc'
13+
cache: 'yarn'
14+
- run: yarn install
15+
- run: yarn lint

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,14 @@
6060
"copy-webpack-plugin": "^11.0.0",
6161
"cspell": "6.30.2",
6262
"css-loader": "^6.7.3",
63+
"eslint-plugin-prettier": "^5.0.0",
6364
"eslint-webpack-plugin": "^4.0.1",
6465
"fork-ts-checker-webpack-plugin": "^8.0.0",
6566
"glob": "10.3.6",
6667
"identity-obj-proxy": "3.0.0",
6768
"jest": "^29.5.0",
6869
"jest-environment-jsdom": "^29.5.0",
69-
"prettier": "^2.8.7",
70+
"prettier": "^3.0.3",
7071
"react-virtualized-auto-sizer": "^1.0.4",
7172
"replace-in-file-webpack-plugin": "^1.0.6",
7273
"sass": "1.63.2",

0 commit comments

Comments
 (0)