Skip to content

Commit 8dbc7b6

Browse files
authored
Merge pull request #1 from Language-Mapping/mapbox-init
Init Mapbox demo
2 parents 1528530 + 8724ffe commit 8dbc7b6

26 files changed

Lines changed: 1856 additions & 1121 deletions

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
# Project-wide settings (all files)
5+
[*]
6+
end_of_line = lf
7+
insert_final_newline = true
8+
indent_style = space
9+
indent_size = 2
10+
11+
# TOC bug in GitLab Markdown parsing:
12+
# github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md007---unordered-list-indentation
13+
[*.md]
14+
indent_size = 4

.eslintrc

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
{
2+
"extends": ["airbnb", "prettier", "prettier/react"],
3+
"plugins": ["prettier"],
4+
"rules": {
5+
"array-bracket-newline": [
6+
"error",
7+
{
8+
"multiline": true
9+
}
10+
],
11+
"comma-dangle": ["error", "only-multiline"],
12+
"comma-spacing": "error",
13+
"comma-style": ["error", "last"],
14+
"dot-location": ["error", "property"],
15+
"no-multi-spaces": "error",
16+
"no-multiple-empty-lines": [
17+
"error",
18+
{
19+
"max": 1,
20+
"maxEOF": 1,
21+
"maxBOF": 0
22+
}
23+
],
24+
"no-whitespace-before-property": "error",
25+
"no-trailing-spaces": "error",
26+
"object-curly-newline": [
27+
"error",
28+
{
29+
"consistent": true
30+
}
31+
],
32+
"object-curly-spacing": ["error", "always"],
33+
"object-property-newline": [
34+
"error",
35+
{
36+
"allowAllPropertiesOnSameLine": true
37+
}
38+
],
39+
"one-var-declaration-per-line": ["error", "initializations"],
40+
"operator-linebreak": ["error", "after"],
41+
"padded-blocks": ["error", "never"],
42+
"padding-line-between-statements": [
43+
"error",
44+
{
45+
"blankLine": "always",
46+
"prev": "multiline-block-like",
47+
"next": ["multiline-block-like"]
48+
},
49+
{
50+
"blankLine": "never",
51+
"prev": "var",
52+
"next": "var"
53+
},
54+
{
55+
"blankLine": "always",
56+
"prev": "var",
57+
"next": "block-like"
58+
},
59+
{
60+
"blankLine": "always",
61+
"prev": "*",
62+
"next": "return"
63+
},
64+
{
65+
"blankLine": "always",
66+
"prev": "*",
67+
"next": "function"
68+
},
69+
{
70+
"blankLine": "always",
71+
"prev": "function",
72+
"next": "*"
73+
},
74+
{
75+
"blankLine": "never",
76+
"prev": "*",
77+
"next": "empty"
78+
},
79+
{
80+
"blankLine": "always",
81+
"prev": "directive",
82+
"next": "*"
83+
}
84+
],
85+
"prettier/prettier": [
86+
"error",
87+
{
88+
"singleQuote": true,
89+
"printWidth": 80,
90+
"trailingComma": "es5"
91+
}
92+
],
93+
// CRED: https://bit.ly/2HtgMDY
94+
// ...if it doesn't work, try: https://bit.ly/2HtdGzT
95+
"import/no-extraneous-dependencies": [
96+
"error",
97+
{ "devDependencies": true, "packageDir": "./" }
98+
],
99+
"quote-props": ["error", "as-needed"],
100+
"jsx-quotes": ["error", "prefer-double"],
101+
"space-before-blocks": "error",
102+
"space-before-function-paren": [
103+
"error",
104+
{
105+
"anonymous": "never",
106+
"named": "never",
107+
"asyncArrow": "always"
108+
}
109+
],
110+
"space-unary-ops": "error",
111+
"react/jsx-filename-extension": [
112+
1,
113+
{
114+
"extensions": [".js", ".jsx"]
115+
}
116+
],
117+
"react/prop-types": 0,
118+
"no-underscore-dangle": 0,
119+
"import/imports-first": ["error", "absolute-first"],
120+
"import/newline-after-import": "error"
121+
},
122+
"env": {
123+
"browser": true,
124+
"commonjs": true,
125+
"es6": true,
126+
"jest": true,
127+
"node": true
128+
},
129+
"globals": {
130+
"window": true,
131+
"alert": true,
132+
"fetch": true,
133+
"document": true,
134+
"localStorage": true,
135+
"FormData": true,
136+
"FileReader": true,
137+
"Blob": true,
138+
"navigator": true
139+
},
140+
"parser": "babel-eslint",
141+
"settings": {
142+
"ecmascript": 6,
143+
"jsx": true,
144+
"import/resolver": {
145+
"node": {
146+
"paths": ["src"]
147+
}
148+
},
149+
"import/parsers": {
150+
"@typescript-eslint/parser": [".ts", ".tsx"]
151+
},
152+
"react": {
153+
"pragma": "React",
154+
"version": "16.8"
155+
}
156+
}
157+
}

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,20 @@
1111
# production
1212
/build
1313

14-
# misc
14+
# osx files
1515
.DS_Store
16+
17+
# junk
18+
/scratch
19+
20+
# environment
21+
.env
1622
.env.local
1723
.env.development.local
1824
.env.test.local
1925
.env.production.local
2026

27+
# logs
2128
npm-debug.log*
2229
yarn-debug.log*
2330
yarn-error.log*

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.cache
2+
package.json
3+
package-lock.json

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"endOfLine": "lf",
3+
"semi": false,
4+
"singleQuote": true,
5+
"tabWidth": 2,
6+
"trailingComma": "es5"
7+
}

.prettierrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
endOfLine: 'lf',
3+
semi: false,
4+
singleQuote: true,
5+
tabWidth: 2,
6+
trailingComma: 'es5',
7+
}

package.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,20 @@
77
"@testing-library/react": "^9.3.2",
88
"@testing-library/user-event": "^7.1.2",
99
"@types/jest": "^24.0.0",
10-
"@types/node": "^12.0.0",
11-
"@types/react": "^16.9.0",
12-
"@types/react-dom": "^16.9.0",
10+
"@types/node": "^14.0.13",
11+
"@types/react": "^16.9.35",
12+
"@types/react-dom": "^16.9.8",
13+
"@types/react-map-gl": "^5.2.4",
14+
"eslint-config-airbnb": "^18.1.0",
15+
"eslint-config-prettier": "^6.11.0",
16+
"eslint-plugin-import": "^2.21.1",
17+
"eslint-plugin-prettier": "^3.1.3",
18+
"eslint-plugin-react": "^7.20.0",
1319
"react": "^16.13.1",
1420
"react-dom": "^16.13.1",
21+
"react-map-gl": "^5.2.7",
1522
"react-scripts": "3.4.1",
16-
"typescript": "~3.7.2"
23+
"typescript": "3.9.5"
1724
},
1825
"scripts": {
1926
"start": "react-scripts start",
@@ -35,5 +42,10 @@
3542
"last 1 firefox version",
3643
"last 1 safari version"
3744
]
45+
},
46+
"resolutions": {
47+
"@typescript-eslint/eslint-plugin": "2.23.0",
48+
"@typescript-eslint/parser": "2.23.0",
49+
"@typescript-eslint/typescript-estree": "2.23.0"
3850
}
3951
}

public/data/counties-nyc.geojson

Lines changed: 13 additions & 0 deletions
Large diffs are not rendered by default.

src/App.css

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/App.test.tsx

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)