Skip to content

Commit 68547f5

Browse files
committed
chore; add check prettier by eslint
1 parent deadb18 commit 68547f5

File tree

5 files changed

+208
-19
lines changed

5 files changed

+208
-19
lines changed

.eslintignore

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1-
node_modules
2-
dist
1+
/out
2+
/build
3+
/.idea
4+
/node_modules
5+
/dist
6+
/test-results/
7+
/playwright-report/
8+
/playwright/

.eslintrc.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
extends: [
77
'eslint:recommended',
88
'plugin:@typescript-eslint/recommended',
9-
'prettier',
9+
'plugin:prettier/recommended',
1010
],
1111
parser: '@typescript-eslint/parser',
1212
parserOptions: {
@@ -19,5 +19,4 @@ module.exports = {
1919
sourceType: 'module',
2020
},
2121
plugins: ['@typescript-eslint', 'eslint-plugin-import'],
22-
rules: {},
2322
};

.prettierignore

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# Ignore everything recursively
2-
*
3-
# But not the .ts files
4-
!*.ts
5-
# Check subdirectories too
6-
!*/
1+
/out
2+
/build
3+
/.idea
4+
/node_modules
5+
/dist
6+
/test-results/
7+
/playwright-report/
8+
/playwright/

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"eslint": "^8.47.0",
3737
"eslint-config-prettier": "^9.0.0",
3838
"eslint-plugin-import": "^2.28.0",
39+
"eslint-plugin-prettier": "^5.0.1",
3940
"fast-async": "7",
4041
"fast-deep-equal": "^3.1.3",
4142
"file-loader": "^6.2.0",
@@ -53,7 +54,7 @@
5354
"monkberry-loader": "4.0.9",
5455
"postcss": "^8.4.31",
5556
"postcss-loader": "^7.3.3",
56-
"prettier": "^3.0.2",
57+
"prettier": "^3.0.3",
5758
"query-string": "^6.5.0",
5859
"sass": "^1.66.0",
5960
"sass-loader": "^13.3.2",
@@ -77,7 +78,8 @@
7778
"release:ci": "rm -rf dist && npm run build:all && $NPM_TOKEN=%env.NPM_TOKEN% npm publish",
7879
"start": "webpack-dev-server --port 9002",
7980
"lint": "eslint . --ext .ts",
80-
"prettier": "prettier --write .",
81+
"fix": "eslint --fix --ext .ts .",
82+
"prettier": "npm run fix",
8183
"test": "npm run build:all && npm run test:run",
8284
"test:run": "playwright test",
8385
"test:server": "node tests/utlis/server/index.js"

0 commit comments

Comments
 (0)