GithubHelp home page GithubHelp logo

isabella232 / make-sass-lint-config Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sasstools/make-sass-lint-config

0.0 0.0 0.0 168 KB

Convert your .scss-lint.yml config file into the equivalent .sass-lint.yml

Home Page: http://sasstools.github.io/make-sass-lint-config/

License: MIT License

JavaScript 100.00%

make-sass-lint-config's Introduction

Make-Sass-Lint-Config

npm version Build Status Coverage Status

Convert your .scss-lint.yml config file into the equivalent .sass-lint.yml

Use the Online Converter

The easiest way to use this tool is to simply paste the contents of your .scss-lint.yml file into the demonstration converter at sasstools.github.io/make-sass-lint-config.

Command Line Usage

$ npm install -g make-sass-lint-config
$ make-sass-lint-config
  Usage: make-sass-lint-config [path]

  Convert your .scss-lint.yml config file into the equivalent .sass-lint.yml

  Options:

    -h, --help             output usage information
    -V, --version          output the version number
    -o, --output [output]  the path and filename where you would like output to be written

Programmatic Usage

var makeSassLintConfig = require('make-sass-lint-config');
var jsyaml = require('js-yaml');
var fs = require('fs');

var scssLintConfigYaml = fs.readFileSync('.scss-lint.yml', 'utf8');

// Parse YAML into an object and get the object representation
// of the sass-lint config
var scssLintConfig = jsyaml.safeLoad(scssLintConfigYaml);
console.log(makeSassLintConfig.convert(scssLintConfig));

// Convert a YAML file and get YAML output
console.log(makeSassLintConfig.convertYaml(scssLintConfigYaml));

convert(scssSettings [ , options ])

Converts a scss-lint config file into a sass-lint config file

  • scssSettings - Settings parsed from YAML
  • options.debug - include additional debug information in the returned settings object, default false

convertYaml(scssSettingsYaml)

Perform convert on a string and output the converted yaml

  • scssSettingsYaml - scss-lint config in YAML format

make-sass-lint-config's People

Contributors

ackl avatar benthemonkey avatar ueokande avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.