You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// webpack.config.tsimporttype{ConfigurationasDevServerConfiguration}from"webpack-dev-server";importpathfrom"node:path";importHtmlWebpackPluginfrom"html-webpack-plugin";importMiniCssExtractPluginfrom"mini-css-extract-plugin";importTerserPluginfrom"terser-webpack-plugin";import{typeConfiguration}from"webpack";// <-- This import should not be the last import in the list
// webpack.config.tsimporttype{Configuration}from"webpack";// <-- Without inline type qualifiers, sorting occurs as expectedimporttype{ConfigurationasDevServerConfiguration}from"webpack-dev-server";importpathfrom"node:path";importHtmlWebpackPluginfrom"html-webpack-plugin";importMiniCssExtractPluginfrom"mini-css-extract-plugin";importTerserPluginfrom"terser-webpack-plugin";
Describe the bug
The plugin does not respect inline type qualifiers
Code example
ESLint version
8.55.0
ESLint Plugin Perfectionist version
2.5.0
Additional comments
https://typescript-eslint.io/blog/consistent-type-imports-and-exports-why-and-how/
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-5.html#type-modifiers-on-import-names
Validations
The text was updated successfully, but these errors were encountered: