]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/docs/rules/strict.md
import 8.3.0 source
[pve-eslint.git] / eslint / docs / rules / strict.md
index a6d87c20ac1e41c7860483d58667a8bc911d3690..97285afc0254d0f6b80dd671d7991b49c0c20e0f 100644 (file)
@@ -49,6 +49,8 @@ This rule disallows strict mode directives, no matter which option is specified,
 
 This rule disallows strict mode directives, no matter which option is specified, in functions with non-simple parameter lists (for example, parameter lists with default parameter values) because that is a syntax error in **ECMAScript 2016** and later. See the examples of the [function](#function) option.
 
+This rule does not apply to class static blocks, no matter which option is specified, because class static blocks do not have directives. Therefore, a `"use strict"` statement in a class static block is not a directive, and will be reported by the [no-unused-expressions](no-unused-expressions.md) rule.
+
 The `--fix` option on the command line does not insert new `"use strict"` statements, but only removes unneeded statements.
 
 ## Options