This major version bump required two changes: - The global line in the mobile viewer example should be removed because the `.eslintrc` file already defines these globals and with the new `eslint` version we otherwise get an error saying "'pdfjsLib' is already defined as a built-in global variable". - The ECMA version for the examples must be set to 6 since we're using modules, otherwise we get an error saying "sourceType 'module' is not supported when ecmaVersion < 2015". It turns out that the previous version of `eslint` already used ECMA version 6 silently even though we set 5, see https://github.com/eslint/eslint/issues/9687#issuecomment-432413384, so in terms of our code nothing really changes.
		
			
				
	
	
		
			25 lines
		
	
	
		
			316 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			316 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
{
 | 
						|
  "extends": [
 | 
						|
    "../.eslintrc"
 | 
						|
  ],
 | 
						|
 | 
						|
  "parserOptions": {
 | 
						|
    "ecmaVersion": 6,
 | 
						|
  },
 | 
						|
 | 
						|
  "env": {
 | 
						|
    "es6": false,
 | 
						|
  },
 | 
						|
 | 
						|
  "globals": {
 | 
						|
    "pdfjsImageDecoders": false,
 | 
						|
    "pdfjsLib": false,
 | 
						|
    "pdfjsViewer": false,
 | 
						|
    "Uint8Array": false,
 | 
						|
  },
 | 
						|
 | 
						|
  "rules": {
 | 
						|
    "object-shorthand": ["error", "never"]
 | 
						|
  }
 | 
						|
}
 |