eslint vs. jshint -- now using eslint globally

main
Steffen Rademacker 10 years ago
parent 7be7b5b71a
commit b6e38a9f83

@ -0,0 +1,63 @@
{
"env": {
"browser": true,
"node": true
},
"globals": {
"jQuery": false,
"$": false
},
"rules": {
"no-console": 0,
"no-reserved-keys": 2,
"block-scoped-var": 2,
"default-case": 2,
"no-div-regex": 2,
"no-else-return": 2,
"no-floating-decimal": 2,
"no-self-compare": 2,
"no-void": 2,
"radix": 2,
"vars-on-top": 2,
"wrap-iife": [2, "inside"],
"global-strict": [2, "never"],
"no-undefined": 2,
"no-sync": 2,
"brace-style": [2, "1tbs", {
"allowSingleLine": false
}],
"consistent-this": [2, "that"],
"func-style": [2, "expression"],
"no-nested-ternary": 2,
"no-lonely-if": 2,
"quotes": [1, "single", "avoid-escape"],
"space-after-keywords": [2, "always"],
"space-in-brackets": [2, "always", {
"singleValue": true,
"objectsInArrays": true,
"arraysInArrays": true
}],
"space-in-parens": [2, "never"],
"space-unary-word-ops": 2,
"max-nested-callbacks": [2, 3],
"wrap-regex": 2,
"max-len": [2, 120],
"no-bitwise": 2,
"no-plusplus": 2
}
}

@ -46,7 +46,7 @@ ln -s ~/dotfiles/agignore ~/.agignore
ln -s ~/dotfiles/editorconfig ~/.editorconfig
ln -s ~/dotfiles/gitconfig ~/.gitconfig
ln -s ~/dotfiles/gitignore ~/.gitignore
ln -s ~/dotfiles/jshintrc ~/.jshintrc
ln -s ~/dotfiles/eslintrc ~/.eslintrc
ln -s ~/dotfiles/jscsrc ~/.jscsrc
ln -s ~/dotfiles/slate.js ~/.slate.js
ln -s ~/dotfiles/tmux.conf ~/.tmux.conf

@ -15,7 +15,6 @@ npm install -g grunt-cli
npm install -g gulp
npm install -g js-beautify
npm install -g jscs
npm install -g jshint
npm install -g jsonlint
npm install -g npm-check-updates
npm install -g recursive-blame

@ -1,28 +0,0 @@
{
"bitwise": true,
"browser": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"immed": true,
"indent": 2,
"latedef": true,
"maxlen": 120,
"newcap": true,
"noarg": true,
"nonew": true,
"plusplus": true,
"quotmark": "single",
"regexp": true,
"trailing": true,
"undef": true,
"globals": {
"jQuery": true,
"$": true,
"Modernizr": true,
"module": true,
"require": true
}
}

@ -428,7 +428,7 @@ smap <expr><TAB> neosnippet#expandable_or_jumpable() ?
" and no checking for scss.css because of CSS3 and SASS-Variable
let g:syntastic_auto_jump = 0
let g:syntastic_scss_checkers = ['scss_lint']
let g:syntastic_javascript_checkers = ['jshint', 'jscs']
let g:syntastic_javascript_checkers = ['eslint', 'jscs']
let g:syntastic_json_checkers = ['jsonlint']
let g:syntastic_mode_map = {
\ 'mode': 'active',
@ -437,7 +437,6 @@ let g:syntastic_mode_map = {
\ }
" wildfire -- selecting with enter/backspace
let g:wildfire_objects = ['i"', "i'", "i)", "i]", "i}", "iW", "it", "ip"]
let g:wildfire_fuel_map = "<ENTER>"

Loading…
Cancel
Save