- install rvm & nvm
- Select default ruby version & install rubocop (
gem install rubocop
) - select default node version & intall jshint (
npm install -g jshint
) - Install SublimeLinter-rubocop & SublimeLinter-jshint
- Add
.rubocop.yml
&.jshintrc
into your project
Last active
August 29, 2015 14:27
-
-
Save g3d/065ba0e32fda3e40408b to your computer and use it in GitHub Desktop.
sublime config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
/* | |
* 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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AllCops: | |
RunRailsCops: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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