Skip to content

Commit 2ce4aa1

Browse files
authored
fix: set to specific config file linter, formatter and use main as auto pr request branch (#104)
* feat: create a empty roadmap doc for drowser (#102) * fix: set to specific config file linter, formatter and use main as auto pr request branch
1 parent 31e8db0 commit 2ce4aa1

File tree

5 files changed

+38
-33
lines changed

5 files changed

+38
-33
lines changed

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["next/core-web-vitals", "next/typescript"]
3+
}

.github/workflows/pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: pull-request
33
on:
44
push:
55
branches-ignore:
6-
- develop
6+
- main
77

88
jobs:
99
create-pull-request:
@@ -13,5 +13,5 @@ jobs:
1313
- uses: jascodes/[email protected]
1414
env:
1515
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
16-
PULL_REQUEST_BRANCH: develop
16+
PULL_REQUEST_BRANCH: main
1717
PULL_REQUEST_TITLE: ${{ github.event.head_commit.message }}

.prettierrc.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"trailingComma": "none",
3+
"arrowParens": "always",
4+
"singleQuote": true,
5+
"jsxSingleQuote": true,
6+
"printWidth": 100,
7+
"useTabs": false,
8+
"semi": false,
9+
"quoteProps": "consistent",
10+
"bracketSpacing": true,
11+
"overrides": [
12+
{
13+
"files": ["**/*.css", "**/*.scss"],
14+
"options": {
15+
"singleQuote": false
16+
}
17+
}
18+
]
19+
}

package.json

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -30,35 +30,8 @@
3030
"eslint": "^8",
3131
"eslint-config-next": "15.0.0",
3232
"postcss": "^8",
33+
"prettier": "^3.5.1",
3334
"tailwindcss": "^3.4.1",
3435
"typescript": "^5"
35-
},
36-
"prettier": {
37-
"trailingComma": "none",
38-
"arrowParens": "always",
39-
"singleQuote": true,
40-
"jsxSingleQuote": true,
41-
"printWidth": 100,
42-
"useTabs": false,
43-
"semi": false,
44-
"quoteProps": "consistent",
45-
"bracketSpacing": true,
46-
"overrides": [
47-
{
48-
"files": [
49-
"**/*.css",
50-
"**/*.scss"
51-
],
52-
"options": {
53-
"singleQuote": false
54-
}
55-
}
56-
]
57-
},
58-
"eslintConfig": {
59-
"extends": [
60-
"next/core-web-vitals",
61-
"next/typescript"
62-
]
6336
}
6437
}

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)