Change the eslintrc.js file for our Typescript work
This commit is contained in:
		
							parent
							
								
									0e2afd6fad
								
							
						
					
					
						commit
						394f871a37
					
				
					 1 changed files with 27 additions and 19 deletions
				
			
		
							
								
								
									
										26
									
								
								.eslintrc.js
									
										
									
									
									
								
							
							
						
						
									
										26
									
								
								.eslintrc.js
									
										
									
									
									
								
							| 
						 | 
					@ -1,15 +1,23 @@
 | 
				
			||||||
// License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
 | 
					// License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
 | 
				
			||||||
// Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE
 | 
					// Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
module.exports = {
 | 
					module.exports = {
 | 
				
			||||||
    "env": {
 | 
						root: true,
 | 
				
			||||||
        "browser": true,
 | 
					
 | 
				
			||||||
        "commonjs": true,
 | 
						overrides: [
 | 
				
			||||||
        "es6": true
 | 
							{
 | 
				
			||||||
    },
 | 
								"files": ['**/*.ts'],
 | 
				
			||||||
    "extends": "eslint:recommended",
 | 
								parser: '@typescript-eslint/parser',
 | 
				
			||||||
    "parserOptions": {
 | 
								plugins: [
 | 
				
			||||||
        "sourceType": "module"
 | 
									'@typescript-eslint',
 | 
				
			||||||
    },
 | 
								],
 | 
				
			||||||
 | 
								extends: [
 | 
				
			||||||
 | 
									'eslint:recommended',
 | 
				
			||||||
 | 
									'plugin:@typescript-eslint/recommended',
 | 
				
			||||||
 | 
								]
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						],
 | 
				
			||||||
	"rules": {
 | 
						"rules": {
 | 
				
			||||||
		"linebreak-style": [
 | 
							"linebreak-style": [
 | 
				
			||||||
			"error",
 | 
								"error",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue