Skip to content

Commit 223e176

Browse files
committedMar 28, 2020
update to prettier 2.0. lint
1 parent 41dca9b commit 223e176

File tree

26 files changed

+1937
-914
lines changed

26 files changed

+1937
-914
lines changed
 

Diff for: ‎.prettierrc.js

+2
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ module.exports = {
44
singleQuote: true,
55
tabWidth: 2,
66
trailingComma: 'all',
7+
arrowParens: 'always',
8+
endOfLine: 'lf',
79
}

Diff for: ‎.vscode/launch.json

+21-29
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,25 @@
33
// Hover to view descriptions of existing attributes.
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
{
6-
"version": "0.2.0",
7-
"configurations": [{
8-
"name": "Run Extension",
9-
"type": "extensionHost",
10-
"request": "launch",
11-
"runtimeExecutable": "${execPath}",
12-
"args": [
13-
"--extensionDevelopmentPath=${workspaceFolder}"
14-
],
15-
"outFiles": [
16-
"${workspaceFolder}/out/**/*.js"
17-
],
18-
"preLaunchTask": "npm: watch"
19-
},
20-
{
21-
"name": "Extension Tests",
22-
"type": "extensionHost",
23-
"request": "launch",
24-
"runtimeExecutable": "${execPath}",
25-
"args": [
26-
"--extensionDevelopmentPath=${workspaceFolder}",
27-
"--extensionTestsPath=${workspaceFolder}/out/test"
28-
],
29-
"outFiles": [
30-
"${workspaceFolder}/out/test/**/*.js"
31-
],
32-
"preLaunchTask": "npm: watch"
33-
}
34-
]
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Run Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"runtimeExecutable": "${execPath}",
13+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
14+
"outFiles": ["${workspaceFolder}/out/**/*.js"],
15+
"preLaunchTask": "npm: watch"
16+
},
17+
{
18+
"name": "Extension Tests",
19+
"type": "extensionHost",
20+
"request": "launch",
21+
"runtimeExecutable": "${execPath}",
22+
"args": ["--extensionDevelopmentPath=${workspaceFolder}", "--extensionTestsPath=${workspaceFolder}/out/test"],
23+
"outFiles": ["${workspaceFolder}/out/test/**/*.js"],
24+
"preLaunchTask": "npm: watch"
25+
}
26+
]
3527
}

Diff for: ‎.vscode/tasks.json

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
// See https://go.microsoft.com/fwlink/?LinkId=733558
22
// for the documentation about the tasks.json format
33
{
4-
"version": "2.0.0",
5-
"tasks": [
6-
{
7-
"type": "npm",
8-
"script": "watch",
9-
"problemMatcher": "$tsc-watch",
10-
"isBackground": true,
11-
"presentation": {
12-
"reveal": "never"
13-
},
14-
"group": {
15-
"kind": "build",
16-
"isDefault": true
17-
}
18-
}
19-
]
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"type": "npm",
8+
"script": "watch",
9+
"problemMatcher": "$tsc-watch",
10+
"isBackground": true,
11+
"presentation": {
12+
"reveal": "never"
13+
},
14+
"group": {
15+
"kind": "build",
16+
"isDefault": true
17+
}
18+
}
19+
]
2020
}

Diff for: ‎CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
66

77
## [Unreleased]
88

9-
- Initial release
9+
- Initial release

Diff for: ‎jest.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
preset: 'ts-jest',
3-
verbose: true,
4-
testPathIgnorePatterns: ['build'],
2+
preset: 'ts-jest',
3+
verbose: true,
4+
testPathIgnorePatterns: ['build'],
55
}

Diff for: ‎package-lock.json

