UNPKG

get-or-throw

Version:

A convenience function for safely getting values from dynamic objects and arrays

29 lines (27 loc) 674 B
import eslint from "@eslint/js"; import tseslint from "typescript-eslint"; export default tseslint.config( { ignores: [ "dist/**", "node_modules/**", /** * Ignore all config files int the root. We should instead solve this with * projectService setting so that these files can also be linted, but * let's get this to work first */ "*.{js,ts}", ], }, eslint.configs.recommended, tseslint.configs.strictTypeChecked, tseslint.configs.stylisticTypeChecked, { languageOptions: { parserOptions: { projectService: true, tsconfigRootDir: import.meta.dirname, }, }, }, );