Skip to content

Commit d85b033

Browse files
authored
fix: Remove missing plugin from ESLint config (#38)
* removed deprecated webpack flag * removed missing plugin https://dev.azure.com/vertigis/Studio/_boards/board/t/Cross%20Product%20Infrastructure/Stories?workitem=321511
1 parent 37ab75d commit d85b033

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

config/.eslintrc/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
project: "./tsconfig.json",
1010
sourceType: "module",
1111
},
12-
plugins: ["@typescript-eslint", "only-warn", "react", "react-hooks"],
12+
plugins: ["@typescript-eslint", "react", "react-hooks"],
1313
env: {
1414
browser: true,
1515
commonjs: true,

config/webpack.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import webpack from "webpack";
1010
import paths from "./paths.js";
1111
import GenerateActivityMetadataPlugin from "../lib/GenerateActivityMetadataPlugin.js";
1212

13-
const isEnvDevelopment = process.env.NODE_ENV === "development";
1413
const isEnvProduction = process.env.NODE_ENV === "production";
1514

1615
// Generate random identifier to ensure uniqueness in the application. This is
@@ -55,7 +54,11 @@ export default {
5554
filename: "[name].js",
5655
},
5756
module: {
58-
strictExportPresence: true,
57+
parser: {
58+
javascript: {
59+
exportsPresence: "error",
60+
},
61+
},
5962
rules: [
6063
{
6164
// "oneOf" will traverse all following loaders until one will

0 commit comments

Comments
 (0)