🚀 Feature: Don't include n/no-missing-import allowModules if README.md doesn't violate it #1850
Closed
2 tasks done
Labels
status: accepting prs
Please, send a pull request to resolve this!
type: feature
New enhancement or request
Bug Report Checklist
main
branch of the repository.Overview
Right now, the generated ESLint config for repos always configures
n/no-missing-import
'sallowModules
to includeoptions.repository
:create-typescript-app/src/steps/writing/creation/createESLintConfig.ts
Lines 101 to 106 in aaf2d65
This is necessary because created repos by default have a Getting Started / Usage section like:
But, in the
create
Blocks version, that's not always true. Repositories may customize that section. This repo does it and removes the offending code altogether.So, I'd like to have the ESLint Block only include that
allowModules
setting ifoptions.usage
actually includes code that would make it useful.Additional Info
I don't plan on adding this to the legacy engine, just
create
blocks.Prototyped in #1839.
💖
The text was updated successfully, but these errors were encountered: