Created
          June 14, 2018 17:51 
        
      - 
      
- 
        Save remy/4cbb0bc3efe5ca0efb6977b570de7f46 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or 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
    
  
  
    
  | module.exports = { | |
| env: { browser: true }, | |
| extends: ['eslint:recommended', 'plugin:compat/recommended'], | |
| }; | 
  
    
      This file contains hidden or 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
    
  
  
    
  | function test(string) { | |
| if (!string.startsWith('http')) { | |
| // expecting error - but none | |
| return false; | |
| } | |
| return true; | |
| } | |
| test('ok'); | 
  
    
      This file contains hidden or 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
    
  
  
    
  | { | |
| "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