no-webpack-loader-syntax
Configuration
rslint.config.ts
Rule Details
Disallows the use of webpack loader syntax (!) in import statements and require() calls. Webpack allows specifying loaders inline using ! in the module path (e.g., css-loader!./styles.css), but this couples the code to webpack and makes it non-portable to other bundlers or environments. Loader configuration should be specified in the webpack configuration file instead.
Examples of incorrect code for this rule:
Examples of correct code for this rule: