aboutsummaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui
diff options
context:
space:
mode:
Diffstat (limited to 'packages/merchant-backoffice-ui')
-rw-r--r--packages/merchant-backoffice-ui/.eslintrc.cjs28
-rw-r--r--packages/merchant-backoffice-ui/package.json25
2 files changed, 34 insertions, 19 deletions
diff --git a/packages/merchant-backoffice-ui/.eslintrc.cjs b/packages/merchant-backoffice-ui/.eslintrc.cjs
new file mode 100644
index 000000000..05618b499
--- /dev/null
+++ b/packages/merchant-backoffice-ui/.eslintrc.cjs
@@ -0,0 +1,28 @@
+module.exports = {
+ extends: [
+ 'eslint:recommended',
+ 'plugin:@typescript-eslint/recommended',
+ 'plugin:react/recommended',
+ ],
+ parser: '@typescript-eslint/parser',
+ plugins: ['@typescript-eslint', 'header'],
+ root: true,
+ rules: {
+ "react/no-unknown-property": 0,
+ "react/no-unescaped-entities": 0,
+ "@typescript-eslint/no-namespace": 0,
+ "@typescript-eslint/no-unused-vars": [2,{argsIgnorePattern:"^_"}],
+ "header/header": [2,"copyleft-header.js"]
+ },
+ parserOptions: {
+ ecmaVersion: 6,
+ sourceType: 'module',
+ jsx: true,
+ },
+ settings: {
+ react: {
+ version: "18",
+ pragma: "h",
+ }
+ },
+};
diff --git a/packages/merchant-backoffice-ui/package.json b/packages/merchant-backoffice-ui/package.json
index 84ea483d8..b00133251 100644
--- a/packages/merchant-backoffice-ui/package.json
+++ b/packages/merchant-backoffice-ui/package.json
@@ -19,20 +19,6 @@
"typedoc": "typedoc --out dist/typedoc ./src/",
"pretty": "prettier --write src"
},
- "eslintConfig": {
- "plugins": [
- "header"
- ],
- "rules": {
- "header/header": [
- 2,
- "copyleft-header.js"
- ]
- },
- "extends": [
- "prettier"
- ]
- },
"dependencies": {
"@gnu-taler/taler-util": "workspace:*",
"@gnu-taler/web-util": "workspace:*",
@@ -46,14 +32,18 @@
"yup": "^0.32.9"
},
"devDependencies": {
+ "eslint": "^8.56.0",
+ "@typescript-eslint/eslint-plugin": "^6.19.0",
+ "@typescript-eslint/parser": "^6.19.0",
+ "eslint-config-prettier": "^9.1.0",
+ "eslint-plugin-react": "^7.33.2",
+
"@creativebulma/bulma-tooltip": "^1.2.0",
"@gnu-taler/pogen": "^0.0.5",
"@types/chai": "^4.3.0",
"@types/history": "^4.7.8",
"@types/mocha": "^8.2.3",
"@types/node": "^18.11.17",
- "@typescript-eslint/eslint-plugin": "^4.22.0",
- "@typescript-eslint/parser": "^4.22.0",
"base64-inline-loader": "^1.1.1",
"bulma": "^0.9.2",
"bulma-checkbox": "^1.1.1",
@@ -64,9 +54,6 @@
"bulma-upload-control": "^1.2.0",
"chai": "^4.3.6",
"dotenv": "^8.2.0",
- "eslint": "^7.25.0",
- "eslint-config-preact": "^1.1.4",
- "eslint-plugin-header": "^3.1.1",
"html-webpack-inline-chunk-plugin": "^1.1.1",
"html-webpack-inline-source-plugin": "0.0.10",
"html-webpack-skip-assets-plugin": "^1.0.1",