core/websrc/.eslintcache
2020-12-30 15:33:10 +00:00

1 line
7.5 KiB
Plaintext

[{"/home/giulio/dev/gkaching/websrc/src/components/App.tsx":"1","/home/giulio/dev/gkaching/websrc/src/components/Cards.tsx":"2","/home/giulio/dev/gkaching/websrc/src/components/Overlays.tsx":"3","/home/giulio/dev/gkaching/websrc/src/index.tsx":"4"},{"size":4418,"mtime":1609342346604,"results":"5","hashOfConfig":"6"},{"size":5688,"mtime":1609342346604,"results":"7","hashOfConfig":"6"},{"size":5235,"mtime":1609331232067,"results":"8","hashOfConfig":"6"},{"size":321,"mtime":1609342346604,"results":"9","hashOfConfig":"6"},{"filePath":"10","messages":"11","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"1ev2e5",{"filePath":"12","messages":"13","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"14","messages":"15","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"16"},{"filePath":"17","messages":"18","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/giulio/dev/gkaching/websrc/src/components/App.tsx",["19"],"/home/giulio/dev/gkaching/websrc/src/components/Cards.tsx",["20","21","22","23"],"/home/giulio/dev/gkaching/websrc/src/components/Overlays.tsx",["24"],"import React, {Component} from \"react\";\nimport {socket} from \"../index\";\nimport {EventName} from \"../types\";\n\nexport type ModalProps = {\n show: boolean,\n positionId: number,\n toggleConfirmation: any\n}\n\nexport class ClosePositionModal extends Component<ModalProps, any> {\n constructor(props: ModalProps) {\n super(props);\n }\n\n render() {\n if (!this.props.show) {\n return null\n }\n\n return (\n <div className=\"fixed z-10 inset-0 overflow-y-auto\">\n <div className=\"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0\">\n <div className=\"fixed inset-0 transition-opacity\" aria-hidden=\"true\">\n <div className=\"absolute inset-0 bg-gray-500 opacity-75\"/>\n </div>\n\n {/*This element is to trick the browser into centering the modal contents. -->*/}\n <span className=\"hidden sm:inline-block sm:align-middle sm:h-screen\"\n aria-hidden=\"true\">&#8203;</span>\n\n {/*Modal panel, show/hide based on modal state.*/}\n\n {/*Entering: \"ease-out duration-300\"*/}\n {/* From: \"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95\"*/}\n {/* To: \"opacity-100 translate-y-0 sm:scale-100\"*/}\n {/*Leaving: \"ease-in duration-200\"*/}\n {/* From: \"opacity-100 translate-y-0 sm:scale-100\"*/}\n {/* To: \"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95\"*/}\n\n <div\n className=\"inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full\"\n role=\"dialog\" aria-modal=\"true\" aria-labelledby=\"modal-headline\">\n <div className=\"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4\">\n <div className=\"sm:flex sm:items-start\">\n <div\n className=\"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10\">\n {/*Heroicon name: exclamation -->*/}\n <svg className=\"h-6 w-6 text-red-600\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\"\n viewBox=\"0 0 24 24\" stroke=\"currentColor\" aria-hidden=\"true\">\n <path strokeLinecap=\"round\" strokeLinejoin=\"round\" strokeWidth=\"2\"\n d=\"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z\"/>\n </svg>\n </div>\n <div className=\"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left\">\n <h3 className=\"text-lg leading-6 font-medium text-gray-900\" id=\"modal-headline\">\n Close position\n </h3>\n <div className=\"mt-2\">\n <p className=\"text-sm text-gray-500\">\n Are you sure you want to close the position? This action cannot be undone.\n </p>\n </div>\n </div>\n </div>\n </div>\n <div className=\"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse\">\n <button type=\"button\"\n className=\"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm\"\n onClick={event => {\n socket.emit(EventName.ClosePosition, {\n position_id: this.props.positionId\n })\n\n this.props.toggleConfirmation()\n }}>\n Close\n </button>\n <button type=\"button\"\n className=\"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm\"\n onClick={() => this.props.toggleConfirmation()}>\n Cancel\n </button>\n </div>\n </div>\n </div>\n </div>\n )\n }\n}","/home/giulio/dev/gkaching/websrc/src/index.tsx",[],{"ruleId":"25","severity":1,"message":"26","line":45,"column":5,"nodeType":"27","messageId":"28","endLine":47,"endColumn":6},{"ruleId":"25","severity":1,"message":"26","line":14,"column":5,"nodeType":"27","messageId":"28","endLine":16,"endColumn":6},{"ruleId":"29","severity":1,"message":"30","line":20,"column":44,"nodeType":"31","messageId":"32","endLine":20,"endColumn":46},{"ruleId":"29","severity":1,"message":"33","line":83,"column":34,"nodeType":"31","messageId":"32","endLine":83,"endColumn":36},{"ruleId":"29","severity":1,"message":"33","line":96,"column":57,"nodeType":"31","messageId":"32","endLine":96,"endColumn":59},{"ruleId":"25","severity":1,"message":"26","line":12,"column":5,"nodeType":"27","messageId":"28","endLine":14,"endColumn":6},"@typescript-eslint/no-useless-constructor","Useless constructor.","MethodDefinition","noUselessConstructor","eqeqeq","Expected '!==' and instead saw '!='.","BinaryExpression","unexpected","Expected '===' and instead saw '=='."]