eslinting and removing ts
This commit is contained in:
parent
e5dff62e1b
commit
87873fff79
5 changed files with 21 additions and 58 deletions
11
.eslintrc
Normal file
11
.eslintrc
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"extends": ["airbnb", "prettier"],
|
||||
"rules": {
|
||||
"react/jsx-filename-extension": [{
|
||||
"extensions": [".js", ".jsx"]
|
||||
}],
|
||||
"linebreak-style": "off",
|
||||
"prettier/prettier": ["error"]
|
||||
},
|
||||
"plugins": ["prettier"]
|
||||
}
|
|
@ -2,5 +2,6 @@
|
|||
"semi": true,
|
||||
"singleQuote": true,
|
||||
"jsxSingleQuote": true,
|
||||
"trailingComma": "es5"
|
||||
"trailingComma": "es5",
|
||||
"printWidth": 100
|
||||
}
|
||||
|
|
19
package.json
19
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",
|
||||
|
|
|
@ -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"
|
||||
]
|
||||
}
|
21
tslint.json
21
tslint.json
|
@ -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": []
|
||||
}
|
Loading…
Reference in a new issue