Webpack css-loader introduced breaking change from version 7.0: https://github.com/webpack-contrib/css-loader/releases/tag/v7.0.0
Before:
import style from "./style.css";
console.log(style.myClass);
After:
import * as style from "./style.css";
console.log(style.myClass);
Expected: eslint-plugin-css-modules throws error if style.myClass isn't defined when we use new import style import * as style from "./style.css";
Actual: eslint-plugin-css-modules ignores such types of imports