eslinting and removing ts

This commit is contained in:
Niel 2019-04-19 19:07:28 +02:00
parent e5dff62e1b
commit 87873fff79
5 changed files with 21 additions and 58 deletions

11
.eslintrc Normal file
View file

@ -0,0 +1,11 @@
{
"extends": ["airbnb", "prettier"],
"rules": {
"react/jsx-filename-extension": [{
"extensions": [".js", ".jsx"]
}],
"linebreak-style": "off",
"prettier/prettier": ["error"]
},
"plugins": ["prettier"]
}

View file

@ -2,5 +2,6 @@
"semi": true, "semi": true,
"singleQuote": true, "singleQuote": true,
"jsxSingleQuote": true, "jsxSingleQuote": true,
"trailingComma": "es5" "trailingComma": "es5",
"printWidth": 100
} }

View file

@ -9,17 +9,14 @@
"react-router-dom": "^4.3.1" "react-router-dom": "^4.3.1"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "10.12.21", "eslint": "^5.16.0",
"@types/react": "16.8.2", "eslint-config-airbnb": "^17.1.0",
"@types/react-dom": "16.8.0", "eslint-config-prettier": "^4.1.0",
"node-sass": "^4.11.0", "eslint-plugin-import": "^2.17.2",
"prettier": "^1.16.4", "eslint-plugin-jsx-a11y": "^6.2.1",
"react-scripts": "2.1.3", "eslint-plugin-prettier": "^3.0.1",
"tslint": "^5.12.1", "eslint-plugin-react": "^7.12.4",
"tslint-config-prettier": "^1.18.0", "prettier": "^1.17.0"
"tslint-config-standard": "^8.0.1",
"tslint-react": "^3.6.0",
"typescript": "3.3.1"
}, },
"scripts": { "scripts": {
"start": "react-scripts start", "start": "react-scripts start",

View file

@ -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"
]
}

View file

@ -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": []
}