SublimeText package - fantasy0107/notes GitHub Wiki

composer require --dev phpmd/phpmd

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

設定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,
    }
}