diff --git a/.eslintrc b/.eslintrc index 24369a333..674c0f4d8 100644 --- a/.eslintrc +++ b/.eslintrc @@ -3,7 +3,8 @@ "react", "babel", "flowtype", - "jest" + "jest", + "verdaccio" ], "extends": [ "eslint:recommended", @@ -11,7 +12,8 @@ "plugin:react/recommended", "plugin:flowtype/recommended", "plugin:jest/recommended", - "plugin:prettier/recommended" + "plugin:prettier/recommended", + "plugin:verdaccio/recommended" ], "settings": { "react": { @@ -41,6 +43,8 @@ "rules": { "babel/no-invalid-this": 1, "prettier/prettier": ["error", null, "@prettier"], + "verdaccio/jsx-spread": 2, + "verdaccio/no-style": 2, "no-useless-escape": 2, "no-invalid-this": 0, "react/no-deprecated": 1, diff --git a/package.json b/package.json index 786cb5783..de0a3dc86 100644 --- a/package.json +++ b/package.json @@ -101,6 +101,7 @@ "eslint-plugin-jest": "21.22.1", "eslint-plugin-prettier": "2.6.2", "eslint-plugin-react": "7.11.1", + "eslint-plugin-verdaccio": "0.0.2", "file-loader": "2.0.0", "flow-bin": "0.81.0", "flow-runtime": "0.17.0", diff --git a/test/.eslintrc b/test/.eslintrc index 0cb9dbe6a..ed80107d0 100644 --- a/test/.eslintrc +++ b/test/.eslintrc @@ -13,6 +13,14 @@ "rules": { "valid-jsdoc": 0, "no-redeclare": 1, + "jest/consistent-test-it": ["error", {"fn": "test"}], + "jest/no-jasmine-globals": 2, + "jest/expect-expect": [ + "error", + { + "assertFunctionNames": ["expect"] + } + ], "no-console": [ 2, { diff --git a/yarn.lock b/yarn.lock index 1dea09587..b532f78c6 100644 Binary files a/yarn.lock and b/yarn.lock differ