We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
こちらである程度は自動化できました #31
@mui/materialのOverridableComponentは手動対応になってるけど。
eslint-plugin-mui-path-imports/generator/index.ts
Line 104 in 8862b81
おそらくimportできないものはTSxxxxのエラーが発生している。 これらはTypescript compilerが生成しているエラーっぽい。 https://github.com/microsoft/TypeScript
Typescriptのテストを参考にしたところ、herebyを使ってcliで実行するコマンドをまとめて実行してるっぽい。Typescriptのメンテナが作ってる。star数から見てメジャーなパッケージではない。 https://github.com/jakebailey/hereby
テストファイルを見た感じ、入力に対して出力を受け取ってテストしているように見える。若干癖がありそう。jsファイルになってるがどう見てもjsファイルではない。 https://github.com/microsoft/TypeScript/blob/20d4479b24700cbd8bcbe4019dc4b30ea1565ae4/tests/baselines/reference/tsc/cancellationToken/when-emitting-buildInfo.js#L1
てことで、ちょい面倒に見えるが、herbyに引数を渡せばtscに渡して戻り値を受け取ってくれて、その中に特定のエラーがあればそれはimportできないという扱いにすれば良いはず。
herbyに渡す値はこちらで生成したものを渡せば良いはず。 #31
1ファイルにimport文を大量に書いてできれば早そうだけど、やりやすさと相談。
eslint-plugin-mui-path-imports/generator/check-generate-data.ts
Line 12 in d3785fe
text: `import { } from '${packageName}'`,
The text was updated successfully, but these errors were encountered:
No branches or pull requests
こちらである程度は自動化できました
#31
@mui/materialのOverridableComponentは手動対応になってるけど。
eslint-plugin-mui-path-imports/generator/index.ts
Line 104 in 8862b81
おそらくimportできないものはTSxxxxのエラーが発生している。
これらはTypescript compilerが生成しているエラーっぽい。
https://github.com/microsoft/TypeScript
Typescriptのテストを参考にしたところ、herebyを使ってcliで実行するコマンドをまとめて実行してるっぽい。Typescriptのメンテナが作ってる。star数から見てメジャーなパッケージではない。
https://github.com/jakebailey/hereby
テストファイルを見た感じ、入力に対して出力を受け取ってテストしているように見える。若干癖がありそう。jsファイルになってるがどう見てもjsファイルではない。
https://github.com/microsoft/TypeScript/blob/20d4479b24700cbd8bcbe4019dc4b30ea1565ae4/tests/baselines/reference/tsc/cancellationToken/when-emitting-buildInfo.js#L1
てことで、ちょい面倒に見えるが、herbyに引数を渡せばtscに渡して戻り値を受け取ってくれて、その中に特定のエラーがあればそれはimportできないという扱いにすれば良いはず。
herbyに渡す値はこちらで生成したものを渡せば良いはず。
#31
1ファイルにimport文を大量に書いてできれば早そうだけど、やりやすさと相談。
todo
eslint-plugin-mui-path-imports/generator/check-generate-data.ts
Line 12 in d3785fe
Archive
The text was updated successfully, but these errors were encountered: