Skip to content

Commit 2935e4c

Browse files
author
Jakub Vacek
committed
add eslint
1 parent 2a364ae commit 2935e4c

9 files changed

+655
-3
lines changed

.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
charset = utf-8
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.prettierrc

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"arrowParens": "avoid",
3+
"bracketSpacing": true,
4+
"cursorOffset": -1,
5+
"endOfLine": "auto",
6+
"htmlWhitespaceSensitivity": "css",
7+
"insertPragma": false,
8+
"jsxBracketSameLine": false,
9+
"jsxSingleQuote": false,
10+
"pluginSearchDirs": [],
11+
"plugins": [],
12+
"printWidth": 80,
13+
"proseWrap": "preserve",
14+
"quoteProps": "as-needed",
15+
"rangeStart": 0,
16+
"requirePragma": false,
17+
"semi": true,
18+
"singleQuote": false,
19+
"tabWidth": 2,
20+
"trailingComma": "none",
21+
"useTabs": false,
22+
"vueIndentScriptAndStyle": false
23+
}

.vscode/extensions.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
// See http://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3+
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4+
5+
// List of extensions which should be recommended for users of this workspace.
6+
"recommendations": ["dbaeumer.vscode-eslint"],
7+
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
8+
"unwantedRecommendations": [
9+
"esbenp.prettier-vscode",
10+
"ms-vscode.vscode-typescript-tslint-plugin"
11+
]
12+
}

.vscode/launch.json

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "run",
11+
"program": "${workspaceFolder}/bin/run",
12+
"args": [
13+
"run",
14+
"https://gitlab.com/gitlab-org/gitlab"
15+
],
16+
"console": "integratedTerminal",
17+
"internalConsoleOptions": "neverOpen",
18+
"disableOptimisticBPs": true,
19+
},
20+
{
21+
"type": "node",
22+
"request": "launch",
23+
"name": "Jest All",
24+
"program": "${workspaceFolder}/node_modules/.bin/jest",
25+
"args": [
26+
"--runInBand"
27+
],
28+
"console": "integratedTerminal",
29+
"internalConsoleOptions": "neverOpen",
30+
"disableOptimisticBPs": true,
31+
"windows": {
32+
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
33+
}
34+
},
35+
{
36+
"type": "node",
37+
"request": "launch",
38+
"name": "Jest Current File",
39+
"program": "${workspaceFolder}/node_modules/.bin/jest",
40+
"args": [
41+
"${fileBasenameNoExtension}",
42+
"--config",
43+
"jest.config.js"
44+
],
45+
"console": "integratedTerminal",
46+
"internalConsoleOptions": "neverOpen",
47+
"disableOptimisticBPs": true,
48+
"windows": {
49+
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
50+
}
51+
}
52+
]
53+
}

.vscode/scanner.code-snippets

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
// Place your scanner workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
3+
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
4+
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
5+
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
6+
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
7+
// Placeholders with the same ids are connected.
8+
// Example:
9+
// "Print to console": {
10+
// "scope": "javascript,typescript",
11+
// "prefix": "log",
12+
// "body": [
13+
// "console.log('$1');",
14+
// "$2"
15+
// ],
16+
// "description": "Log output to console"
17+
// }
18+
"Insert empty JSDoc comment": {
19+
"prefix": "dc",
20+
"body": ["/**", " * $1", " */"],
21+
"description": "Insert empty JSDoc comment"
22+
},
23+
}

.vscode/settings.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"editor.formatOnSave": false,
3+
"[javascript]": {
4+
"editor.formatOnSave": false,
5+
},
6+
"[javascriptreact]": {
7+
"editor.formatOnSave": false,
8+
},
9+
"[typescript]": {
10+
"editor.formatOnSave": false,
11+
},
12+
"[typescriptreact]": {
13+
"editor.formatOnSave": false,
14+
},
15+
"eslint.enable": true,
16+
"eslint.alwaysShowStatus": true,
17+
"eslint.packageManager": "yarn",
18+
"typescript.tsdk": "node_modules/typescript/lib",
19+
"typescript.preferences.importModuleSpecifier": "relative",
20+
"editor.codeActionsOnSave": {
21+
"source.fixAll.eslint": true
22+
}
23+
}

0 commit comments

Comments
 (0)