You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

fp-jin

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fp-jin

Functional Reactive Programming helper

1.1.9
latest
npmnpm
Version published
Maintainers
1
Created
Source

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

  • Configuration
//.eslintrc.js
module.export = {
	/* Target */
    files: [ './src/*' ],
    ignorePatterns : [ '/node_modules/' ],
    
    
	/* Javascript Specificatoin */
	// Global Variable Environment
    env: {
    	browser: true,
        node: false
    },
    globals: {
    	$: true
    },
    
    /* AST Parser */
    parser: '@typescript-eslint/parser' || 'babel eslint',
    parsetOptions: {
    	ecmaVersion: 6,
        sourceType: 'module',
        ecmaFeatures: {
        	jsx: true
        }
    },
    
	/* Code Style */
    // Third part library : Rule Provider
    plugins: [
        'react',
    	'import',
        '@typescript-eslint'
    ],
    //Linting Rule preset
    extends:[
        'eslint:recommended',
        'plugin:react/recommeded',
        'plugin:import/recommeneded',
        'plugin:@typescript-eslint/eslint-recommeded'
    ],  
    //Linting Rule
    rules: {
		'semi': 'error',		//force semicoolon
        'no-console': 'error'   //emit error on console.log ...
	},
    
    /* Override */
    overrides: {
    	filse: [ ... ],
        rules: { ... }
    }
    
}

Render: function () {
  Return (
    <Div className = “commentBox”>
      <H1> Comments </ h1>
      <CommentList data = {this.state.data} />
      <CommentForm onCommentSubmit = {this.handleCommentSubmit} />
    </Div>
  );
}

FAQs

Package last updated on 04 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts