You've already forked joplin
							
							
				mirror of
				https://github.com/laurent22/joplin.git
				synced 2025-10-31 00:07:48 +02:00 
			
		
		
		
	Tools: Run packageJsonLint hook only when JSON files are being committed
This commit is contained in:
		| @@ -21,8 +21,8 @@ module.exports = { | ||||
| 	// See https://github.com/lint-staged/lint-staged/issues/934#issuecomment-743299357 | ||||
| 	'*.{js,jsx,ts,tsx,task1}': 'yarn checkIgnoredFiles', | ||||
| 	'*.{js,jsx,ts,tsx,task2}': 'yarn spellcheck', | ||||
| 	'*.{js,jsx,ts,tsx,task3}': 'yarn packageJsonLint', | ||||
| 	'*.{js,jsx,ts,tsx,task4}': 'yarn linter-precommit', | ||||
| 	'*.{js,jsx,ts,tsx,task3}': 'yarn linter-precommit', | ||||
| 	'*.{json,task4}': 'yarn packageJsonLint', | ||||
| 	'*.{md,mdx,task5}': 'yarn spellcheck', | ||||
| 	'*.{md,mdx,task6}': 'yarn validateFilenames', | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user