UNPKG

stylelint-config-prettier-scss

Version:

Turns off all SCSS rules that are unnecessary or might conflict with Prettier.

25 lines (16 loc) 510 B
'use strict'; const assert = require('assert'); const { check } = require('../src/checker.js'); async function test() { const error = await check().catch((error) => error); assert(/No configuration provided/.test(error.message)); const fail = await check('./test/fail'); assert(fail.length > 0); assert(fail.includes('scss/operator-no-newline-after')); const pass = await check('./test/pass'); assert(pass === null); } test().catch((error) => { console.error(error); process.exitCode = 1; });