Skip to content

Commit

Permalink
squashed linting fix (#93)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Metzger <alexander@metzger.dk>
  • Loading branch information
SanderGi and SanderGi committed Aug 4, 2023
1 parent 74d30af commit 1c87303
Show file tree
Hide file tree
Showing 10 changed files with 23,598 additions and 5,192 deletions.
7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
dist
coverage
test
.eslintrc.js
karma.conf.ts
test.webpack.config.js
20 changes: 20 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
env: {
"browser": true,
"es6": true,
"es2017": true
},
root: true,
parser: "@typescript-eslint/parser",
parserOptions: {
project: "tsconfig.json",
tsconfigRootDir: ".",
},
plugins: [
"powerbi-visuals"
],
extends: [
"plugin:powerbi-visuals/recommended"
],
rules: {}
};
32 changes: 14 additions & 18 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"customSyntax": "postcss-less",
"ignoreFiles": [
"./vendor/**/*"
],
Expand All @@ -9,7 +10,7 @@
"color-no-hex": null,
"color-no-invalid-hex": true,
"font-weight-notation": null,
"function-blacklist": null,
"function-disallowed-list": null,
"function-calc-no-unspaced-operator": true,
"function-comma-newline-after": "always-multi-line",
"function-comma-newline-before": "never-multi-line",
Expand All @@ -21,18 +22,18 @@
"function-parentheses-newline-inside": null,
"function-parentheses-space-inside": "never",
"function-url-scheme-disallowed-list": null,
"function-whitelist": null,
"function-allowed-list": null,
"function-whitespace-after": "always",
"number-leading-zero": "always",
"number-max-precision": null,
"number-no-trailing-zeros": true,
"string-no-newline": true,
"string-quotes": "double",
"time-no-imperceptible": null,
"unit-blacklist": null,
"time-min-milliseconds": 100,
"declaration-property-unit-disallowed-list": null,
"unit-case": "lower",
"unit-no-unknown": true,
"unit-whitelist": null,
"declaration-property-unit-allowed-list": null,
"value-no-vendor-prefix": null,
"value-keyword-case": "lower",
"value-list-comma-newline-after": "always-multi-line",
Expand Down Expand Up @@ -64,37 +65,34 @@
"block-opening-brace-space-after": "always-single-line",
"block-opening-brace-space-before": "always",
"selector-attribute-brackets-space-inside": "never",
"selector-attribute-operator-blacklist": null,
"selector-attribute-operator-disallowed-list": null,
"selector-attribute-operator-space-after": "never",
"selector-attribute-operator-space-before": "never",
"selector-attribute-operator-whitelist": null,
"selector-attribute-operator-allowed-list": null,
"selector-class-pattern": null,
"selector-combinator-space-after": "always",
"selector-combinator-space-before": "always",
"selector-id-pattern": null,
"selector-max-compound-selectors": 4,
"selector-max-specificity": null,
"selector-no-selector-max-attribute": null,
"selector-no-combinator": null,
"selector-no-id": null,
"selector-no-type": null,
"selector-no-universal": null,
"selector-max-combinators": 1,
"selector-max-id": 0,
"selector-max-type": 1,
"selector-max-universal": 0,
"selector-no-vendor-prefix": null,
"selector-pseudo-class-case": "lower",
"selector-pseudo-class-no-unknown": true,
"selector-pseudo-class-parentheses-space-inside": "never",
"selector-pseudo-element-case": "lower",
"selector-pseudo-element-colon-notation": "double",
"selector-pseudo-element-no-unknown": true,
"selector-root-no-composition": null,
"selector-type-case": "lower",
"selector-type-no-unknown": true,
"selector-max-empty-lines": 0,
"selector-list-comma-newline-after": "always",
"selector-list-comma-newline-before": "never-multi-line",
"selector-list-comma-space-after": "always-single-line",
"selector-list-comma-space-before": "never",
"root-no-standard-properties": null,
"rule-empty-line-before": [
"always",
{
Expand Down Expand Up @@ -134,7 +132,7 @@
"at-rule-semicolon-newline-after": "always",
"comment-empty-line-before": null,
"comment-whitespace-inside": null,
"comment-word-blacklist": null,
"comment-word-disallowed-list": null,
"indentation": [
4,
{
Expand All @@ -150,9 +148,7 @@
"no-duplicate-selectors": true,
"no-eol-whitespace": true,
"no-extra-semicolons": true,
"no-indistinguishable-colors": null,
"no-invalid-double-slash-comments": true,
"no-unknown-animations": null,
"no-unsupported-browser-features": null
"no-unknown-animations": null
}
}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 2.3.0
* Fixed linting
* Updated config in .stylelintrc following the CHANGELOG and migration guide
* Added es-lint following the power-bi standards
* Removed tslint
* Fixed the code and styles to pass the linting

## 2.2.2
* Updated visualData to use matrix builder from test utils
* Updated test.webpack.config.json for development mode
Expand Down

0 comments on commit 1c87303

Please sign in to comment.