diff --git a/package.json b/package.json index 9ac6171a..f3c10543 100644 --- a/package.json +++ b/package.json @@ -57,12 +57,12 @@ "@typescript-eslint/parser": "^4.28.1", "arrify": "^3.0.0", "cosmiconfig": "^7.0.0", - "debug": "^4.3.1", + "debug": "^4.3.2", "define-lazy-prop": "^3.0.0", - "eslint": "^7.29.0", + "eslint": "^7.30.0", "eslint-config-prettier": "^8.3.0", "eslint-config-xo": "^0.37.0", - "eslint-config-xo-typescript": "^0.42.0", + "eslint-config-xo-typescript": "^0.43.0", "eslint-formatter-pretty": "^4.1.0", "eslint-import-resolver-webpack": "^0.13.1", "eslint-plugin-ava": "^12.0.0", @@ -106,7 +106,7 @@ "nyc": "^15.1.0", "proxyquire": "^2.1.3", "temp-write": "^5.0.0", - "webpack": "^5.41.1" + "webpack": "^5.42.0" }, "eslintConfig": { "extends": [ diff --git a/readme.md b/readme.md index 32cdba33..4f7a1ea8 100644 --- a/readme.md +++ b/readme.md @@ -40,9 +40,11 @@ It uses [ESLint](https://eslint.org) underneath, so issues regarding built-in ru ## Install ``` -$ npm install --global xo +$ npm install xo ``` +*You must install XO locally. You can run it directly with `$ npx xo`.* + *JSX is supported by default, but you'll need [eslint-config-xo-react](https://github.com/xojs/eslint-config-xo-react#use-with-xo) for React specific linting. Vue components are not supported by default. You'll need [eslint-config-xo-vue](https://github.com/ChocPanda/eslint-config-xo-vue#use-with-xo) for specific linting in a Vue app.* ## Usage @@ -89,8 +91,6 @@ $ xo --help - Put options in package.json instead of using flags so other tools can read it. ``` -*Note that the CLI will use your local install of XO when available, even when run globally.* - ## Default code style *Any of these can be [overridden](#rules) if necessary.* @@ -98,6 +98,7 @@ $ xo --help - Tab indentation *[(or space)](#space)* - Semicolons *[(or not)](#semicolon)* - Single-quotes +- [Trailing comma](https://medium.com/@nikgraf/why-you-should-enforce-dangling-commas-for-multiline-statements-d034c98e36f8) for multiline statements - No unused variables - Space after keyword `if (condition) {}` - Always `===` instead of `==` @@ -120,9 +121,9 @@ Simply run `$ npm init xo` (with any options) to add XO to your package.json or + "test": "xo && ava" }, "devDependencies": { -- "ava": "^2.0.0" -+ "ava": "^2.0.0", -+ "xo": "^0.25.0" +- "ava": "^3.0.0" ++ "ava": "^3.0.0", ++ "xo": "^0.41.0" } } ```