Skip to content

Commit 31564ae

Browse files
authored
Merge pull request #54 from contentstack/staging
Staging --> main
2 parents e35c9af + 94a0f90 commit 31564ae

File tree

25 files changed

+38598
-12715
lines changed

25 files changed

+38598
-12715
lines changed

ui/.eslintrc.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,7 @@ module.exports = {
33
browser: true,
44
es2021: true,
55
},
6-
extends: [
7-
"plugin:react/recommended",
8-
"plugin:import/typescript",
9-
"airbnb",
10-
"airbnb-typescript",
11-
"prettier",
12-
],
6+
extends: ["plugin:react/recommended", "plugin:import/typescript", "airbnb", "airbnb-typescript", "prettier"],
137
parser: "@typescript-eslint/parser",
148
parserOptions: {
159
ecmaFeatures: {
@@ -23,6 +17,9 @@ module.exports = {
2317
},
2418
plugins: ["import", "react", "react-hooks", "@typescript-eslint"],
2519
rules: {
20+
"arrow-body-style": 0,
21+
"no-plusplus": 0,
22+
"no-underscore-dangle": 0,
2623
"operator-linebreak": [
2724
"error",
2825
"after",

ui/config-overrides.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
2+
3+
module.exports = function override(config) {
4+
config.plugins.push(
5+
new NodePolyfillPlugin({
6+
excludeAliases: ["console"],
7+
})
8+
);
9+
return config;
10+
};

0 commit comments

Comments
 (0)