Skip to content

v0.8.1

Latest

Choose a tag to compare

@fansenze fansenze released this 19 Aug 09:22
· 1 commit to main since this release

Highlights

Built-in globals catalog

@rslint/core now exports globals, bundling the complete environment catalog from the pinned globals package plus an Rstest-specific globals.rstest preset. Upstream environment maps are loaded on first access, so browser, Node.js, worker, and other environments can be configured without installing globals separately.

import { defineConfig, globals } from '@rslint/core';

export default defineConfig([
  {
    files: ['src/client/**'],
    languageOptions: {
      globals: globals.browser,
    },
  },
  {
    files: ['scripts/**'],
    languageOptions: {
      globals: globals.node,
    },
  },
]);

What's Changed

New Features 🎉

Performance 🚀

  • perf(lsp): carry module specifier collection across editor Programs by @swwind in #1720
  • perf: optimize max-statements field diagnostics by @fansenze in #1779
  • perf: limit gitignore scans to CLI targets by @fansenze in #1781
  • perf: optimize LSP TypeScript project selection by @fansenze in #1790

Bug Fixes 🐞

Refactor 🔨

  • refactor: replace gap programs with standalone ASTs by @fansenze in #1685
  • refactor: consolidate program framework boundaries by @fansenze in #1742
  • refactor: extract no-shadow's scope manager into internal/utils/scope by @swwind in #1755
  • refactor(utils): name each JavaScript port for what it ports by @swwind in #1705
  • refactor: rebuild @typescript-eslint/no-use-before-define on the shared scope model by @swwind in #1758

Document 📖

  • docs(react-hooks): record each rule's aligned upstream version by @swwind in #1688
  • docs: reorganize configuration and API documentation by @fansenze in #1773

Other Changes

Full Changelog: v0.8.0...v0.8.1