diff --git a/.eslintrc.json b/.eslintrc.json index b223ac86c..8b48e39f1 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -6,15 +6,20 @@ }, "parser": "@babel/eslint-parser", "parserOptions": { - "ecmaFeatures": { - "experimentalObjectRestSpread": true, - "jsx": true - }, - "sourceType": "module" + "ecmaFeatures": { + "experimentalObjectRestSpread": true, + "jsx": true + }, + "sourceType": "module" }, - "extends": ["prettier", "eslint:recommended"], - "plugins": ["prettier"], + "extends": ["eslint:recommended", "plugin:jsdoc/recommended", "plugin:prettier/recommended"], + "plugins": ["jsdoc", "prettier"], "rules": { - "prettier/prettier": ["error"] + "jsdoc/check-indentation": 0, + "jsdoc/check-alignment": 0, + "jsdoc/check-line-alignment": 0, + "jsdoc/multiline-blocks": 0, + "jsdoc/newline-after-description": 0, + "jsdoc/tag-lines": 0 } -} +} diff --git a/.github/workflows/lock-closed-issue.yml b/.github/workflows/lock-closed-issue.yml deleted file mode 100644 index 11c3f35dd..000000000 --- a/.github/workflows/lock-closed-issue.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Lock closed issue - -on: - issues: - types: [closed] - -jobs: - triage: - runs-on: ubuntu-latest - steps: - - uses: Dunning-Kruger/lock-issues@v1.1 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.prettierrc b/.prettierrc index e9eb8060d..c6420f535 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,5 +1,6 @@ { + "endOfLine": "auto", + "plugins": ["prettier-plugin-jsdoc"], "printWidth": 100, - "singleQuote": true, - "endOfLine": "auto" + "singleQuote": true } diff --git a/cypress/integration/other/xss.spec.js b/cypress/integration/other/xss.spec.js index 9a07a7ab2..cce120ff1 100644 --- a/cypress/integration/other/xss.spec.js +++ b/cypress/integration/other/xss.spec.js @@ -78,5 +78,25 @@ describe('XSS', () => { cy.wait(1000); cy.get('#the-malware').should('not.exist'); }) + it('should not allow maniplulating antiscript to run javascript using onerror in state diagrams with dagre d3', () => { + cy.visit('http://localhost:9000/xss10.html'); + cy.wait(1000); + cy.get('#the-malware').should('not.exist'); + }) + it('should not allow maniplulating antiscript to run javascript using onerror in state diagrams with dagre d3', () => { + cy.visit('http://localhost:9000/xss11.html'); + cy.wait(1000); + cy.get('#the-malware').should('not.exist'); + }) + it('should not allow maniplulating antiscript to run javascript using onerror in state diagrams with dagre d3', () => { + cy.visit('http://localhost:9000/xss12.html'); + cy.wait(1000); + cy.get('#the-malware').should('not.exist'); + }) + it('should not allow maniplulating antiscript to run javascript using onerror in state diagrams with dagre d3', () => { + cy.visit('http://localhost:9000/xss13.html'); + cy.wait(1000); + cy.get('#the-malware').should('not.exist'); + }) }) diff --git a/cypress/platform/knsv.html b/cypress/platform/knsv.html index dcec97928..f98fb3cf4 100644 --- a/cypress/platform/knsv.html +++ b/cypress/platform/knsv.html @@ -28,113 +28,13 @@