JSPM

stylelint-scss-no-relative-imports

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 139
  • Score
    100M100P100Q86670F
  • License MIT

A rule which allow fix and warn relative imports of SCSS for Stylelint

Package Exports

  • stylelint-scss-no-relative-imports
  • stylelint-scss-no-relative-imports/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stylelint-scss-no-relative-imports) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

stylelint-scss-no-relative-imports

A rule which allow fix and warn relative imports of SCSS for Stylelint

Installation

Install with npm

  npm i --save-dev stylelint-scss-no-relative-imports

Usage/Examples

This plugin will fix foutes from project root path by box.

Create the .stylelintrc.json config file (or open the existing one), add stylelint-scss-no-relative-imports to the plugins array and the rules you need to the rules list. All rules from stylelint-scss-no-relative-imports need to be namespaced with scss.

{
  "plugins": [
    "stylelint-scss-no-relative-imports"
  ],
  "rules": {
    "stylelint-scss-no-relative-imports/no-relative-imports": true
  }
}

List of rules

@-import

  • no-relative-imports: This is the rule which check and fix import path if it go top to the directories relativetely.