You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -119,7 +119,7 @@ If `ignores` is used without `files` and any other setting, then the configurati
119
119
120
120
```js
121
121
exportdefault [
122
-
{
122
+
{
123
123
ignores: ["**/*.config.js"],
124
124
rules: {
125
125
semi:"error"
@@ -136,7 +136,7 @@ If `ignores` is used without any other keys in the configuration object, then th
136
136
137
137
```js
138
138
exportdefault [
139
-
{
139
+
{
140
140
ignores: [".config/*"]
141
141
}
142
142
];
@@ -156,16 +156,16 @@ export default [
156
156
globals: {
157
157
MY_CUSTOM_GLOBAL:"readonly"
158
158
}
159
-
}
159
+
}
160
160
},
161
-
{
161
+
{
162
162
files: ["tests/**/*.js"],
163
163
languageOptions: {
164
164
globals: {
165
165
it:"readonly",
166
166
describe:"readonly"
167
167
}
168
-
}
168
+
}
169
169
}
170
170
];
171
171
```
@@ -232,8 +232,8 @@ export default [
232
232
ESLint can evaluate your code in one of three ways:
233
233
234
234
1. ECMAScript module (ESM) - Your code has a module scope and is run in strict mode.
235
-
1. CommonJS - Your code has a top-level function scope and runs in nonstrict mode.
236
-
1. Script - Your code has a shared global scope and runs in nonstrict mode.
235
+
1. CommonJS - Your code has a top-level function scope and runs in non-strict mode.
236
+
1. Script - Your code has a shared global scope and runs in non-strict mode.
237
237
238
238
You can specify which of these modes your code is intended to run in by specifying the `sourceType` property. This property can be set to `"module"`, `"commonjs"`, or `"script"`. By default, `sourceType` is set to `"module"` for `.js` and `.mjs` files and is set to `"commonjs"` for `.cjs` files. Here's an example:
0 commit comments