@@ -23,7 +23,6 @@ const ForkTsCheckerWebpackPlugin =
23
23
const HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
24
24
const MiniCssExtractPlugin = require ( 'mini-css-extract-plugin' ) ;
25
25
const CssMinimizerPlugin = require ( 'css-minimizer-webpack-plugin' ) ;
26
- const getCSSModuleLocalIdent = require ( 'react-dev-utils/getCSSModuleLocalIdent' ) ;
27
26
const getPublicUrlOrPath = require ( 'react-dev-utils/getPublicUrlOrPath' ) ;
28
27
const ModuleNotFoundPlugin = require ( 'react-dev-utils/ModuleNotFoundPlugin' ) ;
29
28
const NodePolyfillPlugin = require ( 'node-polyfill-webpack-plugin' ) ;
@@ -32,7 +31,7 @@ const TerserPlugin = require('terser-webpack-plugin');
32
31
const { DefinePlugin, EnvironmentPlugin} = require ( 'webpack' ) ;
33
32
const {
34
33
optionParser : app ,
35
- cssModuleIdent : getSimpleCSSModuleLocalIdent ,
34
+ cssModuleIdent : getLocalIdent ,
36
35
GracefulFsPlugin,
37
36
ILibPlugin,
38
37
WebOSMetaPlugin
@@ -46,6 +45,7 @@ module.exports = function (
46
45
contentHash = false ,
47
46
isomorphic = false ,
48
47
noAnimation = false ,
48
+ framework = false ,
49
49
ilibAdditionalResourcesPath
50
50
) {
51
51
process . chdir ( app . context ) ;
@@ -87,9 +87,6 @@ module.exports = function (
87
87
const GENERATE_SOURCEMAP = process . env . GENERATE_SOURCEMAP || ( isEnvProduction ? 'false' : 'true' ) ;
88
88
const shouldUseSourceMap = GENERATE_SOURCEMAP !== 'false' ;
89
89
90
- const getLocalIdent =
91
- process . env . SIMPLE_CSS_IDENT !== 'false' ? getSimpleCSSModuleLocalIdent : getCSSModuleLocalIdent ;
92
-
93
90
// common function to get style loaders
94
91
const getStyleLoaders = ( cssLoaderOptions = { } , preProcessor ) => {
95
92
// Multiple styling-support features are used together, bottom-to-top.
@@ -569,7 +566,11 @@ module.exports = function (
569
566
resolvePluginsRelativeTo : __dirname ,
570
567
// @remove -on-eject-begin
571
568
baseConfig : {
572
- extends : [ require . resolve ( 'eslint-config-enact' ) ] ,
569
+ extends : [
570
+ framework
571
+ ? require . resolve ( 'eslint-config-enact/strict.js' )
572
+ : require . resolve ( 'eslint-config-enact/index.js' )
573
+ ] ,
573
574
rules : {
574
575
...( ! hasJsxRuntime && {
575
576
'react/jsx-uses-react' : 'warn' ,
0 commit comments