Skip to content

Commit

Permalink
introduce eslint for DOM XSS linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mozfreddyb committed Oct 7, 2019
1 parent de4f070 commit dd84429
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module.exports = {
"env": {
"browser": true,
"es6": true
},
"extends": [
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"react",
"no-unsanitized"
],
"rules": {
"no-unsanitized/method": "error",
"no-unsanitized/property": "error"
}
};
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@
"devDependencies": {
"ava": "^2.4.0",
"css-loader": "^3.2.0",
"eslint": "^6.5.1",
"eslint-plugin-no-unsanitized": "^3.0.2",
"lint-staged": "^9.4.1",
"vue-loader": "^15.7.1",
"vue-style-loader": "^4.1.2",
Expand Down

0 comments on commit dd84429

Please sign in to comment.