forked from maplibre/maplibre-gl-js-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] add prettier, tests, and travis (maplibre#11)
* add prettier * eslint, tests * run prettier * copyeditor * configurations * add travis * add examples unit test; tags.js -> tags.json * use tap-min instead of tap-spec * polyfill style-spec.js to prevent `Symbol is undefined` in IE 11
- Loading branch information
Katy DeCorah
authored
Aug 6, 2019
1 parent
cef271e
commit 89abcfb
Showing
53 changed files
with
5,277 additions
and
1,669 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,4 @@ | ||
{ | ||
"allow": ["fast"], | ||
"dictionary": "local.dic" | ||
} |
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,5 @@ | ||
mapbox-gl-js | ||
vendor | ||
_site* | ||
_batfish* | ||
docs/pages/dist |
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,43 +1,4 @@ | ||
{ | ||
"extends": [ | ||
"mourner", | ||
"plugin:import/recommended" | ||
], | ||
"parser": "babel-eslint", | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"jsx": true | ||
} | ||
}, | ||
"plugins": [ | ||
"import", | ||
"react" | ||
], | ||
"rules": { | ||
"react/jsx-uses-vars": "error", | ||
"import/no-duplicates": "error", | ||
"import/no-commonjs": "error", | ||
"no-confusing-arrow": ["error", {"allowParens": true}], | ||
"prefer-const": ["error", {"destructuring": "all"}], | ||
"no-restricted-properties": [2, {"object": "Object", "property": "assign"}], | ||
"template-curly-spacing": "error", | ||
|
||
"new-cap": "off", | ||
"array-bracket-spacing": "off", | ||
"consistent-return": "off", | ||
"global-require": "off", | ||
"object-curly-spacing": "off", | ||
"quotes": "off", | ||
"space-before-function-paren": "off", | ||
"no-useless-escape": "off", | ||
"no-multiple-empty-lines": [ "error", {"max": 1}] | ||
}, | ||
"globals": { | ||
"analytics": false, | ||
"MapboxPageShell": false | ||
}, | ||
"env": { | ||
"browser": true | ||
} | ||
"root": true, | ||
"extends": "./conf/eslint-config-base.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,4 @@ | ||
_site* | ||
vendor | ||
mapbox-gl-js | ||
_batfish* |
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,13 @@ | ||
{ | ||
"plugins": [ | ||
["@mapbox/remark-lint-link-text", [2]], | ||
["remark-frontmatter", ["yaml"]], | ||
["@mapbox/remark-lint-mapbox/frontmatter", [2]], | ||
["@mapbox/remark-lint-mapbox/link-checker", { | ||
"constants": "docs/constants.json", | ||
"pages": "docs/pages/", | ||
"siteBasePath": "mapbox-gl-js", | ||
"siteOrigin": "https://docs.mapbox.com" | ||
}, [2]] | ||
] | ||
} |
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 @@ | ||
language: node_js | ||
node_js: | ||
- 8 |
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
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,7 @@ | ||
{ | ||
"extends": "eslint:recommended", | ||
"env": { | ||
"es6": true, | ||
"node": 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,22 @@ | ||
{ | ||
"extends": "./eslint-config-base.json", | ||
"parser": "babel-eslint", | ||
"env": { | ||
"browser": true | ||
}, | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"jsx": true | ||
} | ||
}, | ||
"globals": { | ||
"MapboxPageShell": true, | ||
"analytics": true | ||
}, | ||
"plugins": ["react"], | ||
"rules": { | ||
"react/jsx-uses-react": "error", | ||
"react/jsx-uses-vars": "error" | ||
} | ||
} |
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 @@ | ||
{ | ||
"extends": "../conf/eslint-config-browser.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
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.