aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/aml-backoffice-ui/.eslintrc.cjs28
-rw-r--r--packages/aml-backoffice-ui/package.json21
-rw-r--r--packages/merchant-backoffice-ui/.eslintrc.cjs28
-rw-r--r--packages/merchant-backoffice-ui/package.json25
-rw-r--r--packages/taler-wallet-webextension/.eslintrc.cjs28
-rw-r--r--packages/taler-wallet-webextension/package.json18
-rw-r--r--pnpm-lock.yaml185
7 files changed, 147 insertions, 186 deletions
diff --git a/packages/aml-backoffice-ui/.eslintrc.cjs b/packages/aml-backoffice-ui/.eslintrc.cjs
new file mode 100644
index 000000000..05618b499
--- /dev/null
+++ b/packages/aml-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/aml-backoffice-ui/package.json b/packages/aml-backoffice-ui/package.json
index 6276c6a1a..b4df017ea 100644
--- a/packages/aml-backoffice-ui/package.json
+++ b/packages/aml-backoffice-ui/package.json
@@ -31,21 +31,13 @@
"preact": "10.11.3",
"swr": "2.0.3"
},
- "eslintConfig": {
- "plugins": [
- "header"
- ],
- "rules": {
- "header/header": [
- 2,
- "copyleft-header.js"
- ]
- },
- "extends": [
- "prettier"
- ]
- },
"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",
+
"@gnu-taler/pogen": "^0.0.5",
"@tailwindcss/forms": "^0.5.3",
"@tailwindcss/typography": "^0.5.9",
@@ -55,7 +47,6 @@
"autoprefixer": "^10.4.14",
"chai": "^4.3.6",
"esbuild": "^0.19.9",
- "eslint-config-preact": "^1.2.0",
"mocha": "^9.2.0",
"po2json": "^0.4.5",
"postcss": "^8.4.23",
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",
diff --git a/packages/taler-wallet-webextension/.eslintrc.cjs b/packages/taler-wallet-webextension/.eslintrc.cjs
new file mode 100644
index 000000000..05618b499
--- /dev/null
+++ b/packages/taler-wallet-webextension/.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/taler-wallet-webextension/package.json b/packages/taler-wallet-webextension/package.json
index 506eed9ff..3970ba32c 100644
--- a/packages/taler-wallet-webextension/package.json
+++ b/packages/taler-wallet-webextension/package.json
@@ -16,6 +16,7 @@
"test:firefox-private": "web-ext run --source-dir extension/v2/unpacked --verbose --firefox-profile $(mktemp -d) --browser-console --devtools -f $FIREFOX_PATH/firefox-bin --pref browser.privatebrowsing.autostart=true",
"compile": "tsc && ./build.mjs",
"typedoc": "typedoc --out dist/typedoc ./src/ --entryPointStrategy expand",
+ "lint": "eslint 'src/**/*.{js,jsx,ts,tsx}'",
"dev": "./dev.mjs",
"pretty": "prettier --write src",
"i18n:extract": "pogen extract",
@@ -34,18 +35,13 @@
"qrcode-generator": "^1.4.4",
"tslib": "^2.6.2"
},
- "eslintConfig": {
- "plugins": [
- "header"
- ],
- "rules": {
- "header/header": [
- 2,
- "copyleft-header.js"
- ]
- }
- },
"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",
+
"@babel/preset-react": "^7.22.3",
"@babel/preset-typescript": "7.18.6",
"@gnu-taler/pogen": "workspace:*",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index cad1b3e30..b896375eb 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1,4 +1,4 @@
-lockfileVersion: '6.1'
+lockfileVersion: '6.0'
settings:
autoInstallPeers: true
@@ -78,6 +78,12 @@ importers:
'@types/mocha':
specifier: ^10.0.1
version: 10.0.1
+ '@typescript-eslint/eslint-plugin':
+ specifier: ^6.19.0
+ version: 6.19.0(@typescript-eslint/parser@6.19.0)(eslint@8.56.0)(typescript@5.3.3)
+ '@typescript-eslint/parser':
+ specifier: ^6.19.0
+ version: 6.19.0(eslint@8.56.0)(typescript@5.3.3)
autoprefixer:
specifier: ^10.4.14
version: 10.4.14(postcss@8.4.23)
@@ -87,9 +93,15 @@ importers:
esbuild:
specifier: ^0.19.9
version: 0.19.9
- eslint-config-preact:
- specifier: ^1.2.0
- version: 1.3.0(eslint@8.56.0)(typescript@5.3.3)
+ eslint:
+ specifier: ^8.56.0
+ version: 8.56.0
+ eslint-config-prettier:
+ specifier: ^9.1.0
+ version: 9.1.0(eslint@8.56.0)
+ eslint-plugin-react:
+ specifier: ^7.33.2
+ version: 7.33.2(eslint@8.56.0)
mocha:
specifier: ^9.2.0
version: 9.2.2
@@ -619,11 +631,11 @@ importers:
specifier: ^18.11.17
version: 18.11.17
'@typescript-eslint/eslint-plugin':
- specifier: ^4.22.0
- version: 4.33.0(@typescript-eslint/parser@4.33.0)(eslint@7.32.0)(typescript@5.3.3)
+ specifier: ^6.19.0
+ version: 6.19.0(@typescript-eslint/parser@6.19.0)(eslint@8.56.0)(typescript@5.3.3)
'@typescript-eslint/parser':
- specifier: ^4.22.0
- version: 4.33.0(eslint@7.32.0)(typescript@5.3.3)
+ specifier: ^6.19.0
+ version: 6.19.0(eslint@8.56.0)(typescript@5.3.3)
base64-inline-loader:
specifier: ^1.1.1
version: 1.1.1(webpack@4.47.0)
@@ -655,14 +667,14 @@ importers:
specifier: ^8.2.0
version: 8.6.0
eslint:
- specifier: ^7.25.0
- version: 7.32.0
- eslint-config-preact:
- specifier: ^1.1.4
- version: 1.3.0(@typescript-eslint/eslint-plugin@4.33.0)(eslint@7.32.0)(typescript@5.3.3)
- eslint-plugin-header:
- specifier: ^3.1.1
- version: 3.1.1(eslint@7.32.0)
+ specifier: ^8.56.0
+ version: 8.56.0
+ eslint-config-prettier:
+ specifier: ^9.1.0
+ version: 9.1.0(eslint@8.56.0)
+ eslint-plugin-react:
+ specifier: ^7.33.2
+ version: 7.33.2(eslint@8.56.0)
html-webpack-inline-chunk-plugin:
specifier: ^1.1.1
version: 1.1.1
@@ -973,12 +985,27 @@ importers:
'@types/node':
specifier: ^18.11.17
version: 18.11.17
+ '@typescript-eslint/eslint-plugin':
+ specifier: ^6.19.0
+ version: 6.19.0(@typescript-eslint/parser@6.19.0)(eslint@8.56.0)(typescript@5.3.3)
+ '@typescript-eslint/parser':
+ specifier: ^6.19.0
+ version: 6.19.0(eslint@8.56.0)(typescript@5.3.3)
chai:
specifier: ^4.3.6
version: 4.3.6
esbuild:
specifier: ^0.19.9
version: 0.19.9
+ eslint:
+ specifier: ^8.56.0
+ version: 8.56.0
+ eslint-config-prettier:
+ specifier: ^9.1.0
+ version: 9.1.0(eslint@8.56.0)
+ eslint-plugin-react:
+ specifier: ^7.33.2
+ version: 7.33.2(eslint@8.56.0)
mocha:
specifier: ^9.2.0
version: 9.2.2
@@ -1281,20 +1308,6 @@ packages:
semver: 6.3.1
dev: true
- /@babel/eslint-parser@7.19.1(@babel/core@7.18.9)(eslint@8.56.0):
- resolution: {integrity: sha512-AqNf2QWt1rtu2/1rLswy6CDP7H9Oh3mMhk177Y67Rg8d7RD9WfOLLv8CGn6tisFvS2htm86yIe1yLF6I1UDaGQ==}
- engines: {node: ^10.13.0 || ^12.13.0 || >=14.0.0}
- peerDependencies:
- '@babel/core': '>=7.11.0'
- eslint: ^7.5.0 || ^8.0.0
- dependencies:
- '@babel/core': 7.18.9
- '@nicolo-ribaudo/eslint-scope-5-internals': 5.1.1-v1
- eslint: 8.56.0
- eslint-visitor-keys: 2.1.0
- semver: 6.3.1
- dev: true
-
/@babel/generator@7.19.6:
resolution: {integrity: sha512-oHGRUQeoX1QrKeJIKVe0hwjGqNnVYsM5Nep5zo0uE0m42sLH+Fsd2pStJ5sRM1bNyTUUoz0pe2lTeMJrb/taTA==}
engines: {node: '>=6.9.0'}
@@ -6357,19 +6370,6 @@ packages:
- typescript
dev: true
- /@typescript-eslint/experimental-utils@5.41.0(eslint@8.56.0)(typescript@5.3.3):
- resolution: {integrity: sha512-/qxT2Kd2q/A22JVIllvws4rvc00/3AT4rAo/0YgEN28y+HPhbJbk6X4+MAHEoZzpNyAOugIT7D/OLnKBW8FfhA==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- peerDependencies:
- eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
- dependencies:
- '@typescript-eslint/utils': 5.41.0(eslint@8.56.0)(typescript@5.3.3)
- eslint: 8.56.0
- transitivePeerDependencies:
- - supports-color
- - typescript
- dev: true
-
/@typescript-eslint/parser@4.33.0(eslint@7.32.0)(typescript@5.3.3):
resolution: {integrity: sha512-ZohdsbXadjGBSK0/r+d87X0SBmKzOq4/S5nzK6SBgJspFo9/CUDJ7hjayuze+JK7CZQLDMroqytp7pOcFKTxZA==}
engines: {node: ^10.12.0 || >=12.0.0}
@@ -6614,26 +6614,6 @@ packages:
- typescript
dev: true
- /@typescript-eslint/utils@5.41.0(eslint@8.56.0)(typescript@5.3.3):
- resolution: {integrity: sha512-QlvfwaN9jaMga9EBazQ+5DDx/4sAdqDkcs05AsQHMaopluVCUyu1bTRUVKzXbgjDlrRAQrYVoi/sXJ9fmG+KLQ==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- peerDependencies:
- eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
- dependencies:
- '@types/json-schema': 7.0.11
- '@types/semver': 7.3.12
- '@typescript-eslint/scope-manager': 5.41.0
- '@typescript-eslint/types': 5.41.0
- '@typescript-eslint/typescript-estree': 5.41.0(typescript@5.3.3)
- eslint: 8.56.0
- eslint-scope: 5.1.1
- eslint-utils: 3.0.0(eslint@8.56.0)
- semver: 7.5.4
- transitivePeerDependencies:
- - supports-color
- - typescript
- dev: true
-
/@typescript-eslint/utils@6.19.0(eslint@8.56.0)(typescript@5.3.3):
resolution: {integrity: sha512-QR41YXySiuN++/dC9UArYOg4X86OAYP83OWTewpVx5ct1IZhjjgTLocj7QNxGhWoTqknsgpl7L+hGygCO+sdYw==}
engines: {node: ^16.0.0 || >=18.0.0}
@@ -10351,28 +10331,6 @@ packages:
- typescript
dev: true
- /eslint-config-preact@1.3.0(eslint@8.56.0)(typescript@5.3.3):
- resolution: {integrity: sha512-yHYXg5qNzEJd3D/30AmsIW0W8MuY858KpApXp7xxBF08IYUljSKCOqMx+dVucXHQnAm7+11wOnMkgVHIBAechw==}
- peerDependencies:
- eslint: 6.x || 7.x || 8.x
- dependencies:
- '@babel/core': 7.18.9
- '@babel/eslint-parser': 7.19.1(@babel/core@7.18.9)(eslint@8.56.0)
- '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.18.9)
- '@babel/plugin-syntax-decorators': 7.19.0(@babel/core@7.18.9)
- '@babel/plugin-syntax-jsx': 7.21.4(@babel/core@7.18.9)
- eslint: 8.56.0
- eslint-plugin-compat: 4.0.2(eslint@8.56.0)
- eslint-plugin-jest: 25.7.0(eslint@8.56.0)(typescript@5.3.3)
- eslint-plugin-react: 7.33.2(eslint@8.56.0)
- eslint-plugin-react-hooks: 4.6.0(eslint@8.56.0)
- transitivePeerDependencies:
- - '@typescript-eslint/eslint-plugin'
- - jest
- - supports-color
- - typescript
- dev: true
-
/eslint-config-prettier@9.1.0(eslint@8.56.0):
resolution: {integrity: sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==}
hasBin: true
@@ -10438,23 +10396,6 @@ packages:
semver: 7.3.5
dev: true
- /eslint-plugin-compat@4.0.2(eslint@8.56.0):
- resolution: {integrity: sha512-xqvoO54CLTVaEYGMzhu35Wzwk/As7rCvz/2dqwnFiWi0OJccEtGIn+5qq3zqIu9nboXlpdBN579fZcItC73Ycg==}
- engines: {node: '>=9.x'}
- peerDependencies:
- eslint: ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0
- dependencies:
- '@mdn/browser-compat-data': 4.2.1
- ast-metadata-inferer: 0.7.0
- browserslist: 4.22.2
- caniuse-lite: 1.0.30001570
- core-js: 3.26.0
- eslint: 8.56.0
- find-up: 5.0.0
- lodash.memoize: 4.1.2
- semver: 7.3.5
- dev: true
-
/eslint-plugin-header@3.1.1(eslint@7.32.0):
resolution: {integrity: sha512-9vlKxuJ4qf793CmeeSrZUvVClw6amtpghq3CuWcB5cUNnWHQhgcqy5eF8oVKFk1G3Y/CbchGfEaw3wiIJaNmVg==}
peerDependencies:
@@ -10519,26 +10460,6 @@ packages:
- typescript
dev: true
- /eslint-plugin-jest@25.7.0(eslint@8.56.0)(typescript@5.3.3):
- resolution: {integrity: sha512-PWLUEXeeF7C9QGKqvdSbzLOiLTx+bno7/HC9eefePfEb257QFHg7ye3dh80AZVkaa/RQsBB1Q/ORQvg2X7F0NQ==}
- engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
- peerDependencies:
- '@typescript-eslint/eslint-plugin': ^4.0.0 || ^5.0.0
- eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
- jest: '*'
- peerDependenciesMeta:
- '@typescript-eslint/eslint-plugin':
- optional: true
- jest:
- optional: true
- dependencies:
- '@typescript-eslint/experimental-utils': 5.41.0(eslint@8.56.0)(typescript@5.3.3)
- eslint: 8.56.0
- transitivePeerDependencies:
- - supports-color
- - typescript
- dev: true
-
/eslint-plugin-jsx-a11y@6.8.0(eslint@8.26.0):
resolution: {integrity: sha512-Hdh937BS3KdwwbBaKd5+PLCOmYY6U4f2h9Z2ktwtNKvIdIEu137rjYbcb9ApSbVJfWxANNuiKTD/9tOKjK9qOA==}
engines: {node: '>=4.0'}
@@ -10590,15 +10511,6 @@ packages:
eslint: 8.26.0
dev: true
- /eslint-plugin-react-hooks@4.6.0(eslint@8.56.0):
- resolution: {integrity: sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==}
- engines: {node: '>=10'}
- peerDependencies:
- eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0
- dependencies:
- eslint: 8.56.0
- dev: true
-
/eslint-plugin-react@7.33.2(eslint@7.32.0):
resolution: {integrity: sha512-73QQMKALArI8/7xGLNI/3LylrEYrlKZSb5C9+q3OtOewTnMQi5cT+aE9E41sLCmli3I9PGGmD1yiZydyo4FEPw==}
engines: {node: '>=4'}
@@ -10733,16 +10645,6 @@ packages:
eslint-visitor-keys: 2.1.0
dev: true
- /eslint-utils@3.0.0(eslint@8.56.0):
- resolution: {integrity: sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==}
- engines: {node: ^10.0.0 || ^12.0.0 || >= 14.0.0}
- peerDependencies:
- eslint: '>=5'
- dependencies:
- eslint: 8.56.0
- eslint-visitor-keys: 2.1.0
- dev: true
-
/eslint-visitor-keys@1.3.0:
resolution: {integrity: sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==}
engines: {node: '>=4'}
@@ -17263,6 +17165,7 @@ packages:
/semver@7.3.5:
resolution: {integrity: sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==}
engines: {node: '>=10'}
+ hasBin: true
dependencies:
lru-cache: 6.0.0
dev: true