Skip to content

Commit

Permalink
fix: changed the linter settings to be more tolerant
Browse files Browse the repository at this point in the history
  • Loading branch information
cure53 committed Sep 3, 2020
1 parent 5922db6 commit 10ed33f
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 13 deletions.
3 changes: 1 addition & 2 deletions dist/purify.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/purify.cjs.js.map

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions dist/purify.es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/purify.es.js.map

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions dist/purify.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/purify.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/purify.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/purify.min.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
],
"rules": {
"import/no-useless-path-segments": 0,
"unicorn/prefer-optional-catch-binding": 0,
"unicorn/prefer-node-remove": 0,
"prettier/prettier": [
"error",
{
Expand Down
1 change: 0 additions & 1 deletion src/purify.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,6 @@ function createDOMPurify(window = getGlobal()) {
const _forceRemove = function (node) {
arrayPush(DOMPurify.removed, { element: node });
try {
// eslint-disable-next-line unicorn/prefer-node-remove
node.parentNode.removeChild(node);
} catch (_) {
node.outerHTML = emptyHTML;
Expand Down
2 changes: 1 addition & 1 deletion src/regexp.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export const IS_ALLOWED_URI = seal(
);
export const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
export const ATTR_WHITESPACE = seal(
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g // eslint-disable-line no-control-regex
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex
);

0 comments on commit 10ed33f

Please sign in to comment.