Skip to content

Commit 2dffe08

Browse files
authored
Merge pull request #909 from microsoft/455736_yaml_submodule
455736 yaml submodule
2 parents 8fc1a4f + 3e52686 commit 2dffe08

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+3469
-2352
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
[submodule "packages/docs-build"]
22
path = packages/docs-build
33
url = https://github.com/docascode/vscode-docs-build
4-
[submodule "packages/docs-yaml"]
5-
path = packages/docs-yaml
6-
url = https://github.com/microsoft/docs-yaml

packages/docs-markdown/src/helper/utility.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/interface-name-prefix */
21
/* eslint-disable @typescript-eslint/prefer-for-of */
32
import * as recursive from 'recursive-readdir';
43
import {

packages/docs-yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/docs-yaml/.eslintrc.js

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
browser: false,
5+
node: true,
6+
es6: true
7+
},
8+
extends: [
9+
'plugin:@typescript-eslint/recommended',
10+
'plugin:@typescript-eslint/recommended-requiring-type-checking',
11+
'plugin:import/typescript'
12+
],
13+
parser: '@typescript-eslint/parser',
14+
parserOptions: {
15+
tsconfigRootDir: __dirname,
16+
project: ['./tsconfig.json']
17+
},
18+
plugins: ['@typescript-eslint', '@typescript-eslint/tslint', 'import'],
19+
settings: {
20+
'import/resolver': 'webpack'
21+
},
22+
rules: {
23+
'@typescript-eslint/no-inferrable-types': 'off',
24+
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
25+
'@typescript-eslint/require-await': 'off',
26+
'@typescript-eslint/camelcase': 'off',
27+
'@typescript-eslint/explicit-function-return-type': 'off',
28+
'@typescript-eslint/adjacent-overload-signatures': 'error',
29+
'@typescript-eslint/array-type': 'error',
30+
'@typescript-eslint/class-name-casing': 'error',
31+
'@typescript-eslint/consistent-type-assertions': 'off',
32+
'@typescript-eslint/indent': ['off', 'tabs'],
33+
'@typescript-eslint/interface-name-prefix': 'error',
34+
'@typescript-eslint/member-ordering': 'error',
35+
'@typescript-eslint/no-empty-function': 'off',
36+
'@typescript-eslint/no-empty-interface': 'error',
37+
'@typescript-eslint/no-explicit-any': 'off',
38+
'@typescript-eslint/no-misused-new': 'error',
39+
'@typescript-eslint/no-namespace': 'error',
40+
'@typescript-eslint/no-parameter-properties': 'off',
41+
'@typescript-eslint/no-use-before-define': 'off',
42+
'@typescript-eslint/no-var-requires': 'error',
43+
'@typescript-eslint/prefer-for-of': 'error',
44+
'@typescript-eslint/prefer-function-type': 'error',
45+
'@typescript-eslint/prefer-namespace-keyword': 'error',
46+
'@typescript-eslint/no-misused-promises': 'off',
47+
'@typescript-eslint/prefer-includes': 'off',
48+
'@typescript-eslint/quotes': [
49+
'error',
50+
'single',
51+
{ allowTemplateLiterals: true, avoidEscape: true }
52+
],
53+
'@typescript-eslint/triple-slash-reference': 'error',
54+
'@typescript-eslint/unified-signatures': 'error',
55+
'arrow-parens': ['error', 'as-needed'],
56+
camelcase: 'off',
57+
'comma-dangle': 'error',
58+
complexity: 'off',
59+
'constructor-super': 'error',
60+
'dot-notation': 'error',
61+
eqeqeq: ['error', 'smart'],
62+
'guard-for-in': 'off',
63+
'id-blacklist': 'off',
64+
'id-match': 'off',
65+
'import/order': 'off',
66+
'max-classes-per-file': 'off',
67+
'max-len': 'off',
68+
'new-parens': 'error',
69+
'no-bitwise': 'off',
70+
'no-caller': 'error',
71+
'no-console': 'error',
72+
'no-debugger': 'error',
73+
'no-eval': 'error',
74+
'no-new-wrappers': 'error',
75+
'no-throw-literal': 'error',
76+
'no-trailing-spaces': 'error',
77+
'no-undef-init': 'error',
78+
'no-unsafe-finally': 'error',
79+
'no-unused-expressions': 'error',
80+
'no-unused-labels': 'error',
81+
'no-var': 'error',
82+
'object-shorthand': 'error',
83+
'one-var': ['error', 'never'],
84+
'prefer-arrow/prefer-arrow-functions': 'off',
85+
'prefer-const': [
86+
'error',
87+
{
88+
destructuring: 'all'
89+
}
90+
],
91+
'quote-props': ['error', 'as-needed'],
92+
radix: 'off',
93+
'space-before-function-paren': [
94+
'error',
95+
{
96+
anonymous: 'always',
97+
named: 'never',
98+
asyncArrow: 'always'
99+
}
100+
],
101+
'spaced-comment': ['off', 'never'],
102+
'use-isnan': 'error',
103+
'valid-typeof': 'off',
104+
'@typescript-eslint/tslint/config': [
105+
'error',
106+
{
107+
rules: {
108+
'jsdoc-format': true,
109+
'no-reference-import': true
110+
}
111+
}
112+
],
113+
'@typescript-eslint/unbound-method': 'off',
114+
'@typescript-eslint/member-delimiter-style': [
115+
'error',
116+
{
117+
multiline: {
118+
delimiter: 'semi',
119+
requireLast: true
120+
},
121+
singleline: {
122+
delimiter: 'semi',
123+
requireLast: false
124+
}
125+
}
126+
],
127+
'@typescript-eslint/ban-ts-ignore': 'off',
128+
'@typescript-eslint/prefer-string-starts-ends-with': 'off',
129+
'@typescript-eslint/prefer-regexp-exec': 'off',
130+
'no-unused-expressions': 'off',
131+
'no-throw-literal': 'off',
132+
'@typescript-eslint/no-unused-vars': 'off',
133+
'import/no-unresolved': [2, { ignore: ['squirejs'] }],
134+
'import/no-cycle': [2, { maxDepth: 10 }],
135+
semi: ['error', 'always']
136+
}
137+
};

