Use eslint/prettier for typescript files
Showing
.eslintrc.json
0 → 100644
| ... | @@ -57,7 +57,13 @@ | ... | @@ -57,7 +57,13 @@ |
| "@types/react-dom": "^16.9.7", | "@types/react-dom": "^16.9.7", | ||
| "@types/react-router-dom": "^5.0.0", | "@types/react-router-dom": "^5.0.0", | ||
| "@types/styled-components": "^4.2.0", | "@types/styled-components": "^4.2.0", | ||
| "@typescript-eslint/eslint-plugin": "^2.31.0", | |||
| "@typescript-eslint/parser": "^2.31.0", | |||
| "cypress": "^4.5.0", | "cypress": "^4.5.0", | ||
| "eslint": "^6.8.0", | |||
| "eslint-config-prettier": "^6.11.0", | |||
| "eslint-plugin-prettier": "^3.1.3", | |||
| "eslint-plugin-react": "^7.19.0", | |||
| "prettier": "^1.17.0", | "prettier": "^1.17.0", | ||
| "serve": "^11.3.0", | "serve": "^11.3.0", | ||
| "start-server-and-test": "^1.11.0", | "start-server-and-test": "^1.11.0", | ||
| ... | @@ -68,14 +74,8 @@ | ... | @@ -68,14 +74,8 @@ |
| "build": "cross-env REACT_APP_GIT_COMMIT_HASH=$(git show -s --format=%H) react-scripts build", | "build": "cross-env REACT_APP_GIT_COMMIT_HASH=$(git show -s --format=%H) react-scripts build", | ||
| "test": "react-scripts test --env=jsdom", | "test": "react-scripts test --env=jsdom", | ||
| "eject": "react-scripts eject", | "eject": "react-scripts eject", | ||
| "lint:base": "yarn eslint './src/**/*.{js,jsx}'", | "lint": "eslint '**/*.{js,jsx,ts,tsx}'", | ||
| "format:base": "yarn prettier './src/**/*.{js,jsx,scss}'", | "lint:fix": "eslint '**/*.{js,jsx,ts,tsx}' --fix", | ||
| "fix:lint": "yarn lint:base --fix", | |||
| "fix:format": "yarn format:base --write", | |||
| "fix:all": "yarn fix:lint && yarn fix:format", | |||
| "check:lint": "yarn lint:base", | |||
| "check:format": "yarn format:base --check", | |||
| "check:all": "yarn check:lint && yarn check:format", | |||
| "cy:run": "cypress run", | "cy:run": "cypress run", | ||
| "serve:build": "serve -s build -l 3000", | "serve:build": "serve -s build -l 3000", | ||
| "integration-test": "yarn build && start-server-and-test 'yarn run serve:build' http://localhost:3000 cy:run" | "integration-test": "yarn build && start-server-and-test 'yarn run serve:build' http://localhost:3000 cy:run" | ||
| ... | ... |
Please register or sign in to comment