mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Add typescript guideline and typescript-specific eslint plugins and fix issues (#31521)
1. Add some general guidelines how to write our typescript code 2. Add `@typescript-eslint/eslint-plugin`, general typescript rules 3. Add `eslint-plugin-deprecation` to detect deprecated code 4. Fix all new lint issues that came up
This commit is contained in:
		@@ -89,7 +89,9 @@ const sfc = {
 | 
			
		||||
    // load job data and then auto-reload periodically
 | 
			
		||||
    // need to await first loadJob so this.currentJobStepsStates is initialized and can be used in hashChangeListener
 | 
			
		||||
    await this.loadJob();
 | 
			
		||||
    this.intervalID = setInterval(this.loadJob, 1000);
 | 
			
		||||
    this.intervalID = setInterval(() => {
 | 
			
		||||
      this.loadJob();
 | 
			
		||||
    }, 1000);
 | 
			
		||||
    document.body.addEventListener('click', this.closeDropdown);
 | 
			
		||||
    this.hashChangeListener();
 | 
			
		||||
    window.addEventListener('hashchange', this.hashChangeListener);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user