diff --git a/package.json b/package.json index 09b18a27..7cef189f 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,8 @@ "babel-plugin-transform-object-rest-spread": "^6.26.0", "babel-preset-env": "^1.6.1", "cross-env": "^2.0.0", + "eslint-config-jest-files": "^0.1.1", + "eslint-config-unicorn-camelcase": "^0.1.1", "eslint-plugin-prettier": "^2.6.0", "flux-standard-action": "^1.0.0", "husky": "^0.14.3", @@ -69,21 +71,9 @@ "xo": { "prettier": true, "space": true, - "rules": { - "unicorn/filename-case": [ - "error", - { - "case": "camelCase" - } - ] - }, - "overrides": [ - { - "files": "test/**/*.js", - "env": [ - "jest" - ] - } + "extends": [ + "unicorn-camelcase", + "jest-files" ] }, "prettier": { diff --git a/yarn.lock b/yarn.lock index 2a61f688..4b3638f3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2107,12 +2107,20 @@ eslint-ast-utils@^1.0.0: lodash.get "^4.4.2" lodash.zip "^4.2.0" +eslint-config-jest-files@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/eslint-config-jest-files/-/eslint-config-jest-files-0.1.1.tgz#79c371bf9a1eba25bafa80c7b81b50155558d057" + eslint-config-prettier@^2.9.0: version "2.9.0" resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-2.9.0.tgz#5ecd65174d486c22dff389fe036febf502d468a3" dependencies: get-stdin "^5.0.1" +eslint-config-unicorn-camelcase@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/eslint-config-unicorn-camelcase/-/eslint-config-unicorn-camelcase-0.1.1.tgz#f35697aaac88c90930185d8aa88cadb8be260914" + eslint-config-xo@^0.20.0: version "0.20.1" resolved "https://registry.yarnpkg.com/eslint-config-xo/-/eslint-config-xo-0.20.1.tgz#ad04db35e62bacedcf7b7e8a76388364a78d616d"