Skip to content

Instantly share code, notes, and snippets.

@g3d
Last active August 29, 2015 14:27
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save g3d/065ba0e32fda3e40408b to your computer and use it in GitHub Desktop.
sublime config
{
/*
* ENVIRONMENTS
* =================
*/
// Define globals exposed by modern browsers.
"browser": true,
// Define globals exposed by jQuery.
"jquery": true,
// Define globals exposed by Node.js.
"node": true,
// Allow ES6.
"esnext": true,
/*
* ENFORCING OPTIONS
* =================
*/
// Force all variable names to use either camelCase style or UPPER_CASE
// with underscores.
"camelcase": true,
// Prohibit use of == and != in favor of === and !==.
"eqeqeq": true,
// Enforce tab width of 2 spaces.
"indent": 2,
// Prohibit use of a variable before it is defined.
"latedef": true,
// Enforce line length to 80 characters
"maxlen": 80,
// Require capitalized names for constructor functions.
"newcap": true,
// Enforce use of single quotation marks for strings.
"quotmark": "single",
// Enforce placing 'use strict' at the top function scope
"strict": true,
// Prohibit use of explicitly undeclared variables.
"undef": true,
// Warn when variables are defined but never used.
"unused": true,
/*
* RELAXING OPTIONS
* =================
*/
// Suppress warnings about == null comparisons.
"eqnull": true
}
AllCops:
RunRailsCops: true
  1. install rvm & nvm
  2. Select default ruby version & install rubocop (gem install rubocop)
  3. select default node version & intall jshint (npm install -g jshint)
  4. Install SublimeLinter-rubocop & SublimeLinter-jshint
  5. Add .rubocop.yml & .jshintrc into your project
{
"close_windows_when_empty": true,
"color_scheme": "Packages/User/SublimeLinter/Solarized (Dark) (SL).tmTheme",
"default_encoding": "UTF-8",
"default_line_ending": "unix",
"ensure_newline_at_eof_on_save": true,
"fallback_encoding": "Cyrillic (Windows 1251)",
"font_face": "Mensch",
"font_size": 15,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Vintage"
],
"margin": 2,
"open_files_in_new_window": false,
"rulers":
[
80
],
"show_full_path": true,
"show_tab_close_buttons": true,
"soda_classic_tabs": false,
"soda_folder_icons": true,
"spell_check": true,
"tab_size": 2,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"use_simple_full_screen": true,
"word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?",
"word_wrap": "true"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment