Skip to content

Commit

Permalink
Suppress error and fix deprecated function usage
Browse files Browse the repository at this point in the history
  • Loading branch information
rlandav committed Nov 25, 2024
1 parent 052de53 commit 739dee9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ const SCRIPT_RECOMMENDATION: Map<string, ApiScriptRecommendation | ClassScriptRe
module: '@minecraft/server',
message:
'See https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/player#inputpermissions for more information.',
api: 'Player.inputPermissions'
}
api: 'Player.inputPermissions',
},
],
[
'/replaceitem',
Expand Down Expand Up @@ -424,7 +424,7 @@ const AVOID_UNNECESSARY_COMMAND = ESLintUtils.RuleCreator(() => 'https://microso
// We use an arrow function because TSESLint uses it's own version of the types
// so we need to use the proper inferred types.
const identifierName = templateOrIdentifier.name;
const scope = context.getScope();
const scope = context.sourceCode.getScope(node);

let constValue = undefined;
let currentScope: typeof scope | null = scope;
Expand Down
2 changes: 1 addition & 1 deletion tools/eslint-plugin-minecraft-linting/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import AvoidUnnecessaryCommand from './Rules/AvoidUnnecessaryCommand';

// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-var-requires
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports
const { name, version }: { name: string; version: string } = require('../package.json');

module.exports = {
Expand Down

0 comments on commit 739dee9

Please sign in to comment.