diff --git a/client/.eslintrc.js b/client/.eslintrc.js index 9b773225..0900f02a 100755 --- a/client/.eslintrc.js +++ b/client/.eslintrc.js @@ -1,9 +1,15 @@ module.exports = { - extends: 'airbnb', + extends: [ + 'eslint:recommended', + 'plugin:react/recommended', + ], env: { "browser": true, "node": true }, + parserOptions: { + "ecmaVersion": 6 + }, rules: { // prevents stupid complaints a la // (req) { @@ -15,6 +21,7 @@ module.exports = { 'import/no-extraneous-dependencies': [0], 'prefer-arrow-callback': [0], 'arrow-body-style': [0], + 'no-return-assign': [2, 'except-parens'], 'no-console': [0], // i like loops 'no-plusplus': [0], @@ -25,6 +32,8 @@ module.exports = { "react/react-in-jsx-scope": [0], "react/jsx-indent": [2, 4], "react/jsx-uses-react": 1, - "react/jsx-uses-vars": 1 + "react/jsx-uses-vars": 1, + "react/prefer-stateless-function": 1, + "react/prop-types": 0 }, }; \ No newline at end of file diff --git a/client/package.json b/client/package.json index 4206c981..5add61b0 100755 --- a/client/package.json +++ b/client/package.json @@ -21,11 +21,8 @@ "devDependencies": { "parcel": "^1.9.7", "jest": "^18.0.0", - "babel-preset-react": "^6.24.1", "eslint": "^5.6.0", - "eslint-config-airbnb": "^17.1.0", - "eslint-plugin-import": "^2.14.0", - "eslint-plugin-jsx-a11y": "^6.1.1", + "babel-preset-react": "^6.24.1", "eslint-plugin-react": "^7.11.1" } } diff --git a/client/src/components/login.component.jsx b/client/src/components/login.component.jsx index ee57d6ca..627deccf 100644 --- a/client/src/components/login.component.jsx +++ b/client/src/components/login.component.jsx @@ -12,7 +12,7 @@ function renderLogin({ account, submitLogin }) {
- details.name = e.target.value} /> + (details.name = e.target.value)} /> @@ -23,7 +23,12 @@ function renderLogin({ account, submitLogin }) {
- details.password = e.target.value} />
+ (details.password = e.target.value)}
+ />
diff --git a/client/src/main.jsx b/client/src/main.jsx
index 28584333..89403831 100644
--- a/client/src/main.jsx
+++ b/client/src/main.jsx
@@ -37,8 +37,8 @@ jdenticon.config = {
const Cryps = () => (