Skip to content

Commit

Permalink
run lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ekdeveloper committed Sep 3, 2024
1 parent b5b4905 commit 751546c
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 58 deletions.
110 changes: 55 additions & 55 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,61 +34,61 @@ module.exports = [
},

rules: {
"no-mixed-spaces-and-tabs": [0, "smart-tabs"],
"quotes": [2, "single", "avoid-escape"],
"no-compare-neg-zero": 0,
"no-console": 0,
"no-debugger": 2,
"no-array-constructor": 2,
"no-caller": 2,
"no-catch-shadow": 2,
"no-eval": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
"no-implied-eval": 2,
"no-irregular-whitespace": [2, { "skipComments": true }],
"no-iterator": 2,
"no-label-var": 2,
"no-labels": 2,
"no-lone-blocks": 2,
"no-loop-func": 2,
"no-multi-spaces": 2,
"no-multi-str": 2,
"no-native-reassign": 2,
"no-new": 2,
"no-new-func": 2,
"no-new-object": 2,
"no-new-wrappers": 2,
"no-octal-escape": 2,
"no-proto": 2,
"no-return-assign": 2,
"no-script-url": 2,
"no-sequences": 2,
"no-shadow": 0,
"no-shadow-restricted-names": 2,
"no-spaced-func": 2,
"no-trailing-spaces": 2,
"no-undef-init": 2,
"no-unused-expressions": 2,
"no-unused-vars": [2, { "vars": "all", "args": "after-used", "argsIgnorePattern": "^_" }],
"no-use-before-define": 2,
"no-useless-escape": 0,
"no-with": 2,
"comma-spacing": 2,
"curly": [2, "all"],
"dot-notation": [2, { "allowKeywords": true }],
"eol-last": 2,
"no-extra-parens": [2, "functions"],
"eqeqeq": 2,
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
"new-cap": 2,
"new-parens": 2,
"semi": 2,
"semi-spacing": [2, { "before": false, "after": true }],
"space-infix-ops": 2,
"keyword-spacing": 2,
"space-unary-ops": [2, { "words": true, "nonwords": false }],
"yoda": [2, "never"]
'no-mixed-spaces-and-tabs': [0, 'smart-tabs'],
quotes: [2, 'single', 'avoid-escape'],
'no-compare-neg-zero': 0,
'no-console': 0,
'no-debugger': 2,
'no-array-constructor': 2,
'no-caller': 2,
'no-catch-shadow': 2,
'no-eval': 2,
'no-extend-native': 2,
'no-extra-bind': 2,
'no-implied-eval': 2,
'no-irregular-whitespace': [2, { skipComments: true }],
'no-iterator': 2,
'no-label-var': 2,
'no-labels': 2,
'no-lone-blocks': 2,
'no-loop-func': 2,
'no-multi-spaces': 2,
'no-multi-str': 2,
'no-native-reassign': 2,
'no-new': 2,
'no-new-func': 2,
'no-new-object': 2,
'no-new-wrappers': 2,
'no-octal-escape': 2,
'no-proto': 2,
'no-return-assign': 2,
'no-script-url': 2,
'no-sequences': 2,
'no-shadow': 0,
'no-shadow-restricted-names': 2,
'no-spaced-func': 2,
'no-trailing-spaces': 2,
'no-undef-init': 2,
'no-unused-expressions': 2,
'no-unused-vars': 'off',
'no-use-before-define': 2,
'no-useless-escape': 0,
'no-with': 2,
'comma-spacing': 2,
curly: [2, 'all'],
'dot-notation': [2, { allowKeywords: true }],
'eol-last': 2,
'no-extra-parens': [2, 'functions'],
eqeqeq: 2,
'key-spacing': [2, { beforeColon: false, afterColon: true }],
'new-cap': 2,
'new-parens': 2,
semi: 2,
'semi-spacing': [2, { before: false, after: true }],
'space-infix-ops': 2,
'keyword-spacing': 2,
'space-unary-ops': [2, { words: true, nonwords: false }],
yoda: [2, 'never'],
},
},
];
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ let getErrorConstructor = (baseVersion) => {
}
};

/* eslint-disable no-useless-escape */
let div_content = (severity, diagnostics) =>
'<div xmlns="http://www.w3.org/1999/xhtml"><h1>Operation Outcome</h1><table border="0">' +
`<table border=\"0\"><tr><td style=\"font-weight: bold;\">${severity}</td>` +
`<td><pre>${diagnostics}</pre></td></tr></table></div>`;
/* eslint-enable no-useless-escape */

// Invalid or Missing parameter from request
let invalidParameter = (message, base_version) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('Param Utils Tests', () => {

test('should throw an error if given an invalid parameter name', () => {
expect(() => {
let badParams = getSearchParameters('foobar', '2.3.4');
getSearchParameters('foobar', '2.3.4');
}).toThrowError('Cannot convert undefined or null to object');
});

Expand Down

0 comments on commit 751546c

Please sign in to comment.