Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit 9dedafe

Browse files
committed
fixed typos
1 parent 088ac24 commit 9dedafe

File tree

43 files changed

+220
-200
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+220
-200
lines changed

benchmark/benchmarks/benchmarkManager.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ export function endBenchmarkLog(
4949
const cycleResult = results[i];
5050

5151
// Build Cycle Result Log
52-
const cycleString = `{bold.bgGreen ${
53-
i + 1
54-
}.} {bold.blue ${cycleResult.name
52+
const cycleString = `{bold.bgGreen ${i + 1}.} {bold.blue ${cycleResult.name
5553
.padEnd(20, '.')
5654
.replace(/(\.+)$/, '{red $1}')}}{yellow ${
5755
cycleResult.opsInSec

benchmark/benchmarks/typescript/cloneDeep/bench/looper.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ export function cloneDeep<T = any>(value: T): T {
33
if (value == null || typeof value !== 'object') return value;
44

55
// Ignore everything that is no object or array but has the type of an object (e.g. classes)
6-
const valConstructorName = Object.getPrototypeOf(
7-
value
8-
).constructor.name.toLowerCase();
6+
const valConstructorName =
7+
Object.getPrototypeOf(value).constructor.name.toLowerCase();
98
if (valConstructorName !== 'object' && valConstructorName !== 'array')
109
return value;
1110

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
22
reactStrictMode: true,
3-
}
3+
};
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
22
reactStrictMode: true,
3-
}
3+
};
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import {createState} from '@agile-ts/core'
1+
import { createState } from '@agile-ts/core';
22

33
export const COUNTER = createState(0);
44

5-
export const incrementCount = () => COUNTER.set(v => v + 1);
6-
export const decrementCount = () => COUNTER.set(v => v - 1);
5+
export const incrementCount = () => COUNTER.set((v) => v + 1);
6+
export const decrementCount = () => COUNTER.set((v) => v - 1);
77
export const resetCount = () => COUNTER.reset();
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import {createState} from '@agile-ts/core'
1+
import { createState } from '@agile-ts/core';
22

33
export const COUNTER = createState(0);
44

5-
export const incrementCount = () => COUNTER.set(v => v + 1);
6-
export const decrementCount = () => COUNTER.set(v => v - 1);
5+
export const incrementCount = () => COUNTER.set((v) => v + 1);
6+
export const decrementCount = () => COUNTER.set((v) => v - 1);
77
export const resetCount = () => COUNTER.reset();

examples/razzle/develop/counter/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import express from 'express';
33
let app = require('./server').default;
44

55
if (module.hot) {
6-
module.hot.accept('./server', function() {
6+
module.hot.accept('./server', function () {
77
console.log('🔁 HMR Reloading `./server`...');
88
try {
99
app = require('./server').default;
@@ -18,7 +18,7 @@ const port = process.env.PORT || 3000;
1818

1919
export default express()
2020
.use((req, res) => app.handle(req, res))
21-
.listen(port, function(err) {
21+
.listen(port, function (err) {
2222
if (err) {
2323
console.error(err);
2424
return;

examples/razzle/develop/counter/src/server.js

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,23 @@ import { renderToString } from 'react-dom/server';
77
const assets = require(process.env.RAZZLE_ASSETS_MANIFEST);
88

99
const cssLinksFromAssets = (assets, entrypoint) => {
10-
return assets[entrypoint] ? assets[entrypoint].css ?
11-
assets[entrypoint].css.map(asset=>
12-
`<link rel="stylesheet" href="${asset}">`
13-
).join('') : '' : '';
10+
return assets[entrypoint]
11+
? assets[entrypoint].css
12+
? assets[entrypoint].css
13+
.map((asset) => `<link rel="stylesheet" href="${asset}">`)
14+
.join('')
15+
: ''
16+
: '';
1417
};
1518

1619
const jsScriptTagsFromAssets = (assets, entrypoint, extra = '') => {
17-
return assets[entrypoint] ? assets[entrypoint].js ?
18-
assets[entrypoint].js.map(asset=>
19-
`<script src="${asset}"${extra}></script>`
20-
).join('') : '' : '';
20+
return assets[entrypoint]
21+
? assets[entrypoint].js
22+
? assets[entrypoint].js
23+
.map((asset) => `<script src="${asset}"${extra}></script>`)
24+
.join('')
25+
: ''
26+
: '';
2127
};
2228

2329
const server = express();

examples/react/develop/simple-counter/scripts/analyze.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ console.log(
1717
process.env.NODE_ENV = isDev ? 'development' : 'production';
1818

1919
const webpack = require('webpack');
20-
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer')
21-
.BundleAnalyzerPlugin;
20+
const BundleAnalyzerPlugin =
21+
require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
2222
const webpackConfigProd = require('react-scripts/config/webpack.config')(
2323
'production'
2424
);

examples/react/release/stopwatch-query-url/src/core/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ getSharedStorageManager().register(queryUrlStorage, { default: true });
4040
// State to keep track of the current time of the Stopwatch
4141
const TIME = createState(
4242
{ s: 0, m: 0, h: 0 },
43-
{ key: 'stopwatch-time' },
43+
{ key: 'stopwatch-time' }
4444
).persist();
4545

4646
// State to keep track of the current state of the Stopwatch

0 commit comments

Comments
 (0)