Skip to content

Commit

Permalink
πŸ› Only show undeclaredSymbol warnings for data pack file categories (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
misode authored Dec 10, 2024
1 parent e8d8d2b commit 0565b6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/service/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import rfdc from 'rfdc'
import type { ExternalEventEmitter } from '../common/index.js'
import { Arrayable, bufferToString, merge, TypePredicates } from '../common/index.js'
import { ErrorSeverity } from '../source/index.js'
import { FileCategories, RegistryCategories } from '../symbol/index.js'
import { DataFileCategories, FileCategories, RegistryCategories } from '../symbol/index.js'
import type { Project } from './Project.js'
/* eslint-disable no-restricted-syntax */

Expand Down Expand Up @@ -421,7 +421,7 @@ export const VanillaConfig: Config = {
{
if: [
{ category: RegistryCategories, namespace: 'minecraft' },
{ category: [...FileCategories, 'bossbar', 'objective', 'team'] },
{ category: [...DataFileCategories, 'bossbar', 'objective', 'team'] },
],
then: { report: 'warning' },
},
Expand Down

0 comments on commit 0565b6c

Please sign in to comment.