Skip to content

Commit 4da83ab

Browse files
committed
chore(lints): fix lints and spacing
1 parent ed4ea05 commit 4da83ab

Some content is hidden

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

44 files changed

+11833
-8900
lines changed

.yarn/releases/yarn-4.9.1.cjs

Lines changed: 948 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
nodeLinker: node-modules
2+
3+
yarnPath: .yarn/releases/yarn-4.9.1.cjs

eslint.config.mjs

Lines changed: 56 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,63 @@
1-
import eslint from '@eslint/js';
2-
import prettierPlugin from 'eslint-plugin-prettier';
3-
import unusedImportsPlugin from 'eslint-plugin-unused-imports';
1+
import eslint from "@eslint/js";
2+
import prettierPlugin from "eslint-plugin-prettier";
3+
import unusedImportsPlugin from "eslint-plugin-unused-imports";
44

5-
import prettierExtends from 'eslint-config-prettier';
6-
import { fixupPluginRules } from '@eslint/compat';
7-
import globals from 'globals';
8-
import tseslint from 'typescript-eslint';
5+
import prettierExtends from "eslint-config-prettier";
6+
import { fixupPluginRules } from "@eslint/compat";
7+
import globals from "globals";
8+
import tseslint from "typescript-eslint";
99

1010
const globalToUse = {
11-
...globals.browser,
12-
...globals.serviceworker,
13-
...globals.es2021,
14-
...globals.worker,
15-
...globals.node,
11+
...globals.browser,
12+
...globals.serviceworker,
13+
...globals.es2021,
14+
...globals.worker,
15+
...globals.node,
1616
};
1717

1818
export default tseslint.config({
19-
extends: [
20-
{
21-
ignores: ['dist/**', 'bin/**'],
22-
},
23-
prettierExtends,
24-
eslint.configs.recommended,
25-
...tseslint.configs.recommended,
26-
],
27-
plugins: {
28-
prettierPlugin,
29-
'unused-imports': fixupPluginRules(unusedImportsPlugin),
30-
},
31-
rules: {
32-
'@typescript-eslint/no-this-alias': 'off',
33-
'@typescript-eslint/no-unused-expressions': 'off',
34-
'no-useless-escape': 'off',
35-
'no-prototype-builtins': 'off',
36-
'no-undef': 'off',
37-
'@typescript-eslint/no-require-imports': 'off',
38-
'@typescript-eslint/no-unused-vars': 'off',
39-
indent: [
40-
'error',
41-
'tab',
42-
{
43-
SwitchCase: 1,
44-
},
45-
],
46-
'linebreak-style': [
47-
'error',
48-
process.platform === 'win32' ? 'windows' : 'unix',
49-
],
50-
quotes: ['error', 'single'],
51-
semi: ['error', 'always'],
52-
'@typescript-eslint/ban-ts-comment': 'off',
53-
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
54-
'@typescript-eslint/consistent-type-imports': [
55-
'error',
56-
{
57-
prefer: 'type-imports',
58-
},
59-
],
60-
'@typescript-eslint/no-explicit-any': 'off',
61-
},
62-
languageOptions: {
63-
globals: globalToUse,
64-
parserOptions: {
65-
ecmaFeatures: {
66-
jsx: true,
67-
},
68-
},
69-
},
19+
extends: [
20+
{
21+
ignores: ["dist/**", "bin/**", "docs/**", ".yarn/**"],
22+
},
23+
prettierExtends,
24+
eslint.configs.recommended,
25+
...tseslint.configs.recommended,
26+
],
27+
plugins: {
28+
prettierPlugin,
29+
"unused-imports": fixupPluginRules(unusedImportsPlugin),
30+
},
31+
rules: {
32+
"@typescript-eslint/no-this-alias": "off",
33+
"@typescript-eslint/no-unused-expressions": "off",
34+
"no-useless-escape": "off",
35+
"no-prototype-builtins": "off",
36+
"no-undef": "off",
37+
"@typescript-eslint/no-require-imports": "off",
38+
"@typescript-eslint/no-unused-vars": "off",
39+
"linebreak-style": [
40+
"error",
41+
process.platform === "win32" ? "windows" : "unix",
42+
],
43+
quotes: ["error", "double"],
44+
semi: ["error", "always"],
45+
"@typescript-eslint/ban-ts-comment": "off",
46+
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
47+
"@typescript-eslint/consistent-type-imports": [
48+
"error",
49+
{
50+
prefer: "type-imports",
51+
},
52+
],
53+
"@typescript-eslint/no-explicit-any": "off",
54+
},
55+
languageOptions: {
56+
globals: globalToUse,
57+
parserOptions: {
58+
ecmaFeatures: {
59+
jsx: true,
60+
},
61+
},
62+
},
7063
});

karma.conf.js

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@
22
// https://karma-runner.github.io/0.12/config/configuration-file.html
33
// https://jstools.dev/karma-config/
44

5-
'use strict';
5+
"use strict";
66

7-
const { karmaConfig } = require('@jsdevtools/karma-config');
8-
const { host } = require('@jsdevtools/host-environment');
7+
const { karmaConfig } = require("@jsdevtools/karma-config");
8+
const { host } = require("@jsdevtools/host-environment");
99

1010
module.exports = karmaConfig({
11-
sourceDir: 'lib',
12-
fixtures: 'test/fixtures/**/*.js',
13-
browsers: {
14-
chrome: host.ci ? host.os.linux : true,
15-
firefox: host.ci ? host.os.linux : true,
16-
safari: false,
17-
edge: false,
18-
ie: false,
19-
// Find a way to bring back these without using Saucelabs
20-
// safari: host.ci ? host.os.linux : host.os.mac,
21-
// edge: host.os.windows,
22-
// ie: host.ci ? host.os.windows : true,
23-
},
24-
config: {
25-
exclude: [
26-
// Exclude these tests because some of the APIs are HUGE and cause timeouts.
27-
// We still test them in Node though.
28-
'test/specs/real-world/*',
29-
],
30-
},
11+
sourceDir: "lib",
12+
fixtures: "test/fixtures/**/*.js",
13+
browsers: {
14+
chrome: host.ci ? host.os.linux : true,
15+
firefox: host.ci ? host.os.linux : true,
16+
safari: false,
17+
edge: false,
18+
ie: false,
19+
// Find a way to bring back these without using Saucelabs
20+
// safari: host.ci ? host.os.linux : host.os.mac,
21+
// edge: host.os.windows,
22+
// ie: host.ci ? host.os.windows : true,
23+
},
24+
config: {
25+
exclude: [
26+
// Exclude these tests because some of the APIs are HUGE and cause timeouts.
27+
// We still test them in Node though.
28+
"test/specs/real-world/*",
29+
],
30+
},
3131
});

0 commit comments

Comments
 (0)