Merge branch 'master' into react-dock_touch_events

This commit is contained in:
Nathan Bierema 2020-08-19 10:10:19 -04:00 committed by GitHub
commit 53136510e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 76 additions and 55 deletions

View File

@ -1,11 +1,7 @@
{ {
"root": true, "root": true,
"parser": "babel-eslint", "parser": "babel-eslint",
"extends": [ "extends": ["eslint:recommended", "plugin:react/recommended", "prettier"],
"eslint:recommended",
"plugin:react/recommended",
"prettier"
],
"globals": { "globals": {
"chrome": true "chrome": true
}, },
@ -17,17 +13,13 @@
}, },
"rules": { "rules": {
"eol-last": ["warn"], "eol-last": ["warn"],
"max-len": ["warn", { "code": 120 , "ignoreComments": true }], "max-len": ["warn", { "code": 120, "ignoreComments": true }],
"quotes": ["warn", "single", "avoid-escape"], "quotes": ["warn", "single", "avoid-escape"],
"jsx-quotes": ["warn", "prefer-double"], "jsx-quotes": ["warn", "prefer-double"],
"react/prop-types": 0, "react/prop-types": 0,
"prettier/prettier": "error" "prettier/prettier": "error"
}, },
"plugins": [ "plugins": ["prettier", "react", "babel"],
"prettier",
"react",
"babel"
],
"settings": { "settings": {
"react": { "react": {
"version": "detect" "version": "detect"

View File

@ -1,12 +1,13 @@
sudo: false sudo: false
language: node_js language: node_js
node_js: node_js:
- "stable" - 'stable'
cache: cache:
yarn: true yarn: true
directories: directories:
- "node_modules" - 'node_modules'
script: script:
- yarn build:all - yarn build:all
- yarn lint:all - yarn lint:all
- yarn prettier:check
- yarn test:all - yarn test:all

View File

@ -35,7 +35,8 @@
"lint": "eslint \"**/*.{js,jsx,ts,tsx}\" --cache", "lint": "eslint \"**/*.{js,jsx,ts,tsx}\" --cache",
"lint:fix": "eslint \"**/*.{js,jsx,ts,tsx}\" --fix --cache", "lint:fix": "eslint \"**/*.{js,jsx,ts,tsx}\" --fix --cache",
"lint:all": "eslint \"**/*.{js,jsx,ts,tsx}\"", "lint:all": "eslint \"**/*.{js,jsx,ts,tsx}\"",
"prettify": "prettier \"**/*.{js,jsx,ts,tsx,json,css,html,md}\" --write", "prettify": "prettier --write .",
"prettier:check": "prettier --check .",
"test": "jest --onlyChanged", "test": "jest --onlyChanged",
"test:all": "jest" "test:all": "jest"
}, },
@ -56,11 +57,8 @@
} }
}, },
"lint-staged": { "lint-staged": {
"*.{js,jsx,ts,tsx}": [ "**/*": [
"prettier --write", "eslint --fix",
"yarn lint:fix"
],
"*.{json,css,html,md}": [
"prettier --write" "prettier --write"
] ]
} }

View File

@ -1,4 +1,7 @@
{ {
"presets": ["@babel/preset-env"], "presets": ["@babel/preset-env"],
"plugins": ["@babel/plugin-proposal-class-properties", "@babel/plugin-proposal-export-default-from"] "plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-export-default-from"
]
} }

View File

@ -1,4 +1,7 @@
{ {
"presets": ["@babel/preset-env", "@babel/preset-react"], "presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": ["@babel/plugin-proposal-class-properties", "@babel/plugin-proposal-export-default-from"] "plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-export-default-from"
]
} }

View File

@ -1,4 +1,8 @@
{ {
"presets": ["@babel/preset-env", "@babel/preset-react"], "presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": ["@babel/plugin-proposal-class-properties", "@babel/plugin-proposal-export-default-from", "react-hot-loader/babel"] "plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-export-default-from",
"react-hot-loader/babel"
]
} }

View File

@ -1,4 +1,7 @@
{ {
"presets": ["@babel/preset-env", "@babel/preset-react"], "presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": ["@babel/plugin-proposal-class-properties", "@babel/plugin-proposal-export-default-from"] "plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-export-default-from"
]
} }

View File

