From ae43f0c48bf7acede8a325b24197001fe2b2f416 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 29 Mar 2023 20:49:30 +0300 Subject: Tweak and re-organize ESLint config (#38369) * Tweak and re-organize ESLint config * merge individual configs to the root config * enable more eslint-plugin-import rules * lint markdown files * Lint --- scss/tests/jasmine.js | 2 -- scss/tests/sass-true/register.js | 3 +-- scss/tests/sass-true/runner.js | 4 +--- 3 files changed, 2 insertions(+), 7 deletions(-) (limited to 'scss') diff --git a/scss/tests/jasmine.js b/scss/tests/jasmine.js index dd78aa551..25d838c97 100644 --- a/scss/tests/jasmine.js +++ b/scss/tests/jasmine.js @@ -1,5 +1,3 @@ -/* eslint-env node */ - /* eslint-disable camelcase */ 'use strict' diff --git a/scss/tests/sass-true/register.js b/scss/tests/sass-true/register.js index bf4139ab1..d93e414c1 100644 --- a/scss/tests/sass-true/register.js +++ b/scss/tests/sass-true/register.js @@ -1,8 +1,7 @@ -/* eslint-env node */ - 'use strict' const path = require('node:path') + const runnerPath = path.join(__dirname, 'runner').replace(/\\/g, '/') require.extensions['.scss'] = (module, filename) => { diff --git a/scss/tests/sass-true/runner.js b/scss/tests/sass-true/runner.js index 71dc222a5..bef870ac6 100644 --- a/scss/tests/sass-true/runner.js +++ b/scss/tests/sass-true/runner.js @@ -1,10 +1,8 @@ -/* eslint-env node */ - 'use strict' -const { runSass } = require('sass-true') const fs = require('node:fs') const path = require('node:path') +const { runSass } = require('sass-true') module.exports = (filename, { describe, it }) => { const data = fs.readFileSync(filename, 'utf8') -- cgit v1.2.3