prettier and tslint configs
This commit is contained in:
		
							parent
							
								
									6ee35a7b87
								
							
						
					
					
						commit
						142ca7e6de
					
				
					 3 changed files with 31 additions and 1 deletions
				
			
		
							
								
								
									
										6
									
								
								.prettierrc
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								.prettierrc
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,6 @@
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  "semi": true,
 | 
				
			||||||
 | 
					  "singleQuote": true,
 | 
				
			||||||
 | 
					  "jsxSingleQuote": true,
 | 
				
			||||||
 | 
					  "trailingComma": "es5"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -7,16 +7,22 @@
 | 
				
			||||||
    "@types/node": "10.12.21",
 | 
					    "@types/node": "10.12.21",
 | 
				
			||||||
    "@types/react": "16.8.2",
 | 
					    "@types/react": "16.8.2",
 | 
				
			||||||
    "@types/react-dom": "16.8.0",
 | 
					    "@types/react-dom": "16.8.0",
 | 
				
			||||||
 | 
					    "prettier": "^1.16.4",
 | 
				
			||||||
    "react": "^16.8.1",
 | 
					    "react": "^16.8.1",
 | 
				
			||||||
    "react-dom": "^16.8.1",
 | 
					    "react-dom": "^16.8.1",
 | 
				
			||||||
    "react-scripts": "2.1.3",
 | 
					    "react-scripts": "2.1.3",
 | 
				
			||||||
 | 
					    "tslint": "^5.12.1",
 | 
				
			||||||
 | 
					    "tslint-config-prettier": "^1.18.0",
 | 
				
			||||||
 | 
					    "tslint-config-standard": "^8.0.1",
 | 
				
			||||||
 | 
					    "tslint-react": "^3.6.0",
 | 
				
			||||||
    "typescript": "3.3.1"
 | 
					    "typescript": "3.3.1"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "scripts": {
 | 
					  "scripts": {
 | 
				
			||||||
    "start": "react-scripts start",
 | 
					    "start": "react-scripts start",
 | 
				
			||||||
    "build": "react-scripts build",
 | 
					    "build": "react-scripts build",
 | 
				
			||||||
    "test": "react-scripts test",
 | 
					    "test": "react-scripts test",
 | 
				
			||||||
    "eject": "react-scripts eject"
 | 
					    "eject": "react-scripts eject",
 | 
				
			||||||
 | 
					    "lint": "tslint 'src/**/*.{ts,tsx}'"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "eslintConfig": {
 | 
					  "eslintConfig": {
 | 
				
			||||||
    "extends": "react-app"
 | 
					    "extends": "react-app"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										18
									
								
								tslint.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								tslint.json
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,18 @@
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    "defaultSeverity": "error",
 | 
				
			||||||
 | 
					    "extends": [
 | 
				
			||||||
 | 
					        "tslint:recommended",
 | 
				
			||||||
 | 
					        "tslint-config-standard",
 | 
				
			||||||
 | 
					        "tslint-react",
 | 
				
			||||||
 | 
					        "tslint-config-prettier"
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    "jsRules": {},
 | 
				
			||||||
 | 
					    "rules": {
 | 
				
			||||||
 | 
					        "object-literal-sort-keys": false,
 | 
				
			||||||
 | 
					        "member-ordering": false,
 | 
				
			||||||
 | 
					        "jsx-no-lambda": false,
 | 
				
			||||||
 | 
					        "jsx-boolean-value": false,
 | 
				
			||||||
 | 
					        "member-access": false
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "rulesDirectory": []
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue