Skip to content

Commit bacfe90

Browse files
committed
Remove eslint
1 parent 393b2c1 commit bacfe90

Some content is hidden

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

95 files changed

+4098
-5469
lines changed

.eslintrc

Lines changed: 0 additions & 11 deletions
This file was deleted.

benchmark/.eslintrc.cjs

Lines changed: 0 additions & 18 deletions
This file was deleted.

benchmark/build-src.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
import * as esbuild from 'esbuild';
22

33
esbuild.buildSync({
4-
entryPoints: [
5-
'./src/index.ts',
6-
],
4+
entryPoints: ['./src/index.ts'],
75
outfile: './build/index.cjs',
86
bundle: true,
97
minify: true,
108
sourcemap: false,
119
format: 'cjs',
1210
platform: 'node',
1311
tsconfig: './tsconfig.json',
14-
target: "es2018",
12+
target: 'es2018',
1513
legalComments: 'eof',
16-
external: [
17-
"benny",
18-
],
14+
external: ['benny'],
1915
});

benchmark/example.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { serializeAsync } from 'seroval';
22
import { BlobPlugin } from 'seroval-plugins/web';
33

4-
const example = new Blob(['Hello, World!'], { type: 'text/plain '});
5-
console.log(await serializeAsync(example, {
6-
plugins: [
7-
BlobPlugin,
8-
],
9-
}));
4+
const example = new Blob(['Hello, World!'], { type: 'text/plain ' });
5+
console.log(
6+
await serializeAsync(example, {
7+
plugins: [BlobPlugin],
8+
}),
9+
);

benchmark/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
"devDependencies": {
1010
"@types/node": "^20.8.3",
1111
"esbuild": "^0.19.4",
12-
"eslint": "^8.51.0",
13-
"eslint-config-lxsmnsyc": "^0.6.6",
1412
"tslib": "^2.6.2",
1513
"typescript": "^5.3.2"
1614
},
@@ -45,4 +43,4 @@
4543
"*": {}
4644
},
4745
"version": "0.15.1"
48-
}
46+
}

benchmark/src/index.ts

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
/* eslint-disable no-void */
2-
/* eslint-disable @typescript-eslint/no-unsafe-argument */
31
import util from 'util';
4-
import {
5-
suite, add, cycle, complete, save,
6-
} from 'benny';
2+
import { suite, add, cycle, complete, save } from 'benny';
73

84
// fixtures
95
import circularDedupe from './fixtures/circular-dedupe';
@@ -43,24 +39,24 @@ const tools = [
4339
];
4440

4541
const fixtures = {
46-
// 'circular-dedupe': circularDedupe,
47-
// 'circular-simple': circularSimple,
48-
// 'dedupe-object': dedupeObject,
49-
// 'large-circular-collection': largeCircularCollection,
50-
// 'large-complex-collection': largeComplexCollection,
51-
// 'large-dedupe-collection': largeDedupeCollection,
52-
// 'large-invalid-keys-collection': largeInvalidKeysCollection,
53-
// 'large-simple-collection': largeSimpleCollection,
54-
// 'simple-object': simpleObject,
42+
'circular-dedupe': circularDedupe,
43+
'circular-simple': circularSimple,
44+
'dedupe-object': dedupeObject,
45+
'large-circular-collection': largeCircularCollection,
46+
'large-complex-collection': largeComplexCollection,
47+
'large-dedupe-collection': largeDedupeCollection,
48+
'large-invalid-keys-collection': largeInvalidKeysCollection,
49+
'large-simple-collection': largeSimpleCollection,
50+
'simple-object': simpleObject,
5551
'small-collection': smallCollection,
5652
};
5753

58-
Object.entries(fixtures).forEach(([key, value]) => {
54+
for (const [key, value] of Object.entries(fixtures)) {
5955
const suiteName = key;
6056
const getData = value as () => unknown;
6157

6258
// Skip benchmarks that couldn't properly serialize and hydrate the structure.
63-
const toolsForFixture = tools.map((tool) => {
59+
const toolsForFixture = tools.map(tool => {
6460
let skip = false;
6561
try {
6662
skip = !util.isDeepStrictEqual(
@@ -76,9 +72,11 @@ Object.entries(fixtures).forEach(([key, value]) => {
7672

7773
void suite(
7874
`${suiteName} to string`,
79-
...toolsForFixture.map(({ name, utils, skip }) => (skip ? add.skip : add)(name, () => {
80-
utils.toString(getData());
81-
})),
75+
...toolsForFixture.map(({ name, utils, skip }) =>
76+
(skip ? add.skip : add)(name, () => {
77+
utils.toString(getData());
78+
}),
79+
),
8280
cycle(),
8381
complete(),
8482
save({
@@ -99,17 +97,16 @@ Object.entries(fixtures).forEach(([key, value]) => {
9997

10098
void suite(
10199
`${suiteName} from string`,
102-
...toolsForFixture.map(({ name, utils }) => (
100+
...toolsForFixture.map(({ name, utils }) =>
103101
// This does not account for parse time since eval is cached.
104102
// skipped for now because it is not useful until a way to avoid eval cache is found.
105103
add.skip(name, () => {
106-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
107104
const sampleOutput = utils.toString(getData());
108105
return (): void => {
109106
utils.fromString(sampleOutput);
110107
};
111-
})
112-
)),
108+
}),
109+
),
113110
cycle(),
114111
complete(),
115112
save({
@@ -127,4 +124,4 @@ Object.entries(fixtures).forEach(([key, value]) => {
127124
format: 'csv',
128125
}),
129126
);
130-
});
127+
}

benchmark/tsconfig.eslint.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)