Skip to content

Commit 786e2ee

Browse files
authored
Update packages (#105)
* Update packages * Update eslint config * Fix eslint errors * Bump version * Downgrade chalk version * Update code * Add logging options to ajv
1 parent b8b5fa7 commit 786e2ee

15 files changed

Lines changed: 883 additions & 853 deletions

.eslintrc.js

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

.prettierrc.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ module.exports = {
66
{
77
files: "*.json",
88
options: {
9-
useTabs: false
10-
}
11-
}
12-
]
9+
useTabs: false,
10+
},
11+
},
12+
],
1313
};

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
This page contains information about changes to the **PowerBI-visuals-webpack-plugin**.
44

5+
## 5.0.0
6+
7+
* Updated packages
8+
* Used new eslint.config.js
9+
510
## 4.3.1
611

712
* Extended audit for network calls

eslint.config.js

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
const js = require("@eslint/js");
2+
const n = require("eslint-plugin-n");
3+
const prettierPlugin = require("eslint-plugin-prettier");
4+
const prettierConfig = require("eslint-config-prettier");
5+
6+
module.exports = [
7+
js.configs.recommended,
8+
n.configs["flat/recommended-script"],
9+
{
10+
plugins: {
11+
prettier: prettierPlugin,
12+
n,
13+
},
14+
15+
languageOptions: {
16+
ecmaVersion: 2021,
17+
sourceType: "script",
18+
},
19+
20+
rules: {
21+
...prettierConfig.rules,
22+
"prettier/prettier": "error",
23+
"no-undef": "error",
24+
"no-extra-semi": "error",
25+
"no-template-curly-in-string": "error",
26+
"no-caller": "error",
27+
"no-control-regex": "off",
28+
"no-async-promise-executor": "off",
29+
yoda: "error",
30+
eqeqeq: "error",
31+
"brace-style": "off",
32+
"eol-last": "error",
33+
"no-extra-bind": "warn",
34+
"no-use-before-define": "off",
35+
"no-unused-vars": ["error", { args: "none" }],
36+
"no-unsafe-negation": "error",
37+
"no-loop-func": "warn",
38+
indent: "off",
39+
"no-console": "off",
40+
"n/global-require": "off",
41+
"n/no-process-exit": "error",
42+
"n/no-unsupported-features/es-syntax": "error",
43+
"n/no-deprecated-api": "error",
44+
"n/no-missing-import": "error",
45+
"n/no-unpublished-bin": "error",
46+
"n/no-unpublished-require": "error",
47+
"n/process-exit-as-throw": "error",
48+
},
49+
},
50+
{
51+
files: ["src/**/*.js"],
52+
languageOptions: {
53+
sourceType: "module",
54+
ecmaVersion: 2021,
55+
},
56+
},
57+
{
58+
files: ["eslint.config.js", "**/*.config.js", "**/*.config.cjs"],
59+
rules: {
60+
"n/no-unpublished-require": "off",
61+
"n/no-unpublished-import": "off",
62+
},
63+
},
64+
];

0 commit comments

Comments
 (0)