+1,685-664
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: ‎package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"watch": "tsc -watch -p ./"
3232
},
3333
"dependencies": {
34-
"@sentry/node": "^5.15.0",
34+
"@sentry/node": "^5.15.4",
3535
"chokidar": "^3.3.0",
3636
"dotenv": "^8.2.0",
3737
"jsdom": "^16.2.1"
@@ -41,16 +41,16 @@
4141
"@types/chokidar": "^2.1.3",
4242
"@types/dotenv": "^8.2.0",
4343
"@types/jest": "^25.1.4",
44-
"@types/jsdom": "^16.1.0",
45-
"@types/node": "^13.9.2",
46-
"@typescript-eslint/eslint-plugin": "^2.24.0",
47-
"@typescript-eslint/parser": "^2.24.0",
44+
"@types/jsdom": "^16.2.0",
45+
"@types/node": "^13.9.5",
46+
"@typescript-eslint/eslint-plugin": "^2.25.0",
47+
"@typescript-eslint/parser": "^2.25.0",
4848
"eslint": "^6.8.0",
49-
"eslint-config-prettier": "^6.10.0",
49+
"eslint-config-prettier": "^6.10.1",
5050
"eslint-plugin-prettier": "^3.1.2",
5151
"graphql": "^14.6.0",
52-
"jest": "^25.1.0",
53-
"prettier": "^1.19.1",
52+
"jest": "^25.2.3",
53+
"prettier": "^2.0.2",
5454
"ts-jest": "^25.2.1",
5555
"typescript": "^3.8.3",
5656
"vscode": "^1.1.36",

Diff for: ‎scripts/fixFontPaths.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const fs = require('fs') // eslint-disable-line
77
// find the generated main css file
88
const getMainCSSFile = () => {
99
const regex = /^main.[a-z0-9]+.chunk.css$/
10-
const mainCss = fs.readdirSync('build/static/css').filter(filename => filename.match(regex))
10+
const mainCss = fs.readdirSync('build/static/css').filter((filename) => filename.match(regex))
1111
if (!mainCss.length) {
1212
throw new Error('No main.css file found in build/static/css')
1313
}

Diff for: ‎src/actions/tutorialConfig.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const tutorialConfig = async (
1818
) => {
1919
if (!alreadyConfigured) {
2020
// setup git, add remote
21-
await git.initIfNotExists().catch(error => {
21+
await git.initIfNotExists().catch((error) => {
2222
onError(new Error('Git not found'))
2323
// failed to setup git
2424
handleError({
@@ -29,7 +29,7 @@ const tutorialConfig = async (
2929
})
3030

3131
// TODO if remote not already set
32-
await git.setupRemote(config.repo.uri).catch(error => {
32+
await git.setupRemote(config.repo.uri).catch((error) => {
3333
onError(error)
3434
handleError({ title: error.message, description: 'Remove your current Git project and restarting' })
3535
})

Diff for: ‎src/channel/state/Progress.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Progress {
4444
// mark step complete
4545
next.steps[stepId] = true
4646

47-
const currentLevel = tutorialData.levels.find(l => l.steps.find(s => s.id === stepId))
47+
const currentLevel = tutorialData.levels.find((l) => l.steps.find((s) => s.id === stepId))
4848
if (!currentLevel) {
4949
throw new Error(`setStepComplete level not found for stepId ${stepId}`)
5050
}

Diff for: ‎src/webview/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const createReactWebView = ({ extensionPath, workspaceState, workspaceRoot }: Re
5959
// Clean up our resources
6060
loaded = false
6161
panel.dispose()
62-
Promise.all(disposables.map(x => x.dispose()))
62+
Promise.all(disposables.map((x) => x.dispose()))
6363
},
6464
createOrShow() {
6565
vscode.commands.executeCommand('vscode.setEditorLayout', {

Diff for: ‎src/webview/render.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ async function render(panel: vscode.WebviewPanel, rootPath: string) {
7777
`font-src ${panel.webview.cspSource} http: https: data:`,
7878
// @ts-ignore
7979
`img-src ${panel.webview.cspSource} https:`,
80-
`script-src ${nonces.map(nonce => `'nonce-${nonce}'`).join(' ')} data:`,
80+
`script-src ${nonces.map((nonce) => `'nonce-${nonce}'`).join(' ')} data:`,
8181
// @ts-ignore
8282
`style-src ${panel.webview.cspSource} https: 'self' 'unsafe-inline'`,
8383
].join('; ') + ';'

Diff for: ‎web-app/.eslintrc.js

+55-55
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,65 @@
11
module.exports = {
2-
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
2+
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
33
extends: [
44
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
55
'prettier/@typescript-eslint', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
66
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array
77
],
8-
parserOptions: {
9-
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
10-
sourceType: 'module', // Allows for the use of imports
11-
ecmaFeatures: {
12-
jsx: true, // Allows for the parsing of JSX
13-
useJSXTextNode: true,
14-
},
15-
},
16-
rules: {
17-
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
18-
// e.g.
19-
'arrow-parens': 0,
20-
'comma-dangles': 0,
21-
'global-require': 0,
22-
'import/no-extraneous-dependencies': 0,
23-
'import/no-named-as-default': 0,
24-
'import/prefer-default-export': 0,
25-
'jsx-a11y/href-no-hash': 0,
26-
quotes: ['error', 'single'],
27-
'no-tabs': 0,
28-
'react/jsx-curly-spacing': 0,
29-
'react/jsx-indent-props': 'off',
30-
'react/prop-types': 0,
31-
'react/sort-comp': 0,
32-
'react/prefer-stateless-function': 0,
33-
semi: ['error', 'never'],
34-
'object-curly-newline': 0,
35-
'react/jsx-indent': 'off',
36-
'class-methods-use-this': 0,
37-
indent: 'off',
38-
'implicit-arrow-linebreak': 'off',
39-
'function-paren-newline': 'off',
40-
'lines-between-class-members': 'off',
41-
'no-unreachable': 'off',
42-
'import/no-unresolved': 'off',
43-
'no-unused-vars': 'off',
44-
'no-confusing-arrow': 'off',
45-
'no-restricted-syntax': 'off',
46-
'react/jsx-one-expression-per-line': 'off',
47-
'guard-for-in': 'off',
48-
'no-nested-ternary': 'off',
49-
'no-underscore-dangle': 'off',
50-
'react/destructuring-assignment': 'off',
51-
'no-return-assign': 'off',
52-
'no-case-declarations': 'off',
53-
'react/no-array-index-key': 'off',
54-
'@typescript-eslint/explicit-function-return-type': 'off',
8+
parserOptions: {
9+
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
10+
sourceType: 'module', // Allows for the use of imports
11+
ecmaFeatures: {
12+
jsx: true, // Allows for the parsing of JSX
13+
useJSXTextNode: true,
14+
},
15+
},
16+
rules: {
17+
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
18+
// e.g.
19+
'arrow-parens': 'on',
20+
'comma-dangles': 0,
21+
'global-require': 0,
22+
'import/no-extraneous-dependencies': 0,
23+
'import/no-named-as-default': 0,
24+
'import/prefer-default-export': 0,
25+
'jsx-a11y/href-no-hash': 0,
26+
quotes: ['error', 'single'],
27+
'no-tabs': 0,
28+
'react/jsx-curly-spacing': 0,
29+
'react/jsx-indent-props': 'off',
30+
'react/prop-types': 0,
31+
'react/sort-comp': 0,
32+
'react/prefer-stateless-function': 0,
33+
semi: ['error', 'never'],
34+
'object-curly-newline': 0,
35+
'react/jsx-indent': 'off',
36+
'class-methods-use-this': 0,
37+
indent: 'off',
38+
'implicit-arrow-linebreak': 'off',
39+
'function-paren-newline': 'off',
40+
'lines-between-class-members': 'off',
41+
'no-unreachable': 'off',
42+
'import/no-unresolved': 'off',
43+
'no-unused-vars': 'off',
44+
'no-confusing-arrow': 'off',
45+
'no-restricted-syntax': 'off',
46+
'react/jsx-one-expression-per-line': 'off',
47+
'guard-for-in': 'off',
48+
'no-nested-ternary': 'off',
49+
'no-underscore-dangle': 'off',
50+
'react/destructuring-assignment': 'off',
51+
'no-return-assign': 'off',
52+
'no-case-declarations': 'off',
53+
'react/no-array-index-key': 'off',
54+
'@typescript-eslint/explicit-function-return-type': 'off',
5555
'@typescript-eslint/no-explicit-any': 'off',
5656
'@typescript-eslint/ban-ts-ignore': 'off',
5757
'@typescript-eslint/no-unused-vars': 'off',
58-
'@typescript-eslint/camelcase': 'off',
59-
},
60-
settings: {
61-
react: {
62-
version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use
63-
},
64-
},
58+
'@typescript-eslint/camelcase': 'off',
59+
},
60+
settings: {
61+
react: {
62+
version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use
63+
},
64+
},
6565
}

Diff for: ‎web-app/.prettierrc.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
module.exports = {
2-
printWidth: 120,
3-
semi: false,
4-
singleQuote: true,
5-
tabWidth: 2,
6-
trailingComma: 'all',
2+
printWidth: 120,
3+
semi: false,
4+
singleQuote: true,
5+
tabWidth: 2,
6+
trailingComma: 'all',
7+
arrowParens: 'always',
8+
endOfLine: 'lf',
79
}

Diff for: ‎web-app/.vscode/settings.json

+28-29
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
11
{
2-
"editor.formatOnSave": true,
3-
"editor.codeActionsOnSave": {
4-
"source.organizeImports": true,
5-
"source.fixAll": true
6-
},
7-
"files.exclude": {
8-
"build": false, // set this to true to hide the "out" folder with the compiled JS files
9-
".vscode-test/**": true,
10-
"*.vsix": true
11-
},
12-
// styles
13-
"workbench.colorCustomizations": {
14-
"activityBar.background": "#1a1a1a",
15-
"activityBar.activeBorder": "#606020",
16-
"activityBar.foreground": "#e7e7e7",
17-
"activityBar.inactiveForeground": "#e7e7e799",
18-
"activityBarBadge.background": "#606020",
19-
"activityBarBadge.foreground": "#e7e7e7",
20-
"titleBar.activeBackground": "#000000",
21-
"titleBar.inactiveBackground": "#00000099",
22-
"titleBar.activeForeground": "#e7e7e7",
23-
"titleBar.inactiveForeground": "#e7e7e799",
24-
"statusBar.background": "#000000",
25-
"statusBarItem.hoverBackground": "#1a1a1a",
26-
"statusBar.foreground": "#e7e7e7"
27-
},
28-
"peacock.color": "#000000"
29-
}
30-
2+
"editor.formatOnSave": true,
3+
"editor.codeActionsOnSave": {
4+
"source.organizeImports": true,
5+
"source.fixAll": true
6+
},
7+
"files.exclude": {
8+
"build": false, // set this to true to hide the "out" folder with the compiled JS files
9+
".vscode-test/**": true,
10+
"*.vsix": true
11+
},
12+
// styles
13+
"workbench.colorCustomizations": {
14+
"activityBar.background": "#1a1a1a",
15+
"activityBar.activeBorder": "#606020",
16+
"activityBar.foreground": "#e7e7e7",
17+
"activityBar.inactiveForeground": "#e7e7e799",
18+
"activityBarBadge.background": "#606020",
19+
"activityBarBadge.foreground": "#e7e7e7",
20+
"titleBar.activeBackground": "#000000",
21+
"titleBar.inactiveBackground": "#00000099",
22+
"titleBar.activeForeground": "#e7e7e7",
23+
"titleBar.inactiveForeground": "#e7e7e799",
24+
"statusBar.background": "#000000",
25+
"statusBarItem.hoverBackground": "#1a1a1a",
26+
"statusBar.foreground": "#e7e7e7"
27+
},
28+
"peacock.color": "#000000"
29+
}

Diff for: ‎web-app/package-lock.json

+70-61
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: ‎web-app/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@alifd/theme-4": "^0.2.3",
3030
"@apollo/react-hooks": "^3.1.3",
3131
"@emotion/core": "^10.0.28",
32-
"@sentry/browser": "^5.15.0",
32+
"@sentry/browser": "^5.15.4",
3333
"apollo-boost": "^0.4.7",
3434
"graphql": "^14.6.0",
3535
"markdown-it": "^10.0.0",
@@ -56,22 +56,22 @@
5656
"@types/highlight.js": "^9.12.3",
5757
"@types/jest": "^25.1.4",
5858
"@types/markdown-it": "0.0.9",
59-
"@types/node": "^13.9.2",
59+
"@types/node": "^13.9.5",
6060
"@types/prismjs": "^1.16.0",
61-
"@types/react": "^16.9.25",
61+
"@types/react": "^16.9.26",
6262
"@types/react-addons-css-transition-group": "^15.0.5",
6363
"@types/react-dom": "^16.9.5",
64-
"@typescript-eslint/eslint-plugin": "^2.24.0",
65-
"@typescript-eslint/parser": "^2.24.0",
64+
"@typescript-eslint/eslint-plugin": "^2.25.0",
65+
"@typescript-eslint/parser": "^2.25.0",
6666
"babel-loader": "8.0.5",
6767
"babel-plugin-import": "^1.12.1",
6868
"customize-cra": "^0.9.1",
6969
"eslint": "^6.8.0",
70-
"eslint-config-prettier": "^6.10.0",
70+
"eslint-config-prettier": "^6.10.1",
7171
"eslint-plugin-prettier": "^3.1.2",
7272
"mini-css-extract-plugin": "^0.9.0",
7373
"node-sass": "^4.13.1",
74-
"prettier": "^1.19.1",
74+
"prettier": "^2.0.2",
7575
"react-app-rewired": "^2.1.5",
7676
"react-scripts": "^3.4.1",
7777
"sass-loader": "^8.0.2",

Diff for: ‎web-app/public/index.html

+18-20
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
4-
<head>
5-
<meta charset="utf-8">
6-
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7-
<meta name="theme-color" content="#000000">
8-
<!--
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
6+
<meta name="theme-color" content="#000000" />
7+
<!--
98
manifest.json provides metadata used when your web app is added to the
109
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
1110
-->
12-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
13-
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
14-
<!--
11+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
12+
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
13+
<!--
1514
Notice the use of %PUBLIC_URL% in the tags above.
1615
It will be replaced with the URL of the `public` folder during the build.
1716
Only files inside the `public` folder can be referenced from the HTML.
@@ -20,15 +19,15 @@
2019
work correctly both with client-side routing and a non-root public URL.
2120
Learn how to configure a non-root public URL by running `npm run build`.
2221
-->
23-
<title>CodeRoad</title>
24-
</head>
22+
<title>CodeRoad</title>
23+
</head>
2524

26-
<body>
27-
<noscript>
28-
You need to enable JavaScript to run this app.
29-
</noscript>
30-
<div id="root"></div>
31-
<!--
25+
<body>
26+
<noscript>
27+
You need to enable JavaScript to run this app.
28+
</noscript>
29+
<div id="root"></div>
30+
<!--
3231
This HTML file is a template.
3332
If you open it directly in the browser, you will see an empty page.
3433
@@ -38,6 +37,5 @@
3837
To begin the development, run `npm start` or `yarn start`.
3938
To create a production bundle, use `npm run build` or `yarn build`.
4039
-->
41-
</body>
42-
43-
</html>
40+
</body>
41+
</html>

Diff for: ‎web-app/src/components/ProcessMessages/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const ProcessMessages = ({ processes, testStatus }: Props) => {
2626
}
2727
return (
2828
<div css={styles.container}>
29-
{processes.map(process => (
29+
{processes.map((process) => (
3030
<Message key={process.title} type="loading" size="medium" title={process.title} content={process.description} />
3131
))}
3232
</div>

Diff for: ‎web-app/src/components/Router/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const useRouter = (): Output => {
5454
if (typeof path === 'string') {
5555
pathMatch = state.matches(path)
5656
} else if (Array.isArray(path)) {
57-
pathMatch = path.some(p => state.matches(p))
57+
pathMatch = path.some((p) => state.matches(p))
5858
} else {
5959
throw new Error(`Invalid route path ${JSON.stringify(path)}`)
6060
}

Diff for: ‎web-app/src/containers/Tutorial/LevelPage/Level.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ interface Props {
8686

8787
const Level = ({ level, onContinue, onLoadSolution, processes, testStatus }: Props) => {
8888
// @ts-ignore
89-
let currentStep = level.steps.findIndex(s => s.status === 'ACTIVE')
89+
let currentStep = level.steps.findIndex((s) => s.status === 'ACTIVE')
9090
if (currentStep === -1) {
9191
currentStep = level.steps.length
9292
}

Diff for: ‎web-app/src/services/state/actions/command.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
processes: (context: T.MachineContext, event: T.MachineEvent): any => {
77
let processes: T.ProcessEvent[] = context.processes
88
const process: T.ProcessEvent = event.payload.process
9-
const isRunning = processes.find(p => p.title === process.title)
9+
const isRunning = processes.find((p) => p.title === process.title)
1010
if (!isRunning) {
1111
processes = processes.concat(process)
1212
}
@@ -17,14 +17,14 @@ export default {
1717
processes: (context: T.MachineContext, event: T.MachineEvent): any => {
1818
const processes: T.ProcessEvent[] = context.processes
1919
const process: T.ProcessEvent = event.payload.process
20-
return processes.filter(p => p.title !== process.title)
20+
return processes.filter((p) => p.title !== process.title)
2121
},
2222
}),
2323
commandFail: assign({
2424
processes: (context: T.MachineContext, event: T.MachineEvent): any => {
2525
const processes: T.ProcessEvent[] = context.processes
2626
const process: T.ProcessEvent = event.payload.process
27-
return processes.filter(p => p.title !== process.title)
27+
return processes.filter((p) => p.title !== process.title)
2828
},
2929
}),
3030
}

Diff for: ‎web-app/src/services/state/services/authenticate.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export async function authenticate(context: CR.MachineContext): Promise<any> {
2828
editor: 'VSCODE',
2929
},
3030
})
31-
.catch(error => {
31+
.catch((error) => {
3232
onError(error)
3333
console.log('ERROR: Authentication failed')
3434
console.log(error.message)

Diff for: ‎web-app/src/services/xstate-react/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function useMachine<TContext, TEvent extends EventObject>(
5050

5151
// Create the service only once
5252
if (serviceRef.current === null) {
53-
serviceRef.current = interpret(machineRef.current, interpreterOptions).onTransition(state => {
53+
serviceRef.current = interpret(machineRef.current, interpreterOptions).onTransition((state) => {
5454
// Update the current machine state when a transition occurs
5555
if (state.changed) {
5656
setCurrent(state) // eslint-disable-line

Diff for: ‎web-app/stories/utils/ApolloDecorator.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ function StorybookProvider({ children }) {
1010
)
1111
}
1212

13-
export default story => {
13+
export default (story) => {
1414
return <StorybookProvider>{story()}</StorybookProvider>
1515
}

Diff for: ‎web-app/stories/utils/SideBarDecorator.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ const styles = {
1414
},
1515
}
1616

17-
const SideBarDecorator = storyFn => <div css={styles.container}>{storyFn()}</div>
17+
const SideBarDecorator = (storyFn) => <div css={styles.container}>{storyFn()}</div>
1818

1919
export default SideBarDecorator

0 commit comments

Comments
 (0)
Please sign in to comment.