UNPKG

@soos-io/soos-sbom

Version:

Upload your Software Bill of Materials (SBOM) to SOOS for vulnerability analysis, license matching and more. Register for a free trial today at https://app.soos.io/register

36 lines (34 loc) 883 B
import globals from "globals"; import pluginJs from "@eslint/js"; import tseslint from "typescript-eslint"; /** @type {import('eslint').Linter.Config[]} */ export default [ { files: ["**/*.{mjs,ts}"] }, { ignores: ["bin/**"], }, { languageOptions: { globals: globals.node, parserOptions: { projectService: { allowDefaultProject: ["eslint.config.mjs", "jest.config.ts"], defaultProject: "tsconfig.json", }, tsconfigRootDir: import.meta.dirname, }, ecmaVersion: "latest", sourceType: "module", }, }, pluginJs.configs.recommended, ...tseslint.configs.recommended, { rules: { "@typescript-eslint/no-unnecessary-condition": "error", "@typescript-eslint/default-param-last": "error", "@/no-param-reassign": "error", "@/prefer-const": "error", }, }, ];