Path: blob/main/docs/rules/no-webpack-loader-syntax.md
829 views
import/no-webpack-loader-syntax
Forbid Webpack loader syntax in imports.
Webpack allows specifying the loaders to use in the import source string using a special syntax like this:
This syntax is non-standard, so it couples the code to Webpack. The recommended way to specify Webpack loader configuration is in a Webpack configuration file.
Rule Details
Fail
Pass
When Not To Use It
If you have a project that doesn't use Webpack you can safely disable this rule.