FP
Typed functional programming libarary
title: "VSCODE"
tags: ""
VSCODE
installation
-
install curl
$ apt-get install curl
-
download GPG Authentication Key
$ sudo sh -c 'curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/microsoft.gpg'
-
Add Micorsoft ubuntu repository
$ sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
-
Update apt-get
$ apt-get update
-
install vscode
$ apt-get install code
Extenstion
ESlint
Coding style Novice for Javascript
module.export = {
files: [ './src/*' ],
ignorePatterns : [ '/node_modules/' ],
env: {
browser: true,
node: false
},
globals: {
$: true
},
parser: '@typescript-eslint/parser' || 'babel eslint',
parsetOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
plugins: [
'react',
'import',
'@typescript-eslint'
],
extends:[
'eslint:recommended',
'plugin:react/recommeded',
'plugin:import/recommeneded',
'plugin:@typescript-eslint/eslint-recommeded'
],
rules: {
'semi': 'error',
'no-console': 'error'
},
overrides: {
filse: [ ... ],
rules: { ... }
}
}
Render: function () {
Return (
<Div className = “commentBox”>
<H1> Comments </ h1>
<CommentList data = {this.state.data} />
<CommentForm onCommentSubmit = {this.handleCommentSubmit} />
</Div>
);
}