Update our ESLint configuration for JSX, Storybook, and template literals.

Review Request #13570 — Created Feb. 23, 2024 and submitted

Information

beanbag-eslint-plugin
master

Reviewers

This updates our ESLint configuration to enable JSX parsing for any
*.jsx or *.tsx files. While we don't use React in our code, JSX may
be a useful option in the future, and is used now for Storybook, a UI
component library viewer.

It also adds some rules specific to Storybook "Story" files
(*.stories.{js,jsx,ts,tsx}). Specifically, it disables sorted keys in
objects, as that makes it difficult to maintain standard Story files,
where the order of keys can be important.

And last, it disables indentation rules in template literals. These
rules kicked in when trying to embed something that spanned multiple
lines, which is more common in JSX-like grammars (which we'll be using
in Ink).

Made use of the new rules in the development of Ink.

Summary ID
Update our ESLint configuration for JSX, Storybook, and template literals.
This updates our ESLint configuration to enable JSX parsing for any `*.jsx` or `*.tsx` files. While we don't use React in our code, JSX may be a useful option in the future, and is used now for Storybook, a UI component library viewer. It also adds some rules specific to Storybook "Story" files (`*.stories.{js,jsx,ts,tsx}`). Specifically, it disables sorted keys in objects, as that makes it difficult to maintain standard Story files, where the order of keys can be important. And last, it disables indentation rules in template literals. These rules kicked in when trying to embed something that spanned multiple lines, which is more common in JSX-like grammars (which we'll be using in Ink).
726935ffcafd9fbf8b211c59e044d38d7f42f3cd
Description From Last Updated

Typo: indentatino -> indentation

daviddavid
david
  1. 
      
  2. src/index.ts (Diff revision 1)
     
     
    Show all issues

    Typo: indentatino -> indentation

  3. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (8257b1d)
Loading...