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
Copy file name to clipboardExpand all lines: docs/src/rules/no-implicit-globals.md
+2-5Lines changed: 2 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,12 +118,9 @@ Bar.prototype.baz = function () {
118
118
119
119
This rule also disallows redeclarations of read-only global variables and assignments to read-only global variables.
120
120
121
-
A read-only global variable can be a built-in ES global (e.g.`Array`), an environment specific global
122
-
(e.g.`window` in the browser environment), or a global variable defined as`readonly` in the configuration file
123
-
or in a`/*global */` comment.
121
+
A read-only global variable can be a built-in ES global (e.g.`Array`), or a global variable defined as`readonly` in the configuration file or in a`/*global */` comment.
Copy file name to clipboardExpand all lines: docs/src/rules/strict.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,9 +73,10 @@ This rule has a string option:
73
73
74
74
The`"safe"` option corresponds to the`"global"` option if ESLint considers a file to be a**Node.js** or**CommonJS** module because the configuration specifies either of the following:
*`"globalReturn": true` property in the`ecmaFeatures` object of[parser options](../use/configure/language-options#specifying-parser-options)
77
78
78
-
Otherwise the`"safe"` option corresponds to the`"function"` option. Note that if`"globalReturn": false` is explicitly specified in the configuration, the`"safe"` option will correspond to the`"function"` option regardless of the specified environment.
79
+
Otherwise the`"safe"` option corresponds to the`"function"` option.
Copy file name to clipboardExpand all lines: docs/src/use/core-concepts/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ For more information, refer to [Using a shareable configuration package](../conf
56
56
57
57
##Plugins
58
58
59
-
An ESLint plugin is an npm module that can contain a set of ESLint rules, configurations, processors, andenvironments. Often plugins include custom rules. Plugins can be used to enforce a style guide and support JavaScript extensions (like TypeScript), libraries (like React), and frameworks (Angular).
59
+
An ESLint plugin is an npm module that can contain a set of ESLint rules, configurations, processors, andlanguages. Often plugins include custom rules. Plugins can be used to enforce a style guide and support JavaScript extensions (like TypeScript), libraries (like React), and frameworks (Angular).
60
60
61
61
A popular use case for plugins is to enforce best practices for a framework. For example,[@angular-eslint/eslint-plugin](https://www.npmjs.com/package/@angular-eslint/eslint-plugin) contains best practices for using the Angular framework.