Skip to content

Commit 608414c

Browse files
author
submarine-launched
authored
Merge branch 'master' into isRdl-fix
2 parents 34921b5 + 34a8995 commit 608414c

Some content is hidden

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

47 files changed

+13880
-10832
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Task 512388: Fix eslint warnings and errors in tests
2+
test/*

.eslintrc.js

Lines changed: 254 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,254 @@
1+
// TODO: Remove "warn" settings for the rules after resolving them
2+
module.exports = {
3+
"env": {
4+
"browser": true,
5+
"node": true
6+
},
7+
"extends": [
8+
"plugin:@typescript-eslint/recommended",
9+
"plugin:@typescript-eslint/recommended-requiring-type-checking"
10+
],
11+
"parser": "@typescript-eslint/parser",
12+
"parserOptions": {
13+
"project": "webpack.test.tsconfig.json",
14+
"sourceType": "module"
15+
},
16+
"plugins": [
17+
"eslint-plugin-jsdoc",
18+
"eslint-plugin-prefer-arrow",
19+
"eslint-plugin-import",
20+
"@typescript-eslint"
21+
],
22+
"rules": {
23+
"@typescript-eslint/adjacent-overload-signatures": "warn",
24+
"@typescript-eslint/array-type": [
25+
"warn",
26+
{
27+
"default": "array-simple"
28+
}
29+
],
30+
"@typescript-eslint/await-thenable": "warn",
31+
"@typescript-eslint/ban-ts-comment": "warn",
32+
"@typescript-eslint/ban-types": [
33+
"warn",
34+
{
35+
"types": {
36+
"Object": {
37+
"message": "Avoid using the `Object` type. Did you mean `object`?"
38+
},
39+
"Function": {
40+
"message": "Avoid using the `Function` type. Prefer a specific function type, like `() => void`."
41+
},
42+
"Boolean": {
43+
"message": "Avoid using the `Boolean` type. Did you mean `boolean`?"
44+
},
45+
"Number": {
46+
"message": "Avoid using the `Number` type. Did you mean `number`?"
47+
},
48+
"String": {
49+
"message": "Avoid using the `String` type. Did you mean `string`?"
50+
},
51+
"Symbol": {
52+
"message": "Avoid using the `Symbol` type. Did you mean `symbol`?"
53+
}
54+
}
55+
}
56+
],
57+
"@typescript-eslint/consistent-type-assertions": "warn",
58+
"@typescript-eslint/consistent-type-definitions": "warn",
59+
"@typescript-eslint/dot-notation": "warn",
60+
"@typescript-eslint/explicit-member-accessibility": [
61+
"off",
62+
{
63+
"accessibility": "explicit"
64+
}
65+
],
66+
"@typescript-eslint/explicit-module-boundary-types": "warn",
67+
"@typescript-eslint/indent": [
68+
"warn",
69+
2,
70+
{
71+
"SwitchCase": 1,
72+
"FunctionDeclaration": {
73+
"parameters": "first"
74+
},
75+
"FunctionExpression": {
76+
"parameters": "first"
77+
}
78+
}
79+
],
80+
"@typescript-eslint/member-delimiter-style": [
81+
"warn",
82+
{
83+
"multiline": {
84+
"delimiter": "semi",
85+
"requireLast": true
86+
},
87+
"singleline": {
88+
"delimiter": "semi",
89+
"requireLast": false
90+
}
91+
}
92+
],
93+
"@typescript-eslint/member-ordering": "off",
94+
"@typescript-eslint/naming-convention": "off",
95+
"@typescript-eslint/no-array-constructor": "warn",
96+
"@typescript-eslint/no-empty-function": "warn",
97+
"@typescript-eslint/no-empty-interface": "warn",
98+
"@typescript-eslint/no-explicit-any": "off",
99+
"@typescript-eslint/no-extra-non-null-assertion": "warn",
100+
"@typescript-eslint/no-extra-semi": "warn",
101+
"@typescript-eslint/no-floating-promises": "warn",
102+
"@typescript-eslint/no-for-in-array": "warn",
103+
"@typescript-eslint/no-implied-eval": "warn",
104+
"@typescript-eslint/no-inferrable-types": "warn",
105+
"@typescript-eslint/no-misused-new": "warn",
106+
"@typescript-eslint/no-misused-promises": "warn",
107+
"@typescript-eslint/no-namespace": "warn",
108+
"@typescript-eslint/no-non-null-asserted-optional-chain": "warn",
109+
"@typescript-eslint/no-non-null-assertion": "warn",
110+
"@typescript-eslint/no-parameter-properties": "off",
111+
"@typescript-eslint/no-this-alias": "warn",
112+
"@typescript-eslint/no-unnecessary-type-assertion": "warn",
113+
"@typescript-eslint/no-unsafe-assignment": "warn",
114+
"@typescript-eslint/no-unsafe-call": "warn",
115+
"@typescript-eslint/no-unsafe-member-access": "off",
116+
"@typescript-eslint/no-unsafe-return": "warn",
117+
"@typescript-eslint/no-unused-expressions": "warn",
118+
"@typescript-eslint/no-unused-vars": "warn",
119+
"@typescript-eslint/no-use-before-define": "off",
120+
"@typescript-eslint/no-var-requires": "warn",
121+
"@typescript-eslint/prefer-as-const": "warn",
122+
"@typescript-eslint/prefer-for-of": "warn",
123+
"@typescript-eslint/prefer-function-type": "warn",
124+
"@typescript-eslint/prefer-namespace-keyword": "warn",
125+
"@typescript-eslint/prefer-regexp-exec": "off",
126+
"@typescript-eslint/quotes": [
127+
"off",
128+
{
129+
"avoidEscape": true
130+
}
131+
],
132+
"@typescript-eslint/require-await": "warn",
133+
"@typescript-eslint/restrict-plus-operands": "warn",
134+
"@typescript-eslint/restrict-template-expressions": "warn",
135+
"@typescript-eslint/semi": [
136+
"warn",
137+
"always"
138+
],
139+
"@typescript-eslint/triple-slash-reference": [
140+
"warn",
141+
{
142+
"path": "always",
143+
"types": "prefer-import",
144+
"lib": "always"
145+
}
146+
],
147+
"@typescript-eslint/type-annotation-spacing": "warn",
148+
"@typescript-eslint/unbound-method": "warn",
149+
"@typescript-eslint/unified-signatures": "warn",
150+
"arrow-body-style": "warn",
151+
"arrow-parens": [
152+
"warn",
153+
"always"
154+
],
155+
"brace-style": [
156+
"off",
157+
"1tbs"
158+
],
159+
"comma-dangle": "off",
160+
"complexity": "off",
161+
"constructor-super": "warn",
162+
"curly": "warn",
163+
"eol-last": "warn",
164+
"eqeqeq": [
165+
"warn",
166+
"smart"
167+
],
168+
"guard-for-in": "warn",
169+
"id-blacklist": [
170+
"warn",
171+
"any",
172+
"Number",
173+
"number",
174+
"String",
175+
"string",
176+
"Boolean",
177+
"boolean",
178+
"Undefined",
179+
],
180+
"id-match": "warn",
181+
"import/order": "warn",
182+
"jsdoc/check-alignment": "warn",
183+
"jsdoc/check-indentation": "warn",
184+
"jsdoc/newline-after-description": "warn",
185+
"max-classes-per-file": [
186+
"warn",
187+
1
188+
],
189+
"max-len": "off",
190+
"new-parens": "warn",
191+
"no-array-constructor": "off",
192+
"no-bitwise": "warn",
193+
"no-caller": "warn",
194+
"no-cond-assign": "warn",
195+
"no-console": "off",
196+
"no-debugger": "warn",
197+
"no-empty": "warn",
198+
"no-empty-function": "off",
199+
"no-eval": "warn",
200+
"no-extra-semi": "off",
201+
"no-fallthrough": "off",
202+
"no-implied-eval": "off",
203+
"no-invalid-this": "off",
204+
"no-multiple-empty-lines": "warn",
205+
"no-new-wrappers": "warn",
206+
"no-shadow": [
207+
"warn",
208+
{
209+
"hoist": "all"
210+
}
211+
],
212+
"no-throw-literal": "warn",
213+
"no-trailing-spaces": "warn",
214+
"no-undef-init": "warn",
215+
"no-underscore-dangle": "warn",
216+
"no-unsafe-finally": "warn",
217+
"no-unused-labels": "warn",
218+
"no-unused-vars": "off",
219+
"no-var": "warn",
220+
"object-shorthand": ["warn", "never"],
221+
"one-var": [
222+
"warn",
223+
"never"
224+
],
225+
"prefer-arrow/prefer-arrow-functions": "off",
226+
"prefer-const": "warn",
227+
"prefer-rest-params": "warn",
228+
"quote-props": [
229+
"warn",
230+
"consistent-as-needed"
231+
],
232+
"radix": "warn",
233+
"require-await": "off",
234+
"space-before-function-paren": [
235+
"warn",
236+
{
237+
"anonymous": "never",
238+
"asyncArrow": "always",
239+
"named": "never"
240+
}
241+
],
242+
"spaced-comment": [
243+
"warn",
244+
"always",
245+
{
246+
"markers": [
247+
"/"
248+
]
249+
}
250+
],
251+
"use-isnan": "warn",
252+
"valid-typeof": "off"
253+
}
254+
};

.pipelines/restore.ps1

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,8 @@ Write-Host "start: try install latest npm version"
1515
& npm install npm@latest -g
1616
Write-Host "done: try install latest npm version"
1717

18-
Write-Host "start: install typings globaly"
19-
& npm install typings -g
20-
Write-Host "done: install typings globaly"
21-
2218
# Do not update $exitCode because we do not want to fail if install latest npm version fails.
2319

24-
Write-Host "start: typings install"
25-
& typings install
26-
Write-Host "done: typings install"
27-
$exitCode += $LASTEXITCODE;
28-
2920
Write-Host "start: npm install"
3021
& npm install --no-audit --no-save
3122
Write-Host "done: npm install"

CHANGELOG.md

Lines changed: 0 additions & 61 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Open the address to view in the browser:
7373
http://127.0.0.1:8080/
7474
```
7575

76-
## Updating the documenatation (For those with push permissions only)
76+
## Updating the documentation (For those with push permissions only)
7777
First run the command to build the docs and open it to verify the changes are as expected.
7878

7979
```

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# powerbi-client
2-
JavaScript library for embedding Power BI into your apps.
2+
A client side library for embedding Power BI using JavaScript or TypeScript into your apps.
33

44
[![Build Status](https://img.shields.io/travis/Microsoft/PowerBI-JavaScript/master.svg)](https://travis-ci.org/Microsoft/PowerBI-JavaScript)
55
[![NPM Version](https://img.shields.io/npm/v/powerbi-client.svg)](https://www.npmjs.com/package/powerbi-client)
@@ -9,14 +9,14 @@ JavaScript library for embedding Power BI into your apps.
99
[![GitHub tag](https://img.shields.io/github/tag/microsoft/powerbi-javascript.svg)](https://github.com/Microsoft/PowerBI-JavaScript/tags)
1010
[![Gitter](https://img.shields.io/gitter/room/Microsoft/PowerBI-JavaScript.svg)](https://gitter.im/Microsoft/PowerBI-JavaScript)
1111

12-
## Wiki
13-
See the [wiki](https://github.com/Microsoft/PowerBI-JavaScript/wiki) for more details about embedding, service configuration, setting a default page, page navigation, dynamically applying filters, and more.
12+
## Documentation
13+
See the [Power BI embedded analytics Client APIs documentation](https://docs.microsoft.com/javascript/api/overview/powerbi/) to learn how to embed a Power BI report in your application and how to use the client APIs.
1414

15-
## Code Docs
16-
See the [code docs](https://microsoft.github.io/PowerBI-JavaScript) for detailed information about classes, interfaces, types, etc.
15+
## Reference
16+
See the [library reference](https://docs.microsoft.com/en-us/javascript/api/powerbi/powerbi-client/) for detailed information about classes, interfaces, types, etc.
1717

18-
## Demo
19-
New [live demo](https://microsoft.github.io/PowerBI-JavaScript/demo) for a sample application using the `powerbi-client` library in scenarios such as page navigation, applying filters, updating settings, and more.
18+
## Playground
19+
The [playground](https://aka.ms/pbieplayground) is the home for Power BI embedded analytics, where you can get hands-on coding experience, embed your own reports, and interact with our client APIs to see instant results. In addition, you’ll find there our interactive showcases to get inspiration regarding how you can apply these features in your applications. Lastly, we’ve created a new learning center to help you find all the relevant samples, tutorials, and documentation you’ll need for a successful integration.
2020

2121
## Installation
2222

@@ -55,4 +55,4 @@ This project welcomes contributions and suggestions. Most contributions require
5555

5656
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
5757

58-
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments
58+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments

0 commit comments

Comments
 (0)