Skip to content

Commit

Permalink
Disable require-post-message-target-origin for TypeScript files (#1415
Browse files Browse the repository at this point in the history
)
  • Loading branch information
JounQin committed Jul 13, 2021
1 parent bac8cdf commit 741484a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,14 @@ module.exports = {
'unicorn/string-content': 'off',
'unicorn/throw-new-error': 'error',
},
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'unicorn/require-post-message-target-origin': 'off',
},
},
],
},
},
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
"eslint-remote-tester-results"
],
"rules": {
"quotes": ["error", "single"],
"unicorn/no-null": "error",
"unicorn/prevent-abbreviations": [
"error",
Expand Down
13 changes: 12 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,18 @@ Configure it in `package.json`.
"unicorn/require-post-message-target-origin": "error",
"unicorn/string-content": "off",
"unicorn/throw-new-error": "error"
}
},
"overrides": [
{
"files": [
"*.ts",
"*.tsx"
],
"rules": {
"unicorn/require-post-message-target-origin": "off"
}
}
]
}
}
```
Expand Down

0 comments on commit 741484a

Please sign in to comment.