From fe9e9f53c342fbd153a37772106f8c17476a8344 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 7 Sep 2021 15:51:19 +0300 Subject: Fix `import/extensions` issues --- examples/postcss/gulpfile.js | 2 +- examples/postcss/index.js | 2 +- package.json | 1 - test/lib/result.js | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/postcss/gulpfile.js b/examples/postcss/gulpfile.js index 62bbc88..cd58c3e 100644 --- a/examples/postcss/gulpfile.js +++ b/examples/postcss/gulpfile.js @@ -2,7 +2,7 @@ const gulp = require('gulp'); const postcss = require('gulp-postcss'); -const rfs = require('../../postcss'); +const rfs = require('../../postcss.js'); const options = { twoDimensional: false, diff --git a/examples/postcss/index.js b/examples/postcss/index.js index f005f6a..b5c9bbe 100644 --- a/examples/postcss/index.js +++ b/examples/postcss/index.js @@ -3,7 +3,7 @@ const fs = require('fs'); const path = require('path'); const postcss = require('postcss'); -const rfs = require('../../postcss'); +const rfs = require('../../postcss.js'); const css = fs.readFileSync(path.join(__dirname, '/src/main.css'), 'utf8'); const options = { diff --git a/package.json b/package.json index 78c733d..ede01be 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,6 @@ "error", "never" ], - "import/extensions": "off", "node/prefer-promises/fs": "off", "operator-linebreak": [ "error", diff --git a/test/lib/result.js b/test/lib/result.js index e891b8f..cd41b45 100644 --- a/test/lib/result.js +++ b/test/lib/result.js @@ -12,7 +12,7 @@ const stylus = require('stylus'); // Postcss const postcss = require('postcss'); -const rfs = require('../..'); +const rfs = require('../../postcss.js'); const postcssTests = require('../postcss/tests.js'); // Functions -- cgit v1.2.3