-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add stylelint - Add prettier - ESLint - switch to flat config - use recommended rules and define some exceptions - Handle linter and format issues - Add .gitignore to ignore node_modules directory - Add license name to LICENSE file (like here https://choosealicense.com/licenses/mit/)
- Loading branch information
1 parent
4c08f8e
commit 51425fd
Showing
13 changed files
with
3,165 additions
and
174 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.js | ||
package.json | ||
package-lock.json |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"printWidth": 180, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"useTabs": 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"extends": ["stylelint-config-standard"], | ||
"plugins": ["stylelint-prettier"], | ||
"root": true, | ||
"rules": { | ||
"prettier/prettier": 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,39 @@ | ||
.fullscreen-icon { background-image: url(icon-fullscreen.svg); background-size:26px 52px; } | ||
.fullscreen-icon.leaflet-fullscreen-on { background-position:0 -26px; } | ||
.leaflet-touch .fullscreen-icon { background-position: 2px 2px; } | ||
.leaflet-touch .fullscreen-icon.leaflet-fullscreen-on { background-position: 2px -24px; } | ||
/* one selector per rule as explained here : http://www.sitepoint.com/html5-full-screen-api/ */ | ||
.leaflet-container:-webkit-full-screen { width: 100% !important; height: 100% !important; z-index: 99999; } | ||
.leaflet-container:-ms-fullscreen { width: 100% !important; height: 100% !important; z-index: 99999; } | ||
.leaflet-container:full-screen { width: 100% !important; height: 100% !important; z-index: 99999; } | ||
.leaflet-container:fullscreen { width: 100% !important; height: 100% !important; z-index: 99999; } | ||
.leaflet-pseudo-fullscreen { position: fixed !important; width: 100% !important; height: 100% !important; top: 0px !important; left: 0px !important; z-index: 99999; } | ||
.fullscreen-icon { | ||
background-image: url('icon-fullscreen.svg'); | ||
background-size: 26px 52px; | ||
} | ||
|
||
.fullscreen-icon.leaflet-fullscreen-on { | ||
background-position: 0 -26px; | ||
} | ||
|
||
.leaflet-touch .fullscreen-icon { | ||
background-position: 2px 2px; | ||
} | ||
|
||
.leaflet-touch .fullscreen-icon.leaflet-fullscreen-on { | ||
background-position: 2px -24px; | ||
} | ||
|
||
/* Safari still needs this vendor-prefix: https://caniuse.com/mdn-css_selectors_fullscreen */ | ||
/* stylelint-disable-next-line selector-no-vendor-prefix */ | ||
.leaflet-container:-webkit-full-screen { | ||
width: 100% !important; | ||
height: 100% !important; | ||
z-index: 99999; | ||
} | ||
|
||
.leaflet-container:fullscreen { | ||
width: 100% !important; | ||
height: 100% !important; | ||
z-index: 99999; | ||
} | ||
|
||
.leaflet-pseudo-fullscreen { | ||
position: fixed !important; | ||
width: 100% !important; | ||
height: 100% !important; | ||
top: 0 !important; | ||
left: 0 !important; | ||
z-index: 99999; | ||
} |
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
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
Oops, something went wrong.