Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 0 additions & 66 deletions .eslintrc.js

This file was deleted.

8 changes: 4 additions & 4 deletions .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ module.exports = {
{
files: "*.json",
options: {
useTabs: false
}
}
]
useTabs: false,
},
},
],
};
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

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

## 5.0.0

* Updated packages
* Used new eslint.config.js

## 4.3.1

* Extended audit for network calls
Expand Down
57 changes: 57 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
const js = require("@eslint/js");
const n = require("eslint-plugin-n");
const prettierPlugin = require("eslint-plugin-prettier");
const prettierConfig = require("eslint-config-prettier");

module.exports = [
js.configs.recommended,
n.configs["flat/recommended-script"],
{
plugins: {
prettier: prettierPlugin,
n,
},

languageOptions: {
ecmaVersion: 2021,
sourceType: "script",
},

rules: {
...prettierConfig.rules,
"prettier/prettier": "error",
"no-undef": "error",
"no-extra-semi": "error",
"no-template-curly-in-string": "error",
"no-caller": "error",
"no-control-regex": "off",
"no-async-promise-executor": "off",
yoda: "error",
eqeqeq: "error",
"brace-style": "off",
"eol-last": "error",
"no-extra-bind": "warn",
"no-use-before-define": "off",
"no-unused-vars": ["error", { args: "none" }],
"no-unsafe-negation": "error",
"no-loop-func": "warn",
indent: "off",
"no-console": "off",
"n/global-require": "off",
"n/no-process-exit": "error",
"n/no-unsupported-features/es-syntax": "error",
"n/no-deprecated-api": "error",
"n/no-missing-import": "error",
"n/no-unpublished-bin": "error",
"n/no-unpublished-require": "error",
"n/process-exit-as-throw": "error",
},
},
{
files: ["eslint.config.js", "**/*.config.js", "**/*.config.cjs"],
rules: {
"n/no-unpublished-require": "off",
"n/no-unpublished-import": "off",
},
},
];
Loading
Loading