## Current Behavior Webpack and Rspack currently use `sass` and its Legacy API with `sass-loader`. There is also no method to pass stylePreprocessorOptions other than `includePaths` to the loaders. ## Expected Behavior Switch to using `modern-compiler` api to remove deprecation warnings and improve build performance. Allow users to choose between `sass` and `sass-embedded` for sass compiler implementation. Expand the `stylePreprocesserOptions` interface to accept `includePaths`, `sassOptions` and `lessOptions` that will be passed to the appropriate loader.
68 lines
1.5 KiB
JSON
68 lines
1.5 KiB
JSON
{
|
|
"extends": ["../../.eslintrc.json"],
|
|
"ignorePatterns": ["!**/*"],
|
|
"overrides": [
|
|
{
|
|
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
|
"rules": {
|
|
"no-restricted-imports": [
|
|
"error",
|
|
{
|
|
"name": "chalk",
|
|
"message": "Please use `picocolors` in place of `chalk` for rendering terminal colors"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"files": ["*.ts", "*.tsx"],
|
|
"rules": {}
|
|
},
|
|
{
|
|
"files": ["*.js", "*.jsx"],
|
|
"rules": {}
|
|
},
|
|
{
|
|
"files": ["./package.json", "./generators.json", "./executors.json"],
|
|
"parser": "jsonc-eslint-parser",
|
|
"rules": {
|
|
"@nx/nx-plugin-checks": "error"
|
|
}
|
|
},
|
|
{
|
|
"files": ["./package.json"],
|
|
"parser": "jsonc-eslint-parser",
|
|
"rules": {
|
|
"@nx/dependency-checks": [
|
|
"error",
|
|
{
|
|
"buildTargets": ["build-base"],
|
|
"ignoredDependencies": [
|
|
"nx",
|
|
"typescript",
|
|
"eslint",
|
|
// Used in require.resolve calls
|
|
"@babel/core",
|
|
"css-loader",
|
|
"less",
|
|
"less-loader",
|
|
"postcss-loader",
|
|
"sass",
|
|
"sass-embedded",
|
|
"sass-loader",
|
|
"style-loader",
|
|
"stylus",
|
|
"stylus-loader",
|
|
"source-map-loader",
|
|
"swc-loader",
|
|
"@swc/core",
|
|
"ts-loader",
|
|
"ajv"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|