Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3,659 changed files
with
5,825 additions
and
3,040 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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,18 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"useBuiltIns": "entry", | ||
"targets": { | ||
"node": "current" | ||
} | ||
} | ||
] | ||
], | ||
"plugins": [ | ||
"@babel/plugin-syntax-object-rest-spread", | ||
"@babel/plugin-proposal-object-rest-spread", | ||
"@babel/plugin-proposal-class-properties" | ||
] | ||
} |
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,134 @@ | ||
{ | ||
// Starts from a sane strict rule set | ||
"extends": [ | ||
"airbnb-base", | ||
"plugin:react/recommended", | ||
"prettier", | ||
"prettier/react" | ||
], | ||
"rules": { | ||
"func-names": "off", | ||
"comma-dangle": ["error", "never"], | ||
// Allow non-dot notation | ||
"dot-notation": "off", | ||
// Really specific, will review it later | ||
"new-cap": "off", | ||
// No _var but allow this._method | ||
"no-underscore-dangle": [2, { | ||
"allowAfterThis": true | ||
}], | ||
// Allow functions to be used before definition (as espected in other languages) | ||
"no-use-before-define": [ | ||
"error", | ||
{ | ||
"functions": false, | ||
"classes": true | ||
} | ||
], | ||
// Don't allow modification of function parameters, but allow modification of parameter properties. | ||
// Debatable but required for in-place functions. | ||
"no-param-reassign": [2, { | ||
"props": false | ||
}], | ||
// Don't be too strict on these yet | ||
"object-shorthand": [1, "always"], | ||
"arrow-body-style": [1, "as-needed"], | ||
// Allow mixed operators | ||
"no-mixed-operators": "off", | ||
// Preference yet to be defined, be flexible for now | ||
"import/prefer-default-export": "off", | ||
// Allow i++, i-- | ||
"no-plusplus": "off", | ||
// Simpler than Airbnb, closer to Prettier | ||
// TODO: enable/auto-lint it everywhere | ||
"arrow-parens": ["off", "as-needed"], | ||
// Need to figure out first what convention we want here | ||
"import/extensions": "off", | ||
"import/no-extraneous-dependencies": [ | ||
"error", | ||
{ | ||
"devDependencies": [ | ||
"**/*.unit.{js,jsx}", | ||
"**/test/**/*.{js,jsx}", | ||
"webpack.dev.js", | ||
"webpack.common.js", | ||
"webpack.prod.js", | ||
"styleguide.config.js" | ||
] | ||
} | ||
], | ||
// Don't force class methods to be static when possible | ||
"class-methods-use-this": "off", | ||
// All import must exist in imported file | ||
"import/no-unresolved": "error", | ||
// AirBNB doesn't use it because it doesn't work with CommonJS, but we don't care so we want `named` | ||
"import/named": "error", | ||
// Allow parseInt without radix (we don't support any browsers that | ||
// implement parseInt incorrectly) | ||
"radix": "off", | ||
// Always allow a final else in an if block | ||
"no-else-return": "off", | ||
|
||
// Accept only warn and error console methods | ||
"no-console": ["error", { | ||
"allow": ["warn", "error", "info"] | ||
}], | ||
|
||
// Differences from the React set | ||
// Allow anonymous components | ||
"react/display-name": "off", | ||
|
||
// We use regenerator-runtime anyway, disable warning about it | ||
"no-restricted-syntax": "off", | ||
// Prettier handles this | ||
"no-nested-ternary": "off", | ||
// react is provided by a plugin | ||
"react/react-in-jsx-scope": "off", | ||
"react/no-danger": "error", | ||
// Off temporarily, TODO: bring them back one by one | ||
"react/prop-types": [2, { | ||
"ignore": ["children"] | ||
}], | ||
"react/no-string-refs": "off", | ||
"react/no-unescaped-entities": "off" | ||
}, | ||
// Need babel parser for some missing features (for instance, object spread) | ||
"parser": "babel-eslint", | ||
// React plugin, configured with the right version | ||
"plugins": ["react"], | ||
"settings": { | ||
"react": { | ||
"pragma": "React", | ||
"version": "15.6.1" | ||
}, | ||
// "import/resolver": { | ||
// "webpack": { | ||
// "config": { | ||
// "resolve": { | ||
// "modules": [ | ||
// ], | ||
// "mainFields": ["browser", "main", "module"], | ||
// "extensions": [".json", ".ts", ".tsx", ".jsx", ".js"] | ||
// } | ||
// } | ||
// }, | ||
// "node": { | ||
// "paths": ["src"] | ||
// } | ||
// } | ||
}, | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"jquery": true, | ||
"node": true | ||
}, | ||
// Some globals that we still use in our "strict" code | ||
// False mean that they are read-only https://eslint.org/docs/user-guide/configuring#specifying-globals | ||
"globals": { | ||
// Datadog globals | ||
"DD": false, | ||
// Third party globals | ||
"$": false | ||
} | ||
} |
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
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,122 @@ | ||
module.exports = { | ||
"production": { | ||
branches: ["master", "content-deploy"], | ||
serverUrl: "https://www.datadoghq.com", | ||
slackChannel: "#websites", | ||
google: { | ||
api_key: "AIzaSyAV35rQjE2Qg8J6OXtACpCn-b6d3SqepBw", | ||
geocode_api_key: "AIzaSyBHOYhxa1lznRERCtnWK3wgDvtZWTzDwy0", | ||
recaptcha_api: "https://www.google.com/recaptcha/api.js", | ||
places: "https://maps.googleapis.com/maps/api/js?key=AIzaSyAV35rQjE2Qg8J6OXtACpCn-b6d3SqepBw&libraries=places" | ||
}, | ||
greenhouse: { | ||
job_board_url: "https://api.greenhouse.io/v1/boards/datadog/" | ||
}, | ||
careers_api: { | ||
application_post: "https://7wje6dav9g.execute-api.us-east-1.amazonaws.com/prod/application/create", | ||
presigner: "https://7wje6dav9g.execute-api.us-east-1.amazonaws.com/prod/presigner" | ||
}, | ||
algolia_index: "prod-v2" | ||
}, | ||
"preview": { | ||
serverUrl: "https://corpsite-preview.datadoghq.com/", | ||
slackChannel: "#guac-ops", | ||
google: { | ||
api_key: "AIzaSyAV35rQjE2Qg8J6OXtACpCn-b6d3SqepBw", | ||
geocode_api_key: "AIzaSyBHOYhxa1lznRERCtnWK3wgDvtZWTzDwy0", | ||
recaptcha_api: "https://www.google.com/recaptcha/api.js", | ||
places: "https://maps.googleapis.com/maps/api/js?key=AIzaSyAV35rQjE2Qg8J6OXtACpCn-b6d3SqepBw&libraries=places" | ||
}, | ||
greenhouse: { | ||
job_board_url: "https://api.greenhouse.io/v1/boards/datadog/" | ||
}, | ||
careers_api: { | ||
application_post: "https://7wje6dav9g.execute-api.us-east-1.amazonaws.com/prod/application/create", | ||
presigner: "https://7wje6dav9g.execute-api.us-east-1.amazonaws.com/prod/presigner" | ||
}, | ||
algolia_index: "staging" | ||
}, | ||
"staging": { | ||
serverUrl: "http://corpsite-staging.datadoghq.com", | ||
slackChannel: "#guac-ops", | ||
google: { | ||
api_key: "AIzaSyAV35rQjE2Qg8J6OXtACpCn-b6d3SqepBw", | ||
geocode_api_key: "AIzaSyBHOYhxa1lznRERCtnWK3wgDvtZWTzDwy0", | ||
recaptcha_api: "https://www.google.com/recaptcha/api.js", | ||
places: "https://maps.googleapis.com/maps/api/js?key=AIzaSyAV35rQjE2Qg8J6OXtACpCn-b6d3SqepBw&libraries=places" | ||
}, | ||
greenhouse: { | ||
job_board_url: "https://api.greenhouse.io/v1/boards/datadog/" | ||
}, | ||
careers_api: { | ||
application_post: "https://7wje6dav9g.execute-api.us-east-1.amazonaws.com/prod/application/create", | ||
presigner: "https://7wje6dav9g.execute-api.us-east-1.amazonaws.com/prod/presigner" | ||
}, | ||
algolia_index: "staging" | ||
}, | ||
"local": { | ||
serverUrl: "http://localhost:3000", | ||
google: { | ||
api_key: "AIzaSyAV35rQjE2Qg8J6OXtACpCn-b6d3SqepBw", | ||
geocode_api_key: "AIzaSyBHOYhxa1lznRERCtnWK3wgDvtZWTzDwy0", | ||
recaptcha_api: "https://www.google.com/recaptcha/api.js", | ||
places: "https://maps.googleapis.com/maps/api/js?key=AIzaSyAV35rQjE2Qg8J6OXtACpCn-b6d3SqepBw&libraries=places" | ||
}, | ||
greenhouse: { | ||
job_board_url: "https://api.greenhouse.io/v1/boards/datadog/" | ||
}, | ||
careers_api: { | ||
application_post: "http://127.0.0.1:5000/application/create", | ||
presigner: "http://127.0.0.1:5000/presigner" | ||
}, | ||
algolia_index: "staging" | ||
}, | ||
"linkCheckOptions": { | ||
method: 'get', | ||
filterLevel: 3, | ||
maxSocketsPerHost: 75, | ||
maxSockets: 300, | ||
excludeExternalLinks: false, | ||
honorRobotExclusions: false, | ||
// cacheResponses: true, | ||
includedKeywords: [ | ||
'*docs.datadoghq*', | ||
'*help.datadoghq*' | ||
], | ||
excludedKeywords: [ | ||
'**/signup*', | ||
'*app.datadoghq*', | ||
'*corp-hugo/tree*', | ||
'*linkedin.com/share*', | ||
'*reddit.com/submit*', | ||
'*twitter.com/share*', | ||
'*mailto:*', | ||
'*tel:*', | ||
'*irc:*', | ||
] | ||
}, | ||
"linkCheckNotifications":{ | ||
keywords:[ | ||
[ | ||
'*datadoghq.com/blog/*', | ||
'*/about/press/*' | ||
], | ||
[ | ||
{ | ||
slackChannel: '#guac-ops', | ||
message: 'Gobs' | ||
}, | ||
{ | ||
slackChannel: '#guac-ops', | ||
message: 'Press' | ||
} | ||
] | ||
] | ||
|
||
} | ||
} | ||
|
||
// '': { | ||
// slackChannel: '#guac-ops', | ||
// message: "A blog link is broken tell #writing" | ||
// } |
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 @@ | ||
{ | ||
"@babel/polyfill.js": "static/@babel/polyfill.js", | ||
"main-dd-css.css": "static/main-dd-css.css", | ||
"main-dd-css.js": "static/main-dd-css.js", | ||
"main-dd-js.js": "static/main-dd-js.js", | ||
"vendor.js": "static/vendor.js" | ||
} |
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 @@ | ||
{"main-dd.css":"main-dd-c4cbcf87.css"} |
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
{"main-dd.js":"main-dd-b81e6d58.js"} |
Oops, something went wrong.