Skip to content

Commit 99fe387

Browse files
authoredFeb 28, 2024··
chore: Enable global strict eslint rule (#191)
* lint: Enable global strict eslint rule * chore: Add missing "use strict" directives * chore: Move strict check to everywhere
1 parent e31d868 commit 99fe387

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+88
-1
lines changed
 

‎eslint.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ module.exports = [
2828
eslintPluginConfig,
2929
prettierConfig,
3030
{
31-
rules: { "eslint-plugin/require-meta-docs-description": "error" },
31+
rules: {
32+
strict: ["error", "global"],
33+
"eslint-plugin/require-meta-docs-description": "error",
34+
},
3235
},
3336
{
3437
// these messageIds were used outside

‎lib/unsupported-features/node-builtins-modules/assert.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use strict"
2+
13
const { READ } = require("@eslint-community/eslint-utils")
24

35
/** @type {import('../types.js').SupportVersionTree} */

0 commit comments

Comments
 (0)
Please sign in to comment.