@typescript-eslint/eslint-plugin
Advanced tools
Comparing version 8.8.1-alpha.3 to 8.8.1-alpha.4
@@ -117,3 +117,4 @@ "use strict"; | ||
return { | ||
Program() { | ||
Program(node) { | ||
const firstStatement = node.body.at(0); | ||
const comments = context.sourceCode.getAllComments(); | ||
@@ -126,2 +127,7 @@ comments.forEach(comment => { | ||
const { directive, description } = match; | ||
if (directive === 'nocheck' && | ||
firstStatement && | ||
firstStatement.loc.start.line <= comment.loc.start.line) { | ||
return; | ||
} | ||
const fullDirective = `ts-${directive}`; | ||
@@ -128,0 +134,0 @@ const option = options[fullDirective]; |
{ | ||
"name": "@typescript-eslint/eslint-plugin", | ||
"version": "8.8.1-alpha.3", | ||
"version": "8.8.1-alpha.4", | ||
"description": "TypeScript plugin for ESLint", | ||
@@ -63,6 +63,6 @@ "files": [ | ||
"@eslint-community/regexpp": "^4.10.0", | ||
"@typescript-eslint/scope-manager": "8.8.1-alpha.3", | ||
"@typescript-eslint/type-utils": "8.8.1-alpha.3", | ||
"@typescript-eslint/utils": "8.8.1-alpha.3", | ||
"@typescript-eslint/visitor-keys": "8.8.1-alpha.3", | ||
"@typescript-eslint/scope-manager": "8.8.1-alpha.4", | ||
"@typescript-eslint/type-utils": "8.8.1-alpha.4", | ||
"@typescript-eslint/utils": "8.8.1-alpha.4", | ||
"@typescript-eslint/visitor-keys": "8.8.1-alpha.4", | ||
"graphemer": "^1.4.0", | ||
@@ -78,4 +78,4 @@ "ignore": "^5.3.1", | ||
"@types/natural-compare": "*", | ||
"@typescript-eslint/rule-schema-to-typescript-types": "8.8.1-alpha.3", | ||
"@typescript-eslint/rule-tester": "8.8.1-alpha.3", | ||
"@typescript-eslint/rule-schema-to-typescript-types": "8.8.1-alpha.4", | ||
"@typescript-eslint/rule-tester": "8.8.1-alpha.4", | ||
"ajv": "^6.12.6", | ||
@@ -82,0 +82,0 @@ "cross-env": "^7.0.3", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2662746
30333
+ Added@typescript-eslint/scope-manager@8.8.1-alpha.4(transitive)
+ Added@typescript-eslint/type-utils@8.8.1-alpha.4(transitive)
+ Added@typescript-eslint/utils@8.8.1-alpha.4(transitive)
+ Added@typescript-eslint/visitor-keys@8.8.1-alpha.4(transitive)
- Removed@typescript-eslint/scope-manager@8.8.1-alpha.3(transitive)
- Removed@typescript-eslint/type-utils@8.8.1-alpha.3(transitive)
- Removed@typescript-eslint/utils@8.8.1-alpha.3(transitive)
- Removed@typescript-eslint/visitor-keys@8.8.1-alpha.3(transitive)