Skip to content

Commit

Permalink
💚 fix root linter not ignoring telemetry dir
Browse files Browse the repository at this point in the history
- it should have its own linting (eventually?)
  • Loading branch information
TheAfroOfDoom committed Nov 1, 2024
1 parent 110c93d commit a38a3c8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Ignore datapack/resourcepack
datapacks
resourcepack

telemetry
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Ignore datapack/resourcepack
datapacks
resourcepack

telemetry
3 changes: 3 additions & 0 deletions package-scripts/run-linting-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ const main = () => {
let errorCount = 0;
const excludePatterns = exclude?.split(',') ?? [];
excludePatterns.push('build/**');
excludePatterns.push('**/node_modules/**');
excludePatterns.push('tmp/**');
excludePatterns.push('telemetry/**');
const paths = globSync(include, { ignore: excludePatterns });
const files = paths.filter((path) => lstatSync(path).isFile());

Expand Down

0 comments on commit a38a3c8

Please sign in to comment.