Skip to content

Instantly share code, notes, and snippets.

@remy
Created June 14, 2018 17:51
Show Gist options
  • Save remy/4cbb0bc3efe5ca0efb6977b570de7f46 to your computer and use it in GitHub Desktop.
Save remy/4cbb0bc3efe5ca0efb6977b570de7f46 to your computer and use it in GitHub Desktop.
module.exports = {
env: { browser: true },
extends: ['eslint:recommended', 'plugin:compat/recommended'],
};
function test(string) {
if (!string.startsWith('http')) {
// expecting error - but none
return false;
}
return true;
}
test('ok');
{
"name": "compat-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"babel-eslint": "^8.2.3",
"eslint": "^4.19.1",
"eslint-plugin-compat": "^2.4.0",
"eslint-plugin-react": "^7.9.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment