From 5eea63328f91addd5f4d6eb2bc6e0f35c95a755f Mon Sep 17 00:00:00 2001 From: Mats Jun Larsen Date: Mon, 3 Feb 2025 02:54:31 +0900 Subject: [PATCH] Migrate to Biome for linting and formatting (#7033) --- .devcontainer/devcontainer.json | 4 +- .eslint-license-header.yml | 32 - .eslintignore | 12 - .eslintrc.yml | 181 -- .idea/codeStyles/Project.xml | 5 +- .idea/compiler-explorer.iml | 1 + .idea/inspectionProfiles/Project_Default.xml | 2 +- .idea/prettier.xml | 8 - .prettierignore | 49 - .prettierrc.cjs | 17 - Makefile | 4 - app.ts | 51 +- biome.json | 76 + compiler-args-app.ts | 8 +- cypress.config.ts | 2 - cypress/e2e/frontend.cy.ts | 2 +- cypress/support/utils.ts | 2 +- etc/cewrapper/compilers-and-tools.json | 18 +- etc/cewrapper/user-execution.json | 10 +- etc/scripts/docenizers/package.json | 2 +- etc/scripts/docenizers/tsconfig.json | 20 +- etc/scripts/parsed-pug/package.json | 2 +- etc/scripts/tsconfig.json | 12 +- lib/.eslint-ce-lib.yml | 94 - lib/.eslintrc.cjs | 76 - lib/artifact-utils.ts | 6 +- lib/assert.ts | 15 +- lib/aws.ts | 2 +- lib/base-compiler.ts | 191 +- lib/binaries/binary-utils.ts | 20 +- lib/binaries/win-utils.ts | 2 +- lib/buildenvsetup/base.ts | 51 +- lib/buildenvsetup/ceconan-rust.ts | 23 +- lib/buildenvsetup/ceconan.ts | 15 +- lib/cache/from-config.ts | 4 +- lib/cache/on-disk.ts | 7 +- lib/cfg/cfg-parsers/base.ts | 48 +- lib/cfg/cfg-parsers/clang.ts | 2 +- lib/cfg/cfg-parsers/gcc.ts | 2 +- lib/cfg/cfg-parsers/llvm-ir.ts | 14 +- lib/cfg/cfg-parsers/oat.ts | 59 +- lib/cfg/cfg.ts | 9 +- lib/cfg/instruction-sets/arm.ts | 23 +- lib/cfg/instruction-sets/base.ts | 15 +- lib/clientstate-normalizer.ts | 12 +- lib/clientstate.ts | 2 +- lib/compilation-env.ts | 6 +- lib/compilation-queue.ts | 5 +- lib/compiler-arguments.ts | 17 +- lib/compiler-finder.ts | 10 +- lib/compilers/ada.ts | 21 +- lib/compilers/argument-parsers.ts | 320 +- lib/compilers/assembly.ts | 10 +- lib/compilers/avrgcc6502.ts | 7 +- lib/compilers/beebasm.ts | 2 +- lib/compilers/c3c.ts | 2 +- lib/compilers/carbon.ts | 2 +- lib/compilers/cc65.ts | 5 +- lib/compilers/cerberus.ts | 19 +- lib/compilers/circle.ts | 2 +- lib/compilers/circt.ts | 2 +- lib/compilers/clang.ts | 7 +- lib/compilers/clangcl.ts | 2 +- lib/compilers/clean.ts | 10 +- lib/compilers/clspv.ts | 2 +- lib/compilers/cppfront.ts | 2 +- lib/compilers/cproc.ts | 2 +- lib/compilers/crystal.ts | 8 +- lib/compilers/d8.ts | 2 +- lib/compilers/dart.ts | 5 +- lib/compilers/dex2oat.ts | 20 +- lib/compilers/dmd.ts | 2 +- lib/compilers/dosbox-compiler.ts | 7 +- lib/compilers/dotnet.ts | 30 +- lib/compilers/elixir.ts | 2 +- lib/compilers/elixirasm.ts | 2 +- lib/compilers/erlang.ts | 2 +- lib/compilers/erlangasm.ts | 2 +- lib/compilers/fake-for-test.ts | 4 +- lib/compilers/fortran.ts | 4 +- lib/compilers/gimple.ts | 2 +- lib/compilers/glsl.ts | 2 +- lib/compilers/gnucobol.ts | 7 +- lib/compilers/golang.ts | 5 +- lib/compilers/haskell.ts | 2 +- lib/compilers/hlsl.ts | 1 - lib/compilers/hook.ts | 4 +- lib/compilers/jakt.ts | 2 +- lib/compilers/java.ts | 22 +- lib/compilers/julia.ts | 2 +- lib/compilers/kotlin.ts | 2 +- lib/compilers/ldc.ts | 12 +- lib/compilers/llvm-mos.ts | 2 +- lib/compilers/madpascal.ts | 11 +- lib/compilers/mlir.ts | 2 +- lib/compilers/mrustc.ts | 2 +- lib/compilers/nim.ts | 14 +- lib/compilers/nvcc.ts | 11 +- lib/compilers/nvcpp.ts | 4 +- lib/compilers/nvrtc.ts | 2 +- lib/compilers/odin.ts | 4 +- lib/compilers/pascal-win.ts | 9 +- lib/compilers/pascal.ts | 25 +- lib/compilers/pony.ts | 2 +- lib/compilers/ptxas.ts | 6 +- lib/compilers/python.ts | 2 +- lib/compilers/pythran.ts | 6 +- lib/compilers/r8.ts | 2 +- lib/compilers/racket.ts | 2 +- lib/compilers/rga.ts | 2 +- lib/compilers/ruby.ts | 6 +- lib/compilers/rust.ts | 5 +- lib/compilers/rustc-cg-gcc.ts | 2 +- lib/compilers/slang.ts | 7 +- lib/compilers/solidity-zksync.ts | 2 +- lib/compilers/solidity.ts | 14 +- lib/compilers/spice.ts | 2 +- lib/compilers/spirv-tools.ts | 2 +- lib/compilers/spirv.ts | 2 +- lib/compilers/tic2000.ts | 2 +- lib/compilers/tinyc.ts | 9 +- lib/compilers/turboc.ts | 2 +- lib/compilers/typescript-native.ts | 2 +- lib/compilers/v.ts | 2 +- lib/compilers/v8.ts | 7 +- lib/compilers/vala.ts | 2 +- lib/compilers/vyper.ts | 4 +- lib/compilers/wasmtime.ts | 2 +- lib/compilers/win32-mingw-clang.ts | 2 +- lib/compilers/win32-mingw-gcc.ts | 2 +- lib/compilers/win32.ts | 20 +- lib/compilers/wine-vc.ts | 17 +- lib/compilers/wsl-vc.ts | 4 +- lib/compilers/wyrm.ts | 4 +- lib/compilers/ylc.ts | 2 +- lib/compilers/z88dk.ts | 14 +- lib/compilers/zig.ts | 2 +- lib/demangler/cpp.ts | 12 +- lib/demangler/llvm.ts | 2 - lib/demangler/pascal.ts | 22 +- lib/demangler/prefix-tree.ts | 2 +- lib/exec.ts | 18 +- lib/execution/base-execution-env.ts | 36 +- lib/execution/dotnet-execution-env.ts | 15 +- lib/execution/events-websocket.ts | 4 +- lib/execution/execution-query.ts | 1 - lib/execution/execution-triple.ts | 11 +- lib/execution/remote-execution-env.ts | 2 +- lib/execution/sqs-execution-queue.ts | 5 +- lib/external-parsers/base.ts | 4 +- lib/global.ts | 6 +- lib/handlers/api/healthcheck-controller.ts | 2 +- lib/handlers/compile.ts | 60 +- lib/handlers/noscript.ts | 2 +- lib/handlers/route-api.ts | 4 +- lib/keyed-type.ts | 6 +- lib/languages.ts | 2 +- lib/llvm-ast.ts | 9 +- lib/llvm-ir.ts | 11 +- lib/llvm-opt-transformer.ts | 2 +- lib/logger.ts | 6 +- lib/mapfiles/map-file-delphi.ts | 12 +- lib/mapfiles/map-file-vs.ts | 8 +- lib/mapfiles/map-file.ts | 25 +- lib/node-graceful.ts | 4 +- lib/options-handler.ts | 4 +- lib/packager.ts | 2 +- lib/parsers/asm-parser-beebasm.ts | 2 +- lib/parsers/asm-parser-cc65.ts | 4 +- lib/parsers/asm-parser-cpp.ts | 4 +- lib/parsers/asm-parser-dart.ts | 6 +- lib/parsers/asm-parser-dotnet.ts | 6 +- lib/parsers/asm-parser-ewavr.ts | 8 +- lib/parsers/asm-parser-hexagon.ts | 3 +- lib/parsers/asm-parser-mads.ts | 6 +- lib/parsers/asm-parser-spirv.ts | 16 +- lib/parsers/asm-parser-turboc.ts | 4 +- lib/parsers/asm-parser-vc.ts | 15 +- lib/parsers/asm-parser-z88dk.ts | 8 +- lib/parsers/asm-parser.ts | 44 +- lib/parsers/asm-raw.ts | 15 +- lib/parsers/asmregex.ts | 6 +- lib/parsers/dex2oat-pass-dump-parser.ts | 2 +- lib/parsers/llvm-pass-dump-parser.ts | 32 +- lib/parsers/racket-pass-dump-parser.ts | 7 +- lib/pe32-support.ts | 14 +- lib/properties.interfaces.ts | 2 +- lib/properties.ts | 22 +- lib/runtime-tools/heaptrack-wrapper.ts | 8 +- lib/sentry.ts | 8 +- lib/shortener/base.ts | 1 - lib/sources/builtin.ts | 8 +- lib/sponsors.ts | 2 +- lib/stack-usage-transformer.ts | 2 +- lib/storage/base.ts | 20 +- lib/storage/local.ts | 27 +- lib/storage/remote.ts | 2 +- lib/storage/s3.ts | 27 +- lib/symbol-store.ts | 2 +- lib/toolchain-utils.ts | 13 +- lib/tooling/base-tool.ts | 2 +- lib/tooling/bloaty-tool.ts | 3 +- lib/tooling/clang-format-tool.ts | 2 +- lib/tooling/clang-query-tool.ts | 2 +- lib/tooling/clang-tidy-tool.ts | 2 +- lib/tooling/llvm-cov-tool.ts | 5 +- lib/tooling/llvm-dwarfdump-tool.ts | 3 +- lib/tooling/microsoft-analysis-tool.ts | 2 +- lib/tooling/nm-tool.ts | 3 +- lib/tooling/osaca-tool.ts | 4 +- lib/tooling/pvs-studio-tool.ts | 6 +- lib/tooling/readelf-tool.ts | 3 +- lib/tooling/sonar-tool.ts | 2 +- lib/tooling/strings-tool.ts | 3 +- lib/tooling/x86to6502-tool.ts | 8 +- lib/utils.ts | 57 +- lint-staged.config.mjs | 7 +- package-lock.json | 3067 +----------------- package.json | 36 +- shared/.eslint-ce-lib.yml | 94 - shared/.eslintrc.cjs | 76 - shared/common-utils.ts | 8 +- shared/stacktrace.ts | 95 +- static/.eslint-ce-static.yml | 91 - static/.eslintrc.cjs | 76 - static/ansi-to-html.ts | 65 +- static/api/api.ts | 2 +- static/assert.ts | 5 +- static/codelens-handler.ts | 13 +- static/colour.ts | 2 +- static/compiler-service.ts | 80 +- static/compiler-shared.ts | 10 +- static/components.interfaces.ts | 8 +- static/components.ts | 152 +- static/event-map.ts | 18 +- static/formatter-registry.ts | 6 +- static/global.ts | 6 +- static/graph-layout-core.ts | 58 +- static/history.ts | 2 +- static/hub.ts | 72 +- static/lib-utils.ts | 15 +- static/line-colouring.ts | 10 +- static/main.ts | 59 +- static/modes/ada-mode.ts | 2 - static/modes/c3-mode.ts | 2 - static/modes/carbon-mode.ts | 2 +- static/modes/clean-mode.ts | 2 - static/modes/cmake-mode.ts | 2 - static/modes/cobol-mode.ts | 2 - static/modes/cpp-for-opencl-mode.ts | 4 +- static/modes/cppcircle-mode.ts | 4 +- static/modes/cppfront-mode.ts | 4 +- static/modes/cppp-mode.ts | 2 +- static/modes/cppx-blue-mode.ts | 4 +- static/modes/cppx-gold-mode.ts | 2 - static/modes/cuda-mode.ts | 4 +- static/modes/d-mode.ts | 2 - static/modes/gccdump-rtl-gimple-mode.ts | 2 - static/modes/glsl-mode.ts | 4 +- static/modes/haskell-mode.ts | 2 - static/modes/hlsl-mode.ts | 4 +- static/modes/hook-mode.ts | 2 - static/modes/hylo-mode.ts | 4 +- static/modes/ispc-mode.ts | 4 +- static/modes/jakt-mode.ts | 2 - static/modes/llvm-ir-mode.ts | 2 - static/modes/mlir-mode.ts | 2 - static/modes/modula2-mode.ts | 2 - static/modes/nc-mode.ts | 2 +- static/modes/nim-mode.ts | 2 - static/modes/ocaml-mode.ts | 2 - static/modes/odin-mode.ts | 2 - static/modes/openclc-mode.ts | 4 +- static/modes/ptx-mode.ts | 2 - static/modes/slang-mode.ts | 2 - static/modes/spirv-mode.ts | 2 - static/modes/tablegen-mode.ts | 2 - static/modes/vala-mode.ts | 2 - static/modes/zig-mode.ts | 2 - static/monaco-config.ts | 2 +- static/multifile-service.ts | 22 +- static/options.interfaces.ts | 2 +- static/options.ts | 2 +- static/panes/ast-view.ts | 19 +- static/panes/cfg-view.ts | 56 +- static/panes/clangir-view.ts | 16 +- static/panes/compiler.ts | 202 +- static/panes/conformance-view.ts | 51 +- static/panes/device-view.ts | 32 +- static/panes/diff.ts | 28 +- static/panes/editor.ts | 111 +- static/panes/executor.ts | 67 +- static/panes/flags-view.ts | 16 +- static/panes/gccdump-view.ts | 14 +- static/panes/gnatdebug-view.ts | 14 +- static/panes/gnatdebugtree-view.ts | 16 +- static/panes/haskellcmm-view.ts | 14 +- static/panes/haskellcore-view.ts | 14 +- static/panes/haskellstg-view.ts | 14 +- static/panes/ir-view.ts | 18 +- static/panes/opt-pipeline.ts | 28 +- static/panes/opt-view.ts | 19 +- static/panes/output.ts | 24 +- static/panes/pane.ts | 19 +- static/panes/pp-view.ts | 16 +- static/panes/rusthir-view.ts | 12 +- static/panes/rustmacroexp-view.ts | 12 +- static/panes/rustmir-view.ts | 12 +- static/panes/stack-usage-view.ts | 17 +- static/panes/tool-input-view.ts | 20 +- static/panes/tool.ts | 33 +- static/panes/tree.ts | 41 +- static/presentation.ts | 2 +- static/print-view.ts | 4 +- static/quick-fixes-handler.ts | 13 +- static/real-dark.ts | 2 +- static/rison.ts | 27 +- static/sentry.ts | 9 +- static/settings.ts | 25 +- static/sharing.ts | 17 +- static/tests/motd.ts | 1 - static/themes.ts | 4 +- static/url.ts | 7 +- static/utils.ts | 6 +- static/widgets/compiler-overrides.ts | 14 +- static/widgets/compiler-picker-popup.ts | 6 +- static/widgets/compiler-picker.ts | 10 +- static/widgets/fontscale.ts | 4 +- static/widgets/history-widget.ts | 4 +- static/widgets/libs-widget.ts | 44 +- static/widgets/load-save.ts | 10 +- static/widgets/pane-renaming.ts | 4 +- static/widgets/runtime-tools.ts | 14 +- static/widgets/site-templates-widget.ts | 24 +- static/widgets/timing-info-widget.ts | 12 +- test/.eslintrc.yml | 16 - test/base-compiler-tests.ts | 4 +- test/cache-tests.ts | 6 +- test/cfg-tests.ts | 2 +- test/check-img.ts | 4 +- test/common-utils-tests.ts | 4 +- test/compilers/hook-tests.ts | 2 +- test/demangler-tests.ts | 2 +- test/exec-tests.ts | 2 +- test/filter-tests.ts | 2 +- test/handlers/asm-docs-tests.ts | 4 +- test/handlers/compile-tests.ts | 3 +- test/handlers/route-api-test.ts | 2 +- test/java-tests.ts | 2 +- test/library-tests.ts | 2 +- test/llvm-pass-dump-parser-tests.ts | 171 +- test/nim-tests.ts | 18 +- test/options-handler.ts | 2 +- test/packager-tests.ts | 2 +- test/pascal-tests.ts | 2 +- test/properties-test.ts | 6 +- test/racket-pass-dump-parser-tests.ts | 64 +- test/rison.ts | 2 +- test/sponsors-test.ts | 2 +- test/stats-test.ts | 2 +- test/storage/storage-s3-tests.ts | 2 +- test/utils-tests.ts | 4 +- test/utils.ts | 7 +- test/win-path-tests.ts | 2 +- types/cache.interfaces.ts | 2 +- vitest.config.ts | 2 - webpack.config.esm.ts | 15 +- 367 files changed, 2437 insertions(+), 6217 deletions(-) delete mode 100644 .eslint-license-header.yml delete mode 100644 .eslintignore delete mode 100644 .eslintrc.yml delete mode 100644 .idea/prettier.xml delete mode 100644 .prettierignore delete mode 100644 .prettierrc.cjs create mode 100644 biome.json delete mode 100644 lib/.eslint-ce-lib.yml delete mode 100644 lib/.eslintrc.cjs delete mode 100644 shared/.eslint-ce-lib.yml delete mode 100644 shared/.eslintrc.cjs delete mode 100644 static/.eslint-ce-static.yml delete mode 100644 static/.eslintrc.cjs delete mode 100644 test/.eslintrc.yml diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 1428e6ac2..ab2a2c12a 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -2,11 +2,11 @@ "name": "compiler-explorer", "dockerFile": "Dockerfile", "build": { - "args": {"NODE_MAJOR_VERSION": "20"} + "args": { "NODE_MAJOR_VERSION": "20" } }, "postCreateCommand": [".devcontainer/post-create.sh"], "portsAttributes": { - "10240": {"label": "Compiler Explorer"} + "10240": { "label": "Compiler Explorer" } }, "customizations": { "vscode": { diff --git a/.eslint-license-header.yml b/.eslint-license-header.yml deleted file mode 100644 index f3be3702c..000000000 --- a/.eslint-license-header.yml +++ /dev/null @@ -1,32 +0,0 @@ ---- -plugins: - - eslint-plugin-header -rules: - header/header: - - off - - line - - - pattern: '^ Copyright \\(c\\) \\d{4}, .*$' - template: ' Copyright (c) 2022, Compiler Explorer Authors' - - ' All rights reserved.' - - '' - - ' Redistribution and use in source and binary forms, with or without' - - ' modification, are permitted provided that the following conditions are met:' - - '' - - ' * Redistributions of source code must retain the above copyright notice,' - - ' this list of conditions and the following disclaimer.' - - ' * Redistributions in binary form must reproduce the above copyright' - - ' notice, this list of conditions and the following disclaimer in the' - - ' documentation and/or other materials provided with the distribution.' - - '' - - ' THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"' - - ' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE' - - ' IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE' - - ' ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE' - - ' LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR' - - ' CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF' - - ' SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS' - - ' INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN' - - ' CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)' - - ' ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE' - - ' POSSIBILITY OF SUCH DAMAGE.' - - 1 diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 851b95e0d..000000000 --- a/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# If you change this file, please also modify .prettierignore -# Uninteresting folders (node_modules and dotfiles/dotfolders ignored by default) -coverage -docs -etc -examples -out -views - -# Autogenerated files -lib/asm-docs/generated/asm-docs-* -etc/scripts/docenizer/vendor/jvms.html diff --git a/.eslintrc.yml b/.eslintrc.yml deleted file mode 100644 index 9a3d31afa..000000000 --- a/.eslintrc.yml +++ /dev/null @@ -1,181 +0,0 @@ ---- -root: true -plugins: - - import - - jsdoc - - n - - promise - - sonarjs - - prettier - - unicorn - - '@typescript-eslint' - - unused-imports -extends: - - ./.eslint-license-header.yml - - eslint:recommended - - plugin:import/recommended - - plugin:n/recommended - - plugin:unicorn/recommended - - prettier - - plugin:@typescript-eslint/eslint-recommended - - plugin:@typescript-eslint/recommended - - plugin:import/typescript -env: - node: true - es6: true -rules: - prettier/prettier: error - comma-dangle: - - error - - arrays: always-multiline - objects: always-multiline - imports: always-multiline - exports: always-multiline - functions: always-multiline - eol-last: - - error - - always - eqeqeq: - - error - - smart - import/default: off # fs-extra trips this. the ts compiler catches actual errors - import/extensions: error - import/first: error - import/newline-after-import: error - import/no-absolute-path: error - #import/no-cycle: error # TODO(jeremy-rifkin) disabled for now due to compilation types - import/no-default-export: error - import/no-deprecated: error - import/no-mutable-exports: error - import/no-named-as-default-member: off # Far too many things (express, morgan, fs) trip this - import/no-self-import: error - import/no-useless-path-segments: error - import/no-webpack-loader-syntax: error - import/no-unresolved: off # Doesn't like .js files - import/order: - - error - - alphabetize: - order: asc - caseInsensitive: true - newlines-between: always - max-len: - - error - - 120 - - ignoreRegExpLiterals: true - max-statements: - - error - - 100 # TODO reduce...was 50 - no-console: error - no-control-regex: 0 - no-duplicate-imports: error - no-useless-call: error - no-useless-computed-key: error - no-useless-concat: error - '@typescript-eslint/no-useless-constructor': error - no-useless-escape: error - no-useless-rename: error - no-useless-return: error - no-empty: - - error - - allowEmptyCatch: true - quote-props: - - error - - as-needed - quotes: - - error - - single - - allowTemplateLiterals: true - avoidEscape: true - semi: - - error - - always - space-before-function-paren: - - error - - anonymous: always - asyncArrow: always - named: never - keyword-spacing: - - error - - after: true - yoda: - - error - - never - - onlyEquality: true - prefer-const: - - error - - destructuring: all - jsdoc/check-alignment: error - jsdoc/check-param-names: error - jsdoc/check-syntax: error - jsdoc/check-tag-names: off - jsdoc/check-types: error - jsdoc/empty-tags: error - jsdoc/require-hyphen-before-param-description: error - jsdoc/valid-types: error - no-multiple-empty-lines: - - error - - max: 1 - maxBOF: 0 - maxEOF: 0 - n/no-process-exit: off - promise/catch-or-return: error - promise/no-new-statics: error - promise/no-return-wrap: error - promise/param-names: error - promise/valid-params: error - sonarjs/no-collection-size-mischeck: error - sonarjs/no-redundant-boolean: error - sonarjs/no-unused-collection: error - sonarjs/prefer-immediate-return: error - sonarjs/prefer-object-literal: error - sonarjs/prefer-single-boolean-return: error - sort-imports: - - error - - ignoreCase: true - ignoreDeclarationSort: true - unicorn/catch-error-name: off - unicorn/consistent-function-scoping: off - unicorn/empty-brace-spaces: off - unicorn/no-fn-reference-in-iterator: off - unicorn/no-hex-escape: off - unicorn/no-null: off - unicorn/no-reduce: off - unicorn/numeric-separators-style: off - unicorn/prefer-add-event-listener: off - unicorn/prefer-flat-map: error - unicorn/prefer-optional-catch-binding: off - unicorn/prefer-node-protocol: off # until we get node 16+ - unicorn/prefer-number-properties: off - unicorn/prefer-string-slice: off - unicorn/prevent-abbreviations: off - # things we'd like to turn on but need fairly extensive code changes: - unicorn/prefer-ternary: off - unicorn/prefer-array-some: off - unicorn/prefer-spread: off - unicorn/no-lonely-if: off - unicorn/no-array-reduce: off - unicorn/prefer-array-flat: off # can't turn off yet without tests blowing up; lodash vs underscore? - unicorn/no-array-callback-reference: off - unicorn/prefer-switch: off - unicorn/no-static-only-class: off - unicorn/no-process-exit: off - unicorn/no-useless-undefined: - - error - - checkArguments: false - 'unused-imports/no-unused-imports': error - '@typescript-eslint/no-empty-function': off - '@typescript-eslint/no-unused-vars': off - '@typescript-eslint/no-explicit-any': off - unicorn/prefer-at: off - unicorn/prefer-negative-index: off -parserOptions: - sourceType: module - ecmaVersion: 2020 -globals: - BigInt: true -settings: - node: - tryExtensions: [.js, .ts] - import/parsers: - '@typescript-eslint/parser': [.ts, .tsx] - import/resolver: 'typescript' diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 65ca36307..fec0d0867 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -17,6 +17,9 @@ + +