mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 07:01:31 +08:00 
			
		
		
		
	eslint: Check .ts files
This commit is contained in:
		
							parent
							
								
									c4890fd340
								
							
						
					
					
						commit
						8d949a8b80
					
				@ -21,6 +21,10 @@ module.exports = {
 | 
				
			|||||||
	ignorePatterns: [
 | 
						ignorePatterns: [
 | 
				
			||||||
		// Ignore the entire `build/` (the DLL build).
 | 
							// Ignore the entire `build/` (the DLL build).
 | 
				
			||||||
		"build/**",
 | 
							"build/**",
 | 
				
			||||||
 | 
							// Ignore compiled JavaScript files, as they are generated automatically.
 | 
				
			||||||
 | 
							'src/**/*.js',
 | 
				
			||||||
 | 
							// Also, do not check typing declarations, too.
 | 
				
			||||||
 | 
							'src/**/*.d.ts'
 | 
				
			||||||
	],
 | 
						],
 | 
				
			||||||
	rules: {
 | 
						rules: {
 | 
				
			||||||
		// This rule disallows importing core DLL packages directly. Imports should be done using the `ckeditor5` package.
 | 
							// This rule disallows importing core DLL packages directly. Imports should be done using the `ckeditor5` package.
 | 
				
			||||||
@ -36,7 +40,7 @@ module.exports = {
 | 
				
			|||||||
	},
 | 
						},
 | 
				
			||||||
	overrides: [
 | 
						overrides: [
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			files: ["tests/**/*.js", "sample/**/*.js"],
 | 
								files: [ 'tests/**/*.[jt]s', 'sample/**/*.[jt]s' ],
 | 
				
			||||||
			rules: {
 | 
								rules: {
 | 
				
			||||||
				// To write complex tests, you may need to import files that are not exported in DLL files by default.
 | 
									// To write complex tests, you may need to import files that are not exported in DLL files by default.
 | 
				
			||||||
				// Hence, imports CKEditor 5 packages in test files are not checked.
 | 
									// Hence, imports CKEditor 5 packages in test files are not checked.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user