Skip to content

Instantly share code, notes, and snippets.

View denisediniz's full-sized avatar
🏠
Working from home

Denise D. denisediniz

🏠
Working from home
View GitHub Profile

How to config a CRA project (without ejecting it) to use Airbnb Linting rules along side ESLint and Prettier:

Date of this working config: April 2019

  1. npx create-react-app foobar
  2. Create a .eslintignore and add:
src/serviceWorker.js
  1. Create a .prettierrc and add:
@denisediniz
denisediniz / eslint_prettier_airbnb.md
Created February 7, 2020 19:53 — forked from bradtraversy/eslint_prettier_airbnb.md
ESLint, Prettier & Airbnb Setup

VSCode - ESLint, Prettier & Airbnb Setup

1. Install ESLint & Prettier extensions for VSCode

Optional - Set format on save and any global prettier options

2. Install Packages

npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
<html>
<head>
<script src="jquery-2.1.4.js"></script>
<link rel="stylesheet" type="text/css" href="styles.css">
<style>
#map {
height: 500px;
}
</style>
</head>
@denisediniz
denisediniz / .gitignore
Created April 24, 2017 14:34 — forked from wpsmith/.gitignore
.gitignore: Github's default
# Windows image file caches
Thumbs.db
ehthumbs.db
# Folder config file
Desktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
// Lefalet shortcuts for common tile providers - is it worth adding such 1.5kb to Leaflet core?
L.TileLayer.Common = L.TileLayer.extend({
initialize: function (options) {
L.TileLayer.prototype.initialize.call(this, this.url, options);
}
});
(function () {