- Using emmet in jsx files
- Emmet expands text when js autocomplete needed
- Using
className
instead ofclass
- Install plugin RegReplace
- Install plugin Chain Of Command
{ "keys": ["tab"], "command": "expand_abbreviation_by_tab", "context": | |
[ | |
{ "operand": "source.js", "operator": "equal", "match_all": true, "key": "selector" }, | |
{ "match_all": true, "key": "selection_empty" }, | |
{ "operator": "equal", "operand": false, "match_all": true, "key": "has_next_field" }, | |
{ "operand": false, "operator": "equal", "match_all": true, "key": "auto_complete_visible" }, | |
{ "match_all": true, "key": "is_abbreviation" } | |
] | |
} |
var path = require('path'); | |
module.exports = { | |
entry: [ | |
'./src/index.js', | |
'./src/index.html' | |
], | |
output: { | |
path: path.join(__dirname, 'dist'), | |
filename: 'bundle.js', |
{ | |
"name": "todo-redux-30-steps", | |
"version": "1.0.0", | |
"description": "A simple todo app", | |
"main": "index.js", | |
"scripts": { | |
"test": "mocha --compilers js:babel-core/register --require ./test/test_helpers.js --recursive", | |
"test:watch": "npm run test -- --watch", | |
"lintt": "eslint -c .eslintrc src test", | |
"lint": " node_modules/.bin/eslint test src --fix" |
#selecting | |
ctrl+shift+m: select everything inside brackets |
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote | |
git diff --cached #--cached means show the changes in the cache/index (i.e. staged changes) against the current HEAD. --staged is a synonym for --cached |
node_modules | |
ncp-debug.log | |
npm-debug.log | |
bower_component | |
src/config/configSec.js | |
.DS_STORE | |
node_modules | |
*~ | |
*.pyc |
webpack/* | |
karma.conf.js | |
tests.webpack.js |
{ | |
"parser": "babel-eslint", | |
"plugins": [ | |
"babel", | |
"react" | |
], | |
| |
"ecmaFeatures": { | |
"jsx": true, |
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0 | 20110126 | |
License: none (public domain) | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, |