packages/docs-yaml/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
out/
2+
node_modules
3+
.vscode-test/
4+
*.vsix
5+
dist/

packages/docs-yaml/.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dist
2+
node_modules
3+
.vscode
4+
.vscode-test
5+
out
6+
src/test/data
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"printWidth": 100,
5+
"trailingComma": "none",
6+
"arrowParens": "avoid",
7+
"endOfLine": "auto"
8+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
3+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"version": "0.1.0",
3+
"configurations": [
4+
{
5+
"name": "Launch Extension",
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"runtimeExecutable": "${execPath}",
9+
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
10+
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
11+
"preLaunchTask": "webpack"
12+
},
13+
{
14+
"name": "Extension Tests",
15+
"type": "extensionHost",
16+
"request": "launch",
17+
"runtimeExecutable": "${execPath}",
18+
"args": [
19+
"${workspaceFolder}/src/test/data/repo",
20+
"--extensionDevelopmentPath=${workspaceFolder}",
21+
"--extensionTestsPath=${workspaceFolder}/out/src/test/suite/index",
22+
"--colors"
23+
],
24+
"outFiles": ["${workspaceFolder}/out/src/**/*.js"],
25+
"preLaunchTask": "mocha"
26+
}
27+
]
28+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Place your settings in this file to overwrite default and user settings.
2+
{
3+
"files.exclude": {
4+
"out": false // set this to true to hide the "out" folder with the compiled JS files
5+
},
6+
"search.exclude": {
7+
"out": true // set this to false to include "out" folder in search results
8+
},
9+
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10+
"typescript.tsc.autoDetect": "off",
11+
"editor.renderWhitespace": "all",
12+
"editor.codeActionsOnSave": {
13+
"source.eslint.fixAll": true
14+
},
15+
"editor.formatOnSave": true,
16+
"editor.formatOnPaste": false,
17+
"editor.defaultFormatter": "esbenp.prettier-vscode",
18+
"editor.tabSize": 2
19+
}

0 commit comments

Comments
 (0)