Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf785902

Browse files
authored
chore: simplify prettier config (#528)
1 parentd70a586 commitf785902

36 files changed

+6325
-5471
lines changed

‎.editorconfig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
root =true
22

33
[*]
4-
indent_style =space
5-
trim_trailing_whitespace =true
4+
end_of_line =lf
65
indent_size =2
6+
indent_style =tab
7+
insert_final_newline =true
8+
trim_trailing_whitespace =true

‎.eslintrc.json

Lines changed: 58 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,60 @@
11
{
2-
"root":true,
3-
"parser":"@typescript-eslint/parser",
4-
"parserOptions": {
5-
"ecmaVersion":6,
6-
"sourceType":"module"
7-
},
8-
"plugins": [
9-
"@typescript-eslint",
10-
"prettier"
11-
],
12-
"extends": [
13-
"eslint:recommended",
14-
"plugin:@typescript-eslint/recommended",
15-
"plugin:import/recommended",
16-
"plugin:import/typescript",
17-
"plugin:md/prettier",
18-
"prettier"
19-
],
20-
"overrides": [{
21-
"files": ["*.md"],
22-
"parser":"markdown-eslint-parser"
23-
}],
24-
"rules": {
25-
"curly":"error",
26-
"eqeqeq":"error",
27-
"no-throw-literal":"error",
28-
"no-console":"error",
29-
"prettier/prettier":"error",
30-
"import/order": ["error", {
31-
"alphabetize": {
32-
"order":"asc"
33-
},
34-
"groups": [["builtin","external","internal"],"parent","sibling"]
35-
}],
36-
"import/no-unresolved": ["error", {
37-
"ignore": ["vscode"]
38-
}],
39-
"@typescript-eslint/no-unused-vars": [
40-
"error",
41-
{
42-
"varsIgnorePattern":"^_"
43-
}
44-
],
45-
"md/remark": [
46-
"error",
47-
{
48-
"no-duplicate-headings": {
49-
"sublings_only":true
50-
}
51-
}
52-
]
53-
},
54-
"ignorePatterns": [
55-
"out",
56-
"dist",
57-
"**/*.d.ts"
58-
]
2+
"root":true,
3+
"parser":"@typescript-eslint/parser",
4+
"parserOptions": {
5+
"ecmaVersion":6,
6+
"sourceType":"module"
7+
},
8+
"plugins": ["@typescript-eslint","prettier"],
9+
"extends": [
10+
"eslint:recommended",
11+
"plugin:@typescript-eslint/recommended",
12+
"plugin:import/recommended",
13+
"plugin:import/typescript",
14+
"plugin:md/prettier",
15+
"prettier"
16+
],
17+
"overrides": [
18+
{
19+
"files": ["*.md"],
20+
"parser":"markdown-eslint-parser"
21+
}
22+
],
23+
"rules": {
24+
"curly":"error",
25+
"eqeqeq":"error",
26+
"no-throw-literal":"error",
27+
"no-console":"error",
28+
"prettier/prettier":"error",
29+
"import/order": [
30+
"error",
31+
{
32+
"alphabetize": {
33+
"order":"asc"
34+
},
35+
"groups": [["builtin","external","internal"],"parent","sibling"]
36+
}
37+
],
38+
"import/no-unresolved": [
39+
"error",
40+
{
41+
"ignore": ["vscode"]
42+
}
43+
],
44+
"@typescript-eslint/no-unused-vars": [
45+
"error",
46+
{
47+
"varsIgnorePattern":"^_"
48+
}
49+
],
50+
"md/remark": [
51+
"error",
52+
{
53+
"no-duplicate-headings": {
54+
"sublings_only":true
55+
}
56+
}
57+
]
58+
},
59+
"ignorePatterns": ["out","dist","**/*.d.ts"]
5960
}

‎.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222

2323
-run:yarn
2424

25+
-run:yarn prettier --check .
26+
2527
-run:yarn lint
2628

2729
-run:yarn build

‎.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
-uses:actions/setup-node@v4
2020
with:
21-
node-version:'18'
21+
node-version:"18"
2222

2323
-run:yarn
2424

‎.prettierignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/dist/
2+
/node_modules/
3+
/out/
4+
/.vscode-test/
5+
/.nyc_output/
6+
/coverage/
7+
*.vsix
8+
flake.lock
9+
yarn-error.log

‎.prettierrc

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

‎.vscode/launch.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"version":"0.2.0",
3-
"configurations": [
4-
{
5-
"name":"Run Extension",
6-
"type":"extensionHost",
7-
"request":"launch",
8-
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
9-
"outFiles": ["${workspaceFolder}/dist/**/*.js"]
10-
}
11-
]
2+
"version":"0.2.0",
3+
"configurations": [
4+
{
5+
"name":"Run Extension",
6+
"type":"extensionHost",
7+
"request":"launch",
8+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
9+
"outFiles": ["${workspaceFolder}/dist/**/*.js"]
10+
}
11+
]
1212
}

‎.vscode/tasks.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44
{
55
"type":"typescript",
66
"tsconfig":"tsconfig.json",
7-
"problemMatcher": [
8-
"$tsc"
9-
],
7+
"problemMatcher": ["$tsc"],
108
"group":"build",
119
"label":"tsc: build"
1210
}
1311
]
14-
}
12+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp