From 87873fff794fdd0a0cfb0d91dd774ffa583e4faa Mon Sep 17 00:00:00 2001 From: Niel Rohling Date: Fri, 19 Apr 2019 19:07:28 +0200 Subject: [PATCH] eslinting and removing ts --- .eslintrc | 11 +++++++++++ .prettierrc | 3 ++- package.json | 19 ++++++++----------- tsconfig.json | 25 ------------------------- tslint.json | 21 --------------------- 5 files changed, 21 insertions(+), 58 deletions(-) create mode 100644 .eslintrc delete mode 100644 tsconfig.json delete mode 100644 tslint.json diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..150d959 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,11 @@ +{ + "extends": ["airbnb", "prettier"], + "rules": { + "react/jsx-filename-extension": [{ + "extensions": [".js", ".jsx"] + }], + "linebreak-style": "off", + "prettier/prettier": ["error"] + }, + "plugins": ["prettier"] +} diff --git a/.prettierrc b/.prettierrc index e4f321a..71a79ff 100644 --- a/.prettierrc +++ b/.prettierrc @@ -2,5 +2,6 @@ "semi": true, "singleQuote": true, "jsxSingleQuote": true, - "trailingComma": "es5" + "trailingComma": "es5", + "printWidth": 100 } diff --git a/package.json b/package.json index 28c1f3e..de74f18 100644 --- a/package.json +++ b/package.json @@ -9,17 +9,14 @@ "react-router-dom": "^4.3.1" }, "devDependencies": { - "@types/node": "10.12.21", - "@types/react": "16.8.2", - "@types/react-dom": "16.8.0", - "node-sass": "^4.11.0", - "prettier": "^1.16.4", - "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" + "eslint": "^5.16.0", + "eslint-config-airbnb": "^17.1.0", + "eslint-config-prettier": "^4.1.0", + "eslint-plugin-import": "^2.17.2", + "eslint-plugin-jsx-a11y": "^6.2.1", + "eslint-plugin-prettier": "^3.0.1", + "eslint-plugin-react": "^7.12.4", + "prettier": "^1.17.0" }, "scripts": { "start": "react-scripts start", diff --git a/tsconfig.json b/tsconfig.json deleted file mode 100644 index 0980b23..0000000 --- a/tsconfig.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], - "allowJs": true, - "skipLibCheck": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "strict": true, - "forceConsistentCasingInFileNames": true, - "module": "esnext", - "moduleResolution": "node", - "resolveJsonModule": true, - "isolatedModules": true, - "noEmit": true, - "jsx": "preserve" - }, - "include": [ - "src" - ] -} diff --git a/tslint.json b/tslint.json deleted file mode 100644 index f59abad..0000000 --- a/tslint.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "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, - "no-console": false, - "strict-type-predicates": false, - "interface-name": false - }, - "rulesDirectory": [] -}