mirror of
				https://gitlab.com/ceda_ei/sonzai.git
				synced 2025-11-04 09:00:05 +01:00 
			
		
		
		
	Add eslintrc.
This commit is contained in:
		
							
								
								
									
										44
									
								
								.eslintrc.js
									
									
									
									
									
								
							
							
						
						
									
										44
									
								
								.eslintrc.js
									
									
									
									
									
								
							@@ -1,4 +1,44 @@
 | 
				
			|||||||
module.exports = {
 | 
					module.exports = {
 | 
				
			||||||
  root: true,
 | 
						"env": {
 | 
				
			||||||
  extends: '@react-native-community',
 | 
							"browser": true,
 | 
				
			||||||
 | 
							"es6": true
 | 
				
			||||||
 | 
						},
 | 
				
			||||||
 | 
						"extends": ["eslint:recommended", "plugin:react/recommended"],
 | 
				
			||||||
 | 
						"globals": {
 | 
				
			||||||
 | 
							"Atomics": "readonly",
 | 
				
			||||||
 | 
							"SharedArrayBuffer": "readonly"
 | 
				
			||||||
 | 
						},
 | 
				
			||||||
 | 
						"parserOptions": {
 | 
				
			||||||
 | 
							"ecmaFeatures": {
 | 
				
			||||||
 | 
								"jsx": true
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
 | 
							"ecmaVersion": 2018,
 | 
				
			||||||
 | 
							"sourceType": "module"
 | 
				
			||||||
 | 
						},
 | 
				
			||||||
 | 
						"plugins": [
 | 
				
			||||||
 | 
							"react"
 | 
				
			||||||
 | 
						],
 | 
				
			||||||
 | 
						"rules": {
 | 
				
			||||||
 | 
							"indent": [
 | 
				
			||||||
 | 
								"error",
 | 
				
			||||||
 | 
								"tab"
 | 
				
			||||||
 | 
							],
 | 
				
			||||||
 | 
							"linebreak-style": [
 | 
				
			||||||
 | 
								"error",
 | 
				
			||||||
 | 
								"unix"
 | 
				
			||||||
 | 
							],
 | 
				
			||||||
 | 
							"quotes": [
 | 
				
			||||||
 | 
								"error",
 | 
				
			||||||
 | 
								"double"
 | 
				
			||||||
 | 
							],
 | 
				
			||||||
 | 
							"semi": [
 | 
				
			||||||
 | 
								"error",
 | 
				
			||||||
 | 
								"always"
 | 
				
			||||||
 | 
							]
 | 
				
			||||||
 | 
						},
 | 
				
			||||||
 | 
						"settings": {
 | 
				
			||||||
 | 
							"react": {
 | 
				
			||||||
 | 
								"version": "detect"
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user