eslint-plugin-css-modules icon indicating copy to clipboard operation
eslint-plugin-css-modules copied to clipboard

Doesn't work anymore with new import * as style from './component.scss

Open Yegorich555 opened this issue 1 year ago • 0 comments

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

Yegorich555 avatar Jun 08 '24 16:06 Yegorich555