prototypey.org - atproto lexicon typescript toolkit - mirror https://github.com/tylersayshi/prototypey
at main 44 lines 1.1 kB view raw
1import eslint from "@eslint/js"; 2import tseslint from "typescript-eslint"; 3 4export default tseslint.config( 5 { 6 ignores: [ 7 "**/lib/**", 8 "**/dist/**", 9 "node_modules", 10 "pnpm-lock.yaml", 11 "**/setup-vitest.ts", 12 "**/tests/**", 13 ], 14 }, 15 { linterOptions: { reportUnusedDisableDirectives: "error" } }, 16 eslint.configs.recommended, 17 { 18 extends: [ 19 tseslint.configs.strictTypeChecked, 20 tseslint.configs.stylisticTypeChecked, 21 ], 22 files: ["**/*.{js,ts}"], 23 languageOptions: { 24 parserOptions: { 25 projectService: { allowDefaultProject: ["*.config.*s"] }, 26 }, 27 }, 28 rules: { 29 "@typescript-eslint/consistent-type-definitions": "off", 30 "@typescript-eslint/no-unsafe-assignment": "off", 31 "@typescript-eslint/no-unsafe-argument": "off", 32 "@typescript-eslint/no-unsafe-member-access": "off", 33 "@typescript-eslint/no-unsafe-call": "off", 34 "@typescript-eslint/restrict-plus-operands": "off", 35 }, 36 }, 37 { 38 files: ["**/*.{test,bench}.ts"], 39 rules: { 40 "@typescript-eslint/no-floating-promises": "off", 41 "@typescript-eslint/no-unused-vars": "off", 42 }, 43 }, 44);