An ESLint preprocessor for .NET Razor (.cshtml) views containing inline Vue.js templates. Version 1.1.10 wraps Razor expressions (e.g. @Html.PropertyFor) inside /* eslint-disable */ and /* eslint-enable */ comment blocks so that ESLint only lints the Vue template portions. It supports three expression patterns: newline-terminated, closing-tag-terminated, and attribute-enclosed. The library is extensible via custom regex matchers and matcher keys. Released on npm, with low release cadence. Key differentiator: solves a niche problem of linting Vue code embedded in C# Razor views. Not widely adopted; consider manual ESLint configuration as an alternative.
npm install razor-vue-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Recursively processes all .cshtml files in a project, escaping Razor expressions with ESLint ignore comments and saving to .lint.cshtml files.
Contribute custom matchers via options or manually wrap unsupported expressions with /* eslint-disable */ and /* eslint-enable */.
Replace addIgnoreEsLintBlocksForRazorExpressions with esLintEscapeRazorExpressions.
Consider writing a custom ESLint plugin or preprocessor for .cshtml files instead.
Install @types/razor-vue-lint (if available) or create a declaration file: declare module 'razor-vue-lint';
Use import instead of require(): import { esLintEscapeRazorExpressions } from 'razor-vue-lint';Use import { esLintEscapeRazorExpressions } from 'razor-vue-lint'; not import razorVueLint from 'razor-vue-lint';No dependency data recorded yet.