forked from freeCodeCamp/freeCodeCamp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
34 lines (33 loc) · 731 Bytes
/
eslint.config.mjs
File metadata and controls
34 lines (33 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { config } from '@freecodecamp/eslint-config/base';
import { defineConfig, globalIgnores } from 'eslint/config';
import globals from 'globals';
/**
* A shared ESLint configuration for the repository.
*
* @type {import("eslint").Linter.Config[]}
* */
export default defineConfig(
globalIgnores([
'./src/test/stubs/js',
'./src/test/blocks-generated',
'./challenges',
'./structure'
]),
{
extends: [config],
languageOptions: {
globals: {
...globals.browser,
...globals.mocha,
...globals.node,
Promise: true,
window: true,
$: true,
ga: true,
jQuery: true,
router: true,
globalThis: true
}
}
}
);