vscode-plugin/.eslintrc.json
tonycheang 7446960904
Notification for All Feat Pro (#370)
* 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
2021-01-29 16:49:12 -08:00

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
}
]
}
}