eslint rule to check for bogus routes

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • ESLint

    Find and fix problems in your JavaScript code.

  • Leverage eslint to find those white-space characters at the beginning and the end of string values. First do a

  • astexplorer

    A web tool to explore the ASTs generated by various parsers.

  • Now comes the fun part: What rule should be used? That's relative simple, we can use the no-restricted-syntax rule, also the description doesn't really fit our problem description. But what is the selector value for this rule? You can find this out by using the AST Explorer. Change to @typescript-eslint/parser and paste the const routes: .... part in the left window to see the AST tree to the right:

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts