This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"language": { | |
"javascript": { | |
"linting.prefer": "JSHint", | |
"linting.usePreferredOnly": true | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://unpkg.com/ng-table@2.0.2/bundles/ng-table.min.css | |
https://unpkg.com/ng-table@2.0.2/bundles/ng-table.min.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CLEARDB_DATABASE_URL: mysql://bf9bbcabb0d149:ecdd51aa@us-cdbr-iron-east-04.cleardb.net/heroku_334ed86d480b2e2 | |
?reconnect=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { RequestOptions, Http, XHRBackend } from '@angular/http'; | |
import { InterceptedHttp } from './intercepted-http' | |
export function interceptedHttpFactory(xhrBackend: XHRBackend, requestOptions: RequestOptions): Http { | |
return new InterceptedHttp(xhrBackend, requestOptions); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.caelum.cadastro.dao; | |
import android.content.ContentValues; | |
import android.content.Context; | |
import android.database.Cursor; | |
import android.database.sqlite.SQLiteDatabase; | |
import android.database.sqlite.SQLiteOpenHelper; | |
import java.lang.reflect.Field; | |
import java.util.ArrayList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~ | |
git clone https://github.com/magicmonty/bash-git-prompt.git .bash-git-prompt --depth=1 | |
echo "foo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Um contador</title> | |
<script src="https://unpkg.com/redux@latest/dist/redux.min.js"></script> | |
</head> | |
<body> | |
<div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Um contador</title> | |
<script src="https://unpkg.com/redux@latest/dist/redux.min.js"></script> | |
</head> | |
<body> | |
<div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install --save-dev tslint tslint-angular prettier | |
.tslintrc | |
{ | |
"extends": "angular" | |
} | |
.prettierrc | |
{ | |
"printWidth": 120, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Instalar o eslint e o prettier no projeto: | |
```bash | |
npm install -D eslint babel-eslint eslint-config-airbnb eslint-config-prettier \ | |
eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-prettier \ | |
eslint-plugin-react prettier | |
``` | |
- Criar o arquivo `.eslintrc` na raiz do projeto |
OlderNewer