mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 10:07:46 -05:00
27 lines
556 B
JavaScript
27 lines
556 B
JavaScript
import { config } from '@freecodecamp/eslint-config/base';
|
|
import { defineConfig } from 'eslint/config';
|
|
import globals from 'globals';
|
|
|
|
/**
|
|
* A shared ESLint configuration for the repository.
|
|
*
|
|
* @type {import("eslint").Linter.Config[]}
|
|
* */
|
|
export default defineConfig({
|
|
extends: [config],
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.mocha,
|
|
...globals.node,
|
|
Promise: true,
|
|
window: true,
|
|
$: true,
|
|
ga: true,
|
|
jQuery: true,
|
|
router: true,
|
|
globalThis: true
|
|
}
|
|
}
|
|
});
|