 f8bd90ba60
			
		
	
	
		f8bd90ba60
		
	
	
	
	
		
			
			- moved gitgraph.js to web_src and made it importable and es6-compatible - created new webpack chunk for gitgraph - enabled CSS loader in webpack - enabled async/await syntax via regenerator-runtime - added script to ensure webpack chunks are loaded correctly - disable terser's comment extraction to prevent .LICENCE files gitgraph.js has many issues: 1. it is incompatible with ES6 because of strict-mode violations 1. it does not export anything 1. it's css has weird styles like for `body` 1. it is not available on npm I fixed points 1-3 in our version so it's now loadable in webpack. We should eventually consider alternatives.
		
			
				
	
	
		
			52 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| root: true
 | |
| 
 | |
| extends:
 | |
|   - eslint-config-airbnb-base
 | |
|   - eslint:recommended
 | |
| 
 | |
| parserOptions:
 | |
|   ecmaVersion: 2020
 | |
| 
 | |
| env:
 | |
|   browser: true
 | |
|   es6: true
 | |
|   jquery: true
 | |
|   node: true
 | |
| 
 | |
| globals:
 | |
|   __webpack_public_path__: true
 | |
|   Clipboard: false
 | |
|   CodeMirror: false
 | |
|   Dropzone: false
 | |
|   emojify: false
 | |
|   hljs: false
 | |
|   SimpleMDE: false
 | |
|   u2fApi: false
 | |
|   Vue: false
 | |
| 
 | |
| rules:
 | |
|   camelcase: [0]
 | |
|   comma-dangle: [2, only-multiline]
 | |
|   consistent-return: [0]
 | |
|   default-case: [0]
 | |
|   func-names: [0]
 | |
|   max-len: [0]
 | |
|   newline-per-chained-call: [0]
 | |
|   arrow-body-style: [0]
 | |
|   no-alert: [0]
 | |
|   no-continue: [0]
 | |
|   no-mixed-operators: [0]
 | |
|   no-multi-assign: [0]
 | |
|   no-new: [0]
 | |
|   no-param-reassign: [0]
 | |
|   no-plusplus: [0]
 | |
|   no-restricted-syntax: [0]
 | |
|   no-shadow: [0]
 | |
|   no-unused-vars: [2, {args: all, argsIgnorePattern: ^_, varsIgnorePattern: ^_, ignoreRestSiblings: true}]
 | |
|   no-use-before-define: [0]
 | |
|   no-var: [2]
 | |
|   one-var-declaration-per-line: [0]
 | |
|   one-var: [0]
 | |
|   prefer-const: [2, {destructuring: all}]
 | |
|   prefer-destructuring: [0]
 | |
|   radix: [2, as-needed]
 |