SublimeText package - fantasy0107/notes GitHub Wiki
- DocBlockr - PHP註解
- PHPCS有example-settings/key binding - PHP的PSR2
- jsFormat - 排 js code
- sftp - 上傳到遠端主機
- phpmd - 檢查沒有用到的變數等等 有整合到 phpcs 裝到 dev
composer require --dev phpmd/phpmd
- sublime text 3 中註解 jsx
- sftp - 上傳檔案
sftp upload
ssh-keygen
/c/Users/man/.ssh/FileName
產生公私鑰 公鑰副檔名為pub
config
Host host_path
User Test
IdentityFile C:/Users/Test/.ssh/test(private key)
.gitignore
sftp-config.json
安裝sftp(sublime text套件)
Putty keygenerator
- 下載puttygen
- import 私鑰
- save private key
設定sftp-config.json
"host",
"user",//帳號
"remote_path",//遠端的Laravel目錄
"ssh_key_file"//ppk私鑰
ssh host_path
ReactNative 相關套件
套件相關
React ES6 Snippets - 語法提示
eslint -
airbnb 相關的eslint 設定
npm install --global eslint-config-airbnb-standard
Sublime Text 3
# SublimeLinter
"paths": {
"linux": [
"~/.nvm/versions/node/v8.8.1/bin"
],
"osx": [],
"windows": ["%AppData%\\npm"]
}
// airbnb
.eslintrc
{
"extends": ["airbnb-standard"]
}
// 只檢查沒用到的變數
.eslintrc
{
"parser": "babel-eslint",
"env":
{
// I write for browser
"browser": true,
// in CommonJS
"node": true,
"es6" : true
},
// To give you an idea how to override rule options:
"rules":
{
"no-unused-vars": 2,
"react/prop-types": 0,
}
}