mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-14 05:03:42 +00:00
Merge pull request #6005 from overleaf/ae-fix-prop-types
[web] Fix some missing/incorrect props and propTypes GitOrigin-RevId: 27aac8d6675e0070633d0d3d45b27746ebcf62a0
This commit is contained in:
parent
48233cd593
commit
1fd0a26d29
5 changed files with 1567 additions and 709 deletions
|
@ -3,5 +3,4 @@ node_modules
|
|||
modules/**/scripts
|
||||
frontend/js/vendor
|
||||
modules/**/frontend/js/vendor
|
||||
public/js
|
||||
public/minjs
|
||||
/public/
|
||||
|
|
|
@ -145,6 +145,9 @@
|
|||
"react/react-in-jsx-scope": "off",
|
||||
"react/jsx-uses-react": "off",
|
||||
|
||||
// Allow functions as JSX props
|
||||
"react/jsx-no-bind": "off", // TODO: fix occurrences and re-enable this
|
||||
|
||||
// Fix conflict between prettier & standard by overriding to prefer
|
||||
// double quotes
|
||||
"jsx-quotes": ["error", "prefer-double"],
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* eslint-disable no-useless-escape */
|
||||
import PropTypes from 'prop-types'
|
||||
|
||||
function WikiLink({ url, children, skipPlainRendering }) {
|
||||
function WikiLink({ url, children }) {
|
||||
if (window.wikiEnabled) {
|
||||
return (
|
||||
<a href={url} target="_blank" rel="noopener">
|
||||
|
|
2248
services/web/package-lock.json
generated
2248
services/web/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -225,20 +225,20 @@
|
|||
"copy-webpack-plugin": "^5.1.1",
|
||||
"css-loader": "^3.5.2",
|
||||
"es6-promise": "^4.2.8",
|
||||
"eslint": "^7.21.0",
|
||||
"eslint-config-prettier": "^8.1.0",
|
||||
"eslint-config-standard": "^16.0.2",
|
||||
"eslint": "^8.2.0",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"eslint-config-standard": "^16.0.3",
|
||||
"eslint-config-standard-jsx": "^10.0.0",
|
||||
"eslint-config-standard-react": "^11.0.1",
|
||||
"eslint-plugin-chai-expect": "^2.2.0",
|
||||
"eslint-plugin-chai-friendly": "^0.6.0",
|
||||
"eslint-plugin-import": "^2.22.1",
|
||||
"eslint-plugin-jsx-a11y": "^6.4.1",
|
||||
"eslint-plugin-mocha": "^8.0.0",
|
||||
"eslint-plugin-chai-friendly": "^0.7.2",
|
||||
"eslint-plugin-import": "^2.25.3",
|
||||
"eslint-plugin-jsx-a11y": "^6.5.1",
|
||||
"eslint-plugin-mocha": "^9.0.0",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"eslint-plugin-promise": "^4.2.1",
|
||||
"eslint-plugin-react": "^7.22.0",
|
||||
"eslint-plugin-react-hooks": "^4.2.0",
|
||||
"eslint-plugin-promise": "^5.1.1",
|
||||
"eslint-plugin-react": "^7.27.0",
|
||||
"eslint-plugin-react-hooks": "^4.3.0",
|
||||
"eslint-plugin-standard": "^5.0.0",
|
||||
"expose-loader": "^0.7.5",
|
||||
"fetch-mock": "^9.10.2",
|
||||
|
|
Loading…
Add table
Reference in a new issue