Skip to content

Commit

Permalink
[generate-help-url] ESLint: No ES2015
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Mar 22, 2018
1 parent 124ce23 commit 3c762f8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -62,6 +62,7 @@
"eslint-import-resolver-webpack": "^0.8.4",
"eslint-plugin-flowtype": "^2.46.1",
"eslint-plugin-flowtype-errors": "^3.5.1",
"eslint-plugin-es5": "^1.2.0",
"eslint-plugin-import": "^2.9.0",
"eslint-plugin-prettier": "^2.6.0",
"eslint-plugin-react": "^7.7.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/@sanity/generate-help-url/.eslintrc
@@ -1,4 +1,8 @@
{
"extends": [
"eslint:recommended",
"plugin:es5/no-es2015"
],
"rules": {
"import/no-commonjs": "off"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/generate-help-url/index.js
@@ -1,4 +1,4 @@
const baseUrl = 'https://docs.sanity.io/help/'
var baseUrl = 'https://docs.sanity.io/help/'

module.exports = function generateHelpUrl(slug) {
return baseUrl + slug
Expand Down

0 comments on commit 3c762f8

Please sign in to comment.