-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
22 lines (19 loc) · 717 Bytes
/
Copy patheslint.config.mjs
File metadata and controls
22 lines (19 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import globals from 'globals'
import pluginJs from '@eslint/js'
import tseslint from 'typescript-eslint'
/**
* Initial file generated with `npm lint -- --init`
*
* @type {import('eslint').Linter.Config[]}
*/
// @ts-expect-error `languageOptions` property in `tseslint.configs.recommended` result incompatible with `eslint` config types.
const tseslintReccommended = tseslint.configs.recommended
/** @type {import('eslint').Linter.Config[]} */
const config = [
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
pluginJs.configs.recommended,
...tseslintReccommended,
{ files: [ 'src/**/*.{js,mjs,cjs,ts}' ] },
{ ignores: [ 'dist', 'scripts', 'coverage' ] },
]
export default config