UNPKG

@nextcloud/eslint-config

Version:

Eslint shared config for nextcloud apps and libraries

25 lines (24 loc) 606 B
import globals from 'globals'; import { GLOB_FILES_TESTING } from "../globs.js"; /** * Config setup for the node environment. * Config files should be parsed as Node.JS scripts with Node globals etc. */ export const node = [ { name: 'nextcloud/node/setup', files: [ '**/*.config.*', '**/*.cjs', '**/*.cts', ...GLOB_FILES_TESTING, ], languageOptions: { globals: { ...globals.es2023, ...globals.node, ...globals.nodeBuiltin, }, }, }, ];