Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

7 changes: 0 additions & 7 deletions .eslintrc.js

This file was deleted.

20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ module.exports = {
loader: "sass-loader",
options: {
sassOptions: {
style: `compressed`,
style: "compressed",
loadPaths: ["absolute/path/a", "absolute/path/b"],
},
},
Expand Down Expand Up @@ -499,7 +499,7 @@ module.exports = {
{
loader: "sass-loader",
options: {
additionalData: "$env: " + process.env.NODE_ENV + ";",
additionalData: `$env: ${process.env.NODE_ENV};`,
},
},
],
Expand Down Expand Up @@ -531,10 +531,10 @@ module.exports = {
const relativePath = path.relative(rootContext, resourcePath);

if (relativePath === "styles/foo.scss") {
return "$value: 100px;" + content;
return `$value: 100px;${content}`;
}

return "$value: 200px;" + content;
return `$value: 200px;${content}`;
},
},
},
Expand Down Expand Up @@ -565,10 +565,10 @@ module.exports = {
const relativePath = path.relative(rootContext, resourcePath);

if (relativePath === "styles/foo.scss") {
return "$value: 100px;" + content;
return `$value: 100px;${content}`;
}

return "$value: 200px;" + content;
return `$value: 200px;${content}`;
},
},
},
Expand Down Expand Up @@ -788,8 +788,10 @@ module.exports = {
**webpack.config.js**

```js
const path = require("node:path");

module.exports = {
entry: [__dirname + "/src/scss/app.scss"],
entry: [path.resolve(__dirname, "./src/scss/app.scss")],
module: {
rules: [
{
Expand Down Expand Up @@ -818,8 +820,10 @@ module.exports = {
**webpack.config.js**

```js
const path = require("node:path");

module.exports = {
entry: [__dirname + "/src/scss/app.scss"],
entry: [path.resolve(__dirname, "./src/scss/app.scss")],
module: {
rules: [
{
Expand Down
8 changes: 8 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from "eslint/config";
import configs from "eslint-config-webpack/configs.js";

export default defineConfig([
{
extends: [configs["recommended-dirty"]],
},
]);
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const isNodeSassSupported = require("./test/helpers/is-node-sass-supported");

module.exports = {
testEnvironment: "jest-environment-node-single-context",
// eslint-disable-next-line no-undefined

snapshotResolver:
"<rootDir>/test/helpers/skip-node-sass-snapshot-resolver.js",
moduleNameMapper: isNodeSassSupported()
Expand Down
Loading
Loading