Skip to content

Commit

Permalink
Fix code style issues in modules
Browse files Browse the repository at this point in the history
CS-5428
  • Loading branch information
Tamara committed Jun 3, 2024
1 parent 0fcb316 commit 41b4f9c
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 98 deletions.
78 changes: 36 additions & 42 deletions extension/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,45 +1,39 @@
import globals from "globals";
import js from "@eslint/js";
import prettier from "eslint-config-prettier";
import globals from 'globals'
import js from '@eslint/js'
import prettier from 'eslint-config-prettier'
import stylisticJs from '@stylistic/eslint-plugin-js'

export default [
js.configs.recommended,
{
languageOptions: {
globals: {
...globals.node,
...globals.mocha,
},
},
plugins: {
'@stylistic/js': stylisticJs,
prettier
},
rules: {
'@stylistic/js/nonblock-statement-body-position': 'off',
"@stylistic/js/comma-dangle": "off",
"class-methods-use-this": "off",
'@stylistic/js/max-len': [
2,
120
],
"no-restricted-syntax": [
"error",
"WithStatement"
],
"no-param-reassign": 0,
"no-plusplus": 0,
"no-unused-expressions": "off",
"@stylistic/js/template-curly-spacing" : "off",
'@stylistic/js/indent': 'off',
"@stylistic/js/operator-linebreak": "off",
"no-await-in-loop": "off",
"prefer-destructuring": "off",
"no-use-before-define": [ 2, "nofunc" ],
"no-underscore-dangle": "off",
"dot-notation": "off",
"no-return-await": "off"
}
}
];
js.configs.recommended,
{
languageOptions: {
globals: {
...globals.node,
...globals.mocha,
},
},
plugins: {
'@stylistic/js': stylisticJs,
prettier,
},
rules: {
'@stylistic/js/nonblock-statement-body-position': 'off',
'@stylistic/js/comma-dangle': 'off',
'class-methods-use-this': 'off',
'@stylistic/js/max-len': [2, 120],
'no-restricted-syntax': ['error', 'WithStatement'],
'no-param-reassign': 0,
'no-plusplus': 0,
'no-unused-expressions': 'off',
'@stylistic/js/template-curly-spacing': 'off',
'@stylistic/js/indent': 'off',
'@stylistic/js/operator-linebreak': 'off',
'no-await-in-loop': 'off',
'prefer-destructuring': 'off',
'no-use-before-define': [2, 'nofunc'],
'no-underscore-dangle': 'off',
'dot-notation': 'off',
'no-return-await': 'off',
},
},
]
24 changes: 12 additions & 12 deletions extension/test/unit/make-payment.handler.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('make-payment::execute', () => {
let ctpCustomer
let ctpCartWithNoData

// eslint-disable @stylistic/js/max-len
// eslint-disable @stylistic/js/max-len
const makePaymentRequest = {
reference: 'YOUR_REFERENCE',
riskData: {
Expand All @@ -31,16 +31,16 @@ describe('make-payment::execute', () => {
paymentMethod: {
type: 'scheme',
encryptedCardNumber:
// eslint-disable-next-line @stylistic/js/max-len
// eslint-disable-next-line @stylistic/js/max-len
'adyenjs_0_1_25$DUEzRRqi0giNphYds8B1/AhDcp1Mx9fM6uFW/fxx7HcO2vd8Lt/tT0IgODmu16duCco+vnB+HFJVV5t3m6yD93AZxA/ugFU7uzggh7UNAKPd3khkpReBRoHSzLwyj9dRnOxTDYWRX+K/3ozT+9RXvfHoPL1nWhU6A0DIKAdjiurDRHZA657XNZKd2M090R1yhqmIGH7rkHNJ3yV7/Ox/qTi5KLB4TmiEpGKD/sbuy18hG69om+66+BttPglSwPFZIy8zNXuqetYQaLY+cVlYfdKcRgEvoKJay85AtZgbxGvpp6pB+AXzIR55HM+KYykxHcHc/7O6KRMWjoxOkd9vpA==$FkH2iICmazYvxCLQ9Cu8zmFHfoXwcCZ/tMGuPyulvuyRar9Z5SMAx9GyTQvSHzTYNhglA4wQJNoEP9Vt9hnOUWdonWLMbLBDt4QhuB6c2kGcGRU7As6cBkDqllTNjItFY/19bpHIfWs50s+KbJSraAQNihpBkhRjKcXZeuxleOkpZK8Ta6B3jOLLcVXkjAYtcGl220KlOaT760UsqQpxD2UuM8UQVZEFml2WDZe1dmbzpebZVCDcy07KBy5ClsxqIErFwZkr22GXzrgg4Vg+WUg3XpAWGibRZvAsIlZO7AcVWgRzb1Sc/eA9lML0TkwS1+43vh6Z4FsVtgBI7lNFuqN9tsFba4UW1pKM3cnjL/BKH69rXO5dMZWLs0HSiGpGoOAudJTrq7T3SfiuNDignlWkww2MYuDFPxXw7H7n1gXXwczwQCVCPxh3y8xv2OM/67/Re5+zQ88N3qn+rjXssCjEtIsl5SqLJ8k675ULrS1oW8z9NoxfkE8RsKx9drrWOp37TtkRqAgqhUMgFqQM8yXo8jkujBc4EGQMysNY46lDGZkapfNIyoT6ncAJOCj8Sy8toVBrhfRqAEOFxF8weHas69EZEGxqgIlccaBKec1/TyjkUEvscST4gNcO29b3e9wV4TO73XTziqKNY5akG2uqY1YYyzQkE+AwjpDxw5JTUuuSh14bXr853W5/dy7rw9qrr3P+1iONsIqcgW7mVb596hD0J86Zc+hfbsQn1e/sFaalCX18n/PyOD9c1Fqqox2KVJQ53OuUM0HfzErb8LW0SOhD6Rcban9cWsdLmIOPpIv1d5VPUpmDb+Sa5PLXgP+IPtS5yms/i/GGn1B/ykak9t1UBe1zR71r4CqKey5lRbjYV3lOlO4WAIjLyIYYBNAjZuH3qd/KGjHTaK88DnZM6Rpr+TTNlTO1c0fs/nm8xy0rmE9QBM5bkn0LfIwli4fkRefI3rQz1doJ+plBHl4w8lk5Oe45+L01R9NhCoKYH8INwski5FxIt0SdiTD8nYnIdRzgBVrnLqf6EHvFMIwo+mcMPRv3+bbSlgLfeVvqxLSZcyz73vnP/stQPt80Q79Ru7FwUNkrXCELyMCd7CKATK5TysWN',
encryptedExpiryMonth:
// eslint-disable-next-line @stylistic/js/max-len
// eslint-disable-next-line @stylistic/js/max-len
'adyenjs_0_1_25$Idi+jcq3qQgNx/Fqr4MTpy2e6vnktdvn8jTqrqWTmAgYWvnx7Pmler69ANWLRuW54xL0BQ2r7WRYVZsuVun2oNuxij54CLUhsn7b++0CJjYAhwmH6Bu3s5edgKv/2DqraLB7gq8Cjw2gbc6HQFgxLpeWfJzosLQFPRLW9nVgrceXwGS42sm3u9IwXFidwyVTQq6WSxUEE+WFtfPUe0eJGaEGqwx2sgMm2o/oUgvyxiuTNu361oIYWHfNSsVsmqjLOPKX7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XsHOlqxz2PpBNiQRB0BNflrWvnwHAUDD/Fbvqhejadogx4wuH3WRqf+3nvxZKHW5ik7cDuE+BhIlAI075PY8q/RowWaDUDO8ZgjoQUIwuQuFmvjEbsu/nu9wTShM1//nNTIofc0jk1gc5u1hmqkIgA+MZWQYZ925wF2A5KQk+ncyBNC15c8z5ao03uAha872TWy6y7avUwv1ugXk/zgvBCCG87SRuu2G+R4rpro0fLjP5pxE8RTimWexRwDoPYPcztEUZcjv80jdEDPULciw9fdfefQzpgj1wieWtZTUsBm8lHG1mM6c+nJkS7JDrh12RbP3gDBUvJkBtmZBsTp3oevW6torfqTekUsBh6e2I1ual9xCmXLkKM4fusWWm7clGXe49fvqDJ3JZRezhvdqYR3GO2eKT3OvdHjtT1Rqul0Ewifo17Y=',
encryptedSecurityCode:
// eslint-disable-next-line @stylistic/js/max-len
// eslint-disable-next-line @stylistic/js/max-len
'adyenjs_0_1_25$d/OMm3cbLOV4Dk9+a7rmJjZBaOsDCka6bTiuDG/JeeBuKYNjocNRSFnlPk2oV2+zUZWCHVpiFNx2ws9hDiNz9uxllO3TUpRk3whZpj30a7WUjXYOEXYgynXVtqpULXB5zP8Ro+1jP1Dr2Zbt00N8WPfehz/BnfsOu4fn2DsMhrIDlldYucsB50q1HzyLCa5IUFIsPaGQFV6TwzInLbhvEt4Nq7P1WZ/KaqJhwYURNgU89cjLUtboqIw/NGoDxG8XzdfCyGQE4yJYItgq71kpzdpIl0onxoaOaBBOaAo6ig3zNVDXl667LYiCdO049zIysS0eqJrTfzyw3qQDbiz1OQ==$5lxjuK68dSuG9jXL+sGufH2X1m2P8Z+MpswXgz28Z9OMuXIqUUFStx0EGA5WFCCZyEjknIdMd6FzbUTSji2mVYbbZWLvcxuHb/xsERQeltO1W7joM0co6GHZcVg+Vr8wp4foUCthX1y5zcIcLDVw4L73CZeRjBZyyGGTeOFV4zAr0UAYKhjQbWHQ7d/SyZuRSZGk2NL6u/eY8bf5ogSHnkYSRtVJYd95WCBhpiZR1AWrjpZBJtDqh2q53zHZuWtwmIJiGO7lZZdDdc/TpbOsLpJWcOXq6UYPiwyfIuE8U6xKyLTumkHNOBv8vDHT2PRlyvufUcrp7XthYBpHJqADjD0jvb8Kn80tL7/RDmbCtTUzHq1GFlzB25nF4JErDPgUZ+BiSI7SlMGmeJdoy9RKP2DIKZEEiw1/w3dA/4ea5D7hZ3D53LKBJTEO7uyqTJI+/M1NuAKSeeFLZE9X95+AFpx3RDGKCG380PAH',
},
browserInfo: {
Expand All @@ -51,7 +51,7 @@ describe('make-payment::execute', () => {
screenHeight: 1050,
screenWidth: 1680,
userAgent:
// eslint-disable-next-line @stylistic/js/max-len
// eslint-disable-next-line @stylistic/js/max-len
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.92 Safari/537.36',
timeZoneOffset: -120,
},
Expand All @@ -69,16 +69,16 @@ describe('make-payment::execute', () => {
paymentMethod: {
type: 'scheme',
encryptedCardNumber:
// eslint-disable-next-line @stylistic/js/max-len
// eslint-disable-next-line @stylistic/js/max-len
'adyenjs_0_1_25$DUEzRRqi0giNphYds8B1/AhDcp1Mx9fM6uFW/fxx7HcO2vd8Lt/tT0IgODmu16duCco+vnB+HFJVV5t3m6yD93AZxA/ugFU7uzggh7UNAKPd3khkpReBRoHSzLwyj9dRnOxTDYWRX+K/3ozT+9RXvfHoPL1nWhU6A0DIKAdjiurDRHZA657XNZKd2M090R1yhqmIGH7rkHNJ3yV7/Ox/qTi5KLB4TmiEpGKD/sbuy18hG69om+66+BttPglSwPFZIy8zNXuqetYQaLY+cVlYfdKcRgEvoKJay85AtZgbxGvpp6pB+AXzIR55HM+KYykxHcHc/7O6KRMWjoxOkd9vpA==$FkH2iICmazYvxCLQ9Cu8zmFHfoXwcCZ/tMGuPyulvuyRar9Z5SMAx9GyTQvSHzTYNhglA4wQJNoEP9Vt9hnOUWdonWLMbLBDt4QhuB6c2kGcGRU7As6cBkDqllTNjItFY/19bpHIfWs50s+KbJSraAQNihpBkhRjKcXZeuxleOkpZK8Ta6B3jOLLcVXkjAYtcGl220KlOaT760UsqQpxD2UuM8UQVZEFml2WDZe1dmbzpebZVCDcy07KBy5ClsxqIErFwZkr22GXzrgg4Vg+WUg3XpAWGibRZvAsIlZO7AcVWgRzb1Sc/eA9lML0TkwS1+43vh6Z4FsVtgBI7lNFuqN9tsFba4UW1pKM3cnjL/BKH69rXO5dMZWLs0HSiGpGoOAudJTrq7T3SfiuNDignlWkww2MYuDFPxXw7H7n1gXXwczwQCVCPxh3y8xv2OM/67/Re5+zQ88N3qn+rjXssCjEtIsl5SqLJ8k675ULrS1oW8z9NoxfkE8RsKx9drrWOp37TtkRqAgqhUMgFqQM8yXo8jkujBc4EGQMysNY46lDGZkapfNIyoT6ncAJOCj8Sy8toVBrhfRqAEOFxF8weHas69EZEGxqgIlccaBKec1/TyjkUEvscST4gNcO29b3e9wV4TO73XTziqKNY5akG2uqY1YYyzQkE+AwjpDxw5JTUuuSh14bXr853W5/dy7rw9qrr3P+1iONsIqcgW7mVb596hD0J86Zc+hfbsQn1e/sFaalCX18n/PyOD9c1Fqqox2KVJQ53OuUM0HfzErb8LW0SOhD6Rcban9cWsdLmIOPpIv1d5VPUpmDb+Sa5PLXgP+IPtS5yms/i/GGn1B/ykak9t1UBe1zR71r4CqKey5lRbjYV3lOlO4WAIjLyIYYBNAjZuH3qd/KGjHTaK88DnZM6Rpr+TTNlTO1c0fs/nm8xy0rmE9QBM5bkn0LfIwli4fkRefI3rQz1doJ+plBHl4w8lk5Oe45+L01R9NhCoKYH8INwski5FxIt0SdiTD8nYnIdRzgBVrnLqf6EHvFMIwo+mcMPRv3+bbSlgLfeVvqxLSZcyz73vnP/stQPt80Q79Ru7FwUNkrXCELyMCd7CKATK5TysWN',
encryptedExpiryMonth:
// eslint-disable-next-line @stylistic/js/max-len
// eslint-disable-next-line @stylistic/js/max-len
'adyenjs_0_1_25$Idi+jcq3qQgNx/Fqr4M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OLVzIbJDf0hVHAhp60i1L73msD7kmdeajZLlJqhZTTSoXFrmNSqHjis5bzLitpZrh4kOAMDTnMMs8ED/9KCYlXVQm1i5MWa/KPMi80psSI2Fzmq/nU8Ub5NzKF0VYdHbvsXOdXq6MAjnFu5QD6gRoNzowx4QkktwPckoBYKi70+FHKsX9Ew==$eEs0op2EAcFq9uIyUSRkTYqhgGT4r6YQWsCSN0aWVicCCO04FgxZ3uPh/xF3XsHOlqxz2PpBNiQRB0BNflrWvnwHAUDD/Fbvqhejadogx4wuH3WRqf+3nvxZKHW5ik7cDuE+BhIlAI075PY8q/RowWaDUDO8ZgjoQUIwuQuFmvjEbsu/nu9wTShM1//nNTIofc0jk1gc5u1hmqkIgA+MZWQYZ925wF2A5KQk+ncyBNC15c8z5ao03uAha872TWy6y7avUwv1ugXk/zgvBCCG87SRuu2G+R4rpro0fLjP5pxE8RTimWexRwDoPYPcztEUZcjv80jdEDPULciw9fdfefQzpgj1wieWtZTUsBm8lHG1mM6c+nJkS7JDrh12RbP3gDBUvJkBtmZBsTp3oevW6torfqTekUsBh6e2I1ual9xCmXLkKM4fusWWm7clGXe49fvqDJ3JZRezhvdqYR3GO2eKT3OvdHjtT1Rqul0Ewifo17Y=',
encryptedSecurityCode:
// eslint-disable-next-line @stylistic/js/max-len
// eslint-disable-next-line @stylistic/js/max-len
'adyenjs_0_1_25$d/OMm3cbLOV4Dk9+a7rmJjZBaOsDCka6bTiuDG/JeeBuKYNjocNRSFnlPk2oV2+zUZWCHVpiFNx2ws9hDiNz9uxllO3TUpRk3whZpj30a7WUjXYOEXYgynXVtqpULXB5zP8Ro+1jP1Dr2Zbt00N8WPfehz/BnfsOu4fn2DsMhrIDlldYucsB50q1HzyLCa5IUFIsPaGQFV6TwzInLbhvEt4Nq7P1WZ/KaqJhwYURNgU89cjLUtboqIw/NGoDxG8XzdfCyGQE4yJYItgq71kpzdpIl0onxoaOaBBOaAo6ig3zNVDXl667LYiCdO049zIysS0eqJrTfzyw3qQDbiz1OQ==$5lxjuK68dSuG9jXL+sGufH2X1m2P8Z+MpswXgz28Z9OMuXIqUUFStx0EGA5WFCCZyEjknIdMd6FzbUTSji2mVYbbZWLvcxuHb/xsERQeltO1W7joM0co6GHZcVg+Vr8wp4foUCthX1y5zcIcLDVw4L73CZeRjBZyyGGTeOFV4zAr0UAYKhjQbWHQ7d/SyZuRSZGk2NL6u/eY8bf5ogSHnkYSRtVJYd95WCBhpiZR1AWrjpZBJtDqh2q53zHZuWtwmIJiGO7lZZdDdc/TpbOsLpJWcOXq6UYPiwyfIuE8U6xKyLTumkHNOBv8vDHT2PRlyvufUcrp7XthYBpHJqADjD0jvb8Kn80tL7/RDmbCtTUzHq1GFlzB25nF4JErDPgUZ+BiSI7SlMGmeJdoy9RKP2DIKZEEiw1/w3dA/4ea5D7hZ3D53LKBJTEO7uyqTJI+/M1NuAKSeeFLZE9X95+AFpx3RDGKCG380PAH',
},
browserInfo: {
Expand All @@ -89,7 +89,7 @@ describe('make-payment::execute', () => {
screenHeight: 1050,
screenWidth: 1680,
userAgent:
// eslint-disable-next-line @stylistic/js/max-len
// eslint-disable-next-line @stylistic/js/max-len
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.92 Safari/537.36',
timeZoneOffset: -120,
},
Expand Down Expand Up @@ -264,7 +264,7 @@ describe('make-payment::execute', () => {
)

const setKeyAction = response.actions.find((a) => a.action === 'setKey')
// eslint-disable-next-line @stylistic/js/max-len
// eslint-disable-next-line @stylistic/js/max-len
expect(setKeyAction.key).to.equal(makePaymentRequest.reference) // no pspReference until submitting additional details in redirect flow
},
)
Expand Down
74 changes: 34 additions & 40 deletions notification/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,43 +1,37 @@
import globals from "globals";
import js from "@eslint/js";
import prettier from "eslint-config-prettier";
import globals from 'globals'
import js from '@eslint/js'
import prettier from 'eslint-config-prettier'
import stylisticJs from '@stylistic/eslint-plugin-js'

export default [
js.configs.recommended,
{
languageOptions: {
globals: {
...globals.node,
...globals.mocha,
},
},
plugins: {
'@stylistic/js': stylisticJs,
prettier
},
rules: {
'@stylistic/js/nonblock-statement-body-position': 'off',
"@stylistic/js/comma-dangle": "off",
"class-methods-use-this": "off",
'@stylistic/js/max-len': [
2,
120
],
"no-restricted-syntax": [
"error",
"WithStatement"
],
"no-param-reassign": 0,
"no-unused-expressions": "off",
"no-constant-condition": ["error", { "checkLoops": false }],
"no-prototype-builtins": "off",
"@stylistic/js/arrow-parens": "off",
"default-param-last": "off",
"no-await-in-loop": "off",
"no-use-before-define": [ 2, "nofunc" ],
"no-underscore-dangle": "off",
"dot-notation": "off",
}
}
];
js.configs.recommended,
{
languageOptions: {
globals: {
...globals.node,
...globals.mocha,
},
},
plugins: {
'@stylistic/js': stylisticJs,
prettier,
},
rules: {
'@stylistic/js/nonblock-statement-body-position': 'off',
'@stylistic/js/comma-dangle': 'off',
'class-methods-use-this': 'off',
'@stylistic/js/max-len': [2, 120],
'no-restricted-syntax': ['error', 'WithStatement'],
'no-param-reassign': 0,
'no-unused-expressions': 'off',
'no-constant-condition': ['error', { checkLoops: false }],
'no-prototype-builtins': 'off',
'@stylistic/js/arrow-parens': 'off',
'default-param-last': 'off',
'no-await-in-loop': 'off',
'no-use-before-define': [2, 'nofunc'],
'no-underscore-dangle': 'off',
'dot-notation': 'off',
},
},
]
5 changes: 2 additions & 3 deletions notification/src/setup.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import config from './config/config.js'
import { getLogger } from './utils/logger.js'
import {
ensureInterfaceInteractionCustomTypeForAllProjects
} from './config/init/ensure-interface-interaction-custom-type.js'
// eslint-disable-next-line @stylistic/js/max-len
import { ensureInterfaceInteractionCustomTypeForAllProjects } from './config/init/ensure-interface-interaction-custom-type.js'
import { ensureAdyenWebhooksForAllProjects } from './config/init/ensure-adyen-webhook.js'

const logger = getLogger()
Expand Down
2 changes: 1 addition & 1 deletion notification/test/unit/notification.controller.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ describe('notification controller', () => {
JSON.stringify({ notificationResponse: '[accepted]' }),
)
expect(cause.message).to.equal(
// eslint-disable-next-line @stylistic/js/max-len
// eslint-disable-next-line @stylistic/js/max-len
'Configuration for adyenMerchantAccount is not provided. Please update the configuration: "nonExistingMerchantAccount"',
)
})
Expand Down

0 comments on commit 41b4f9c

Please sign in to comment.