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

Commitb5a6656

Browse files
committed
lint src files
1 parent95f9621 commitb5a6656

30 files changed

+1797
-1148
lines changed

‎.eslintrc.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports={
2+
parser:'@typescript-eslint/parser',// Specifies the ESLint parser
3+
extends:[
4+
'plugin:@typescript-eslint/recommended',// Uses the recommended rules from the@typescript-eslint/eslint-plugin
5+
'prettier/@typescript-eslint',// Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
6+
'plugin:prettier/recommended',// Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array
7+
],
8+
parserOptions:{
9+
ecmaVersion:2018,// Allows for the parsing of modern ECMAScript features
10+
sourceType:'module',// Allows for the use of imports
11+
},
12+
rules:{
13+
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
14+
'@typescript-eslint/explicit-function-return-type':'off',
15+
'@typescript-eslint/no-explicit-any':'off',
16+
'@typescript-eslint/ban-ts-ignore':'off',
17+
'@typescript-eslint/no-unused-vars':'off',
18+
'@typescript-eslint/camelcase':'off',
19+
},
20+
};

‎.vscode/settings.json

Lines changed: 24 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,27 @@
11
{
2-
// autofix
3-
// "eslint.autoFixOnSave": true,
4-
// "eslint.validate": [
5-
// "javascript",
6-
// {
7-
// "language": "typescript",
8-
// "autoFix": true
9-
//},
10-
// {
11-
// "language": "typescriptreact",
12-
// "autoFix": true
13-
// }
14-
// ],
15-
"editor.codeActionsOnSave": {
16-
"source.fixAll":true
17-
},
18-
"tslint.enable":true,
19-
"[javascript]": {
20-
"editor.formatOnSave":true
21-
},
22-
"[typescript]": {
23-
"editor.formatOnSave":true
24-
},
25-
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
26-
// "typescript.tsc.autoDetect": "off",
27-
"files.exclude": {
28-
"out":false// set this to true to hide the "out" folder with the compiled JS files
29-
},
30-
"search.exclude": {
31-
"out":true// set this to false to include "out" folder in search results
2+
"editor.formatOnSave":true,
3+
"eslint.autoFixOnSave":true,
4+
"eslint.validate": ["javascript", {"language":"typescript","autoFix":true }],
5+
"[javascript]": {
6+
"editor.formatOnSave":false
327
},
33-
34-
// styles
35-
"editor.formatOnSave":true,
36-
"workbench.colorCustomizations": {
37-
"activityBar.background":"#000000",
38-
"titleBar.activeBackground":"#000000",
39-
"titleBar.activeForeground":"#FFFFFF"
40-
}
8+
"[typescript]": {
9+
"editor.formatOnSave":false
10+
},
11+
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
12+
"files.exclude": {
13+
"build":false// set this to true to hide the "out" folder with the compiled JS files
14+
},
15+
"search.exclude": {
16+
"build":true// set this to false to include "out" folder in search results
17+
},
18+
// styles
19+
"workbench.colorCustomizations": {
20+
"activityBar.background":"#000000",
21+
"titleBar.activeBackground":"#000000",
22+
"titleBar.activeForeground":"#FFFFFF"
23+
},
24+
"cSpell.ignoreWords": [
25+
"camelcase"
26+
]
4127
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp