Skip to content

Instantly share code, notes, and snippets.

@nire0510
Last active August 29, 2015 14:23
Show Gist options
  • Save nire0510/aedace0518d951dd22e0 to your computer and use it in GitHub Desktop.
Save nire0510/aedace0518d951dd22e0 to your computer and use it in GitHub Desktop.
Extracts all jscs settings to your clipboard
  1. Open JSCS - Rules page
  2. Open your browser's console and run the following script:
var objSettings = {};

[].forEach.call(document.querySelectorAll('.rule-list__item a'), function (element) {
  objSettings[element.text] = true;
});

copy(obj);
  1. DONE. All settings are copied to your clipboard with default value true.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment