mirror of
https://github.com/kiteco/vscode-plugin.git
synced 2024-09-11 16:08:10 +03:00
7446960904
* feat: presentational notification handler * improve: migrate hover.js to typescript * rename: kite.more-position -> kite.copilot-docs-from-position * fix: events checks version from package to avoid circular dependencies * refactor: docs-related commands lives with hover provider * refactor: hover.ts -> docs.ts and no default export * add: check for notification on docs command error * improve: render buttons in presentational error notif * clean: remove unused kite.more * improve: use promisifiedKiteAPIRequest insetad of Kite.request Avoids circular dependency when compiling for typescript. * improve: variable naming * improve: log unexpected hover errors * improve: notifyFromError takes optional default error message * fix: don't notify on JSON.parse error It is expected that not all errors will send a notification. * improve: set up ICommandRegistrant[] to signal refactor intent
40 lines
745 B
JSON
40 lines
745 B
JSON
{
|
|
"parser": "@typescript-eslint/parser",
|
|
"plugins": [
|
|
"@typescript-eslint"
|
|
],
|
|
"parserOptions": {
|
|
"ecmaVersion": 6,
|
|
"sourceType": "module"
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"@typescript-eslint/no-unused-vars"
|
|
],
|
|
"env": {
|
|
"browser": false,
|
|
"commonjs": true,
|
|
"es6": true,
|
|
"node": true,
|
|
"mocha": true
|
|
},
|
|
"rules": {
|
|
"max-len": "off",
|
|
"semi": "error",
|
|
"no-trailing-spaces": "error",
|
|
"indent": ["error", 2,
|
|
{
|
|
"VariableDeclarator": "first",
|
|
"SwitchCase": 1,
|
|
"MemberExpression": "off"
|
|
}
|
|
],
|
|
"object-curly-spacing": ["error", "always",
|
|
{
|
|
"arraysInObjects": false,
|
|
"objectsInObjects": false
|
|
}
|
|
]
|
|
}
|
|
}
|