We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f510f6 commit 0520a8dCopy full SHA for 0520a8d
eslint.config.js
@@ -6,6 +6,14 @@ const {
6
7
const globals = require('globals')
8
9
+function toNewGlobalsConfig (obj) {
10
+ for (const key in obj) {
11
+ if (obj[key] === true) obj[key] = 'writable'
12
+ else if (obj[key] === false) obj[key] = 'readonly'
13
+ }
14
+ return obj
15
+}
16
+
17
module.exports = [
18
{
19
ignores: [
@@ -22,7 +30,7 @@ module.exports = [
22
30
},
23
31
24
32
languageOptions: {
25
- globals: {
33
+ globals: toNewGlobalsConfig({
26
34
...globals.browser,
27
35
...globals.node,
28
36
...globals.jasmine,
@@ -33,7 +41,7 @@ module.exports = [
41
test: true,
42
sinon: true,
43
angular: true
- },
44
+ }),
37
45
38
46
ecmaVersion: 2021,
39
47
sourceType: 'module',
0 commit comments