@ -10,33 +10,33 @@ type Report {
# Report ID # Report ID
id: ID! id: ID!
# Type of the report, can be: STATE, ACTION, STATES, ACTIONS # Type of the report, can be: STATE, ACTION, STATES, ACTIONS
type: ReportType, type: ReportType
# Briefly what happened # Briefly what happened
title: String, title: String
# Details supplied by the user # Details supplied by the user
description: String, description: String
# The last dispatched action before the report was sent # The last dispatched action before the report was sent
action: String, action: String
# Stringified actions or the state or both, which should be loaded the application to reproduce the exact behavior # Stringified actions or the state or both, which should be loaded the application to reproduce the exact behavior
payload: String, payload: String
# Stringified preloaded state object. Could be the initial state of the app or committed state (after dispatching COMMIT action or reaching maxAge) # Stringified preloaded state object. Could be the initial state of the app or committed state (after dispatching COMMIT action or reaching maxAge)
preloadedState: String, preloadedState: String
# Screenshot url or blob as a string # Screenshot url or blob as a string
screenshot: String, screenshot: String
# User Agent String # User Agent String
userAgent: String, userAgent: String
# Application version to group the reports and versioning # Application version to group the reports and versioning
version: String, version: String
# Used to identify the user who sent the report # Used to identify the user who sent the report
userId: String, userId: String
# More detailed data about the user, usually it's a stringified object # More detailed data about the user, usually it's a stringified object
user: String, user: String
# Everything else you want to send # Everything else you want to send
meta: String, meta: String
# Error message which invoked sending the report # Error message which invoked sending the report
exception: String, exception: String
# Id to identify the store in case there are multiple stores # Id to identify the store in case there are multiple stores
instanceId: String, instanceId: String
# Timestamp when the report was added # Timestamp when the report was added
added: String added: String
# Id to identify the application (from apps table) # Id to identify the application (from apps table)

View File

@ -1,4 +1,7 @@
{ {
"presets": ["@babel/preset-env", "@babel/preset-react"], "presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": ["@babel/plugin-proposal-class-properties", "@babel/plugin-proposal-export-default-from"] "plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-export-default-from"
]
} }

View File

@ -1,4 +1,7 @@
{ {
"presets": ["@babel/preset-env", "@babel/preset-react"], "presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": ["@babel/plugin-proposal-class-properties", "@babel/plugin-proposal-export-default-from"] "plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-export-default-from"
]
} }

View File

@ -1,4 +1,7 @@
{ {
"presets": ["@babel/preset-env", "@babel/preset-react"], "presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": ["@babel/plugin-proposal-class-properties", "react-hot-loader/babel"] "plugins": [
"@babel/plugin-proposal-class-properties",
"react-hot-loader/babel"
]
} }

View File

@ -1,4 +1,7 @@
{ {
"presets": ["@babel/preset-env", "@babel/preset-react"], "presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": ["@babel/plugin-proposal-class-properties", "@babel/plugin-proposal-do-expressions"] "plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-do-expressions"
]
} }

View File

@ -1,15 +1,13 @@
{ {
"presets": [ "presets": ["@babel/preset-env", "@babel/preset-react", "@babel/preset-flow"],
"@babel/preset-env", "@babel/preset-react", "@babel/preset-flow"
],
"plugins": [ "plugins": [
["@babel/plugin-transform-runtime", {
"regenerator": true
}],
[ [
"@babel/plugin-proposal-decorators", "@babel/plugin-transform-runtime",
{ "legacy": true } {
"regenerator": true
}
], ],
["@babel/plugin-proposal-decorators", { "legacy": true }],
"@babel/plugin-proposal-class-properties" "@babel/plugin-proposal-class-properties"
] ]
} }

View File

@ -1,4 +1,7 @@
{ {
"presets": ["@babel/preset-env", "@babel/preset-react"], "presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": ["@babel/plugin-proposal-class-properties", "react-hot-loader/babel"] "plugins": [
"@babel/plugin-proposal-class-properties",
"react-hot-loader/babel"
]
} }

View File

@ -1,4 +1,8 @@
{ {
"presets": ["@babel/preset-env", "@babel/preset-react"], "presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": ["@babel/plugin-proposal-class-properties", "@babel/plugin-proposal-function-bind", "react-hot-loader/babel"] "plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-function-bind",
"react-hot-loader/babel"
]
} }