diff --git a/.travis.yml b/.travis.yml index b7e5c87c..0d1e3e3c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,7 @@ os: - windows language: node_js node_js: + - '14' - '12' - '10' after_success: diff --git a/config/plugins.js b/config/plugins.js index cd3b0863..7586e434 100644 --- a/config/plugins.js +++ b/config/plugins.js @@ -114,12 +114,15 @@ module.exports = { } ], - // TODO: Restore when it becomes safer + // TODO: Restore when it becomes safer: https://github.com/sindresorhus/eslint-plugin-unicorn/issues/681 // 'unicorn/string-content': [ // 'error', // { // patterns: { - // [/\.\.\./.source]: '…' + // '': '’', + // [/\.\.\./.source]: '…', + // '->': '→', + // [/^http:\/\//.source]: 'http://' // } // } // ], @@ -132,6 +135,9 @@ module.exports = { } ], + // TODO: Disabled for now as I don't have time to deal with the backslash that might come from this. Try to enable this rule in 2021. + 'unicorn/no-null': 'off', + // TODO: Remove this override when the rule is more stable. 'unicorn/consistent-function-scoping': 'off', diff --git a/license b/license index e7af2f77..fa7ceba3 100644 --- a/license +++ b/license @@ -1,6 +1,6 @@ MIT License -Copyright (c) Sindre Sorhus (sindresorhus.com) +Copyright (c) Sindre Sorhus (https://sindresorhus.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/package.json b/package.json index 97f59d42..53e2e785 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" + "url": "https://sindresorhus.com" }, "bin": "cli.js", "engines": { @@ -51,25 +51,25 @@ "typescript" ], "dependencies": { - "@typescript-eslint/eslint-plugin": "^2.27.0", - "@typescript-eslint/parser": "^2.27.0", + "@typescript-eslint/eslint-plugin": "^2.29.0", + "@typescript-eslint/parser": "^2.29.0", "arrify": "^2.0.1", "cosmiconfig": "^6.0.0", "debug": "^4.1.0", "eslint": "^6.8.0", - "eslint-config-prettier": "^6.10.0", + "eslint-config-prettier": "^6.11.0", "eslint-config-xo": "^0.29.0", - "eslint-config-xo-typescript": "^0.27.0", + "eslint-config-xo-typescript": "^0.28.0", "eslint-formatter-pretty": "^3.0.1", "eslint-import-resolver-webpack": "^0.12.1", "eslint-plugin-ava": "^10.0.1", "eslint-plugin-eslint-comments": "^3.1.2", "eslint-plugin-import": "^2.20.1", - "eslint-plugin-no-use-extend-native": "^0.4.1", + "eslint-plugin-no-use-extend-native": "^0.5.0", "eslint-plugin-node": "^11.0.0", - "eslint-plugin-prettier": "^3.1.2", + "eslint-plugin-prettier": "^3.1.3", "eslint-plugin-promise": "^4.2.1", - "eslint-plugin-unicorn": "^18.0.1", + "eslint-plugin-unicorn": "^19.0.0", "find-cache-dir": "^3.3.1", "find-up": "^4.1.0", "fs-extra": "^9.0.0", @@ -86,10 +86,10 @@ "open-editor": "^2.0.1", "p-reduce": "^2.1.0", "path-exists": "^4.0.0", - "prettier": "^2.0.4", + "prettier": "2.0.4", "resolve-cwd": "^3.0.0", "resolve-from": "^5.0.0", - "semver": "^7.2.1", + "semver": "^7.3.2", "slash": "^3.0.0", "to-absolute-glob": "^2.0.2", "typescript": "^3.0.0", @@ -97,7 +97,7 @@ }, "devDependencies": { "ava": "^1.1.0", - "coveralls": "^3.0.6", + "coveralls": "^3.1.0", "eslint-config-xo-react": "^0.23.0", "eslint-plugin-react": "^7.19.0", "eslint-plugin-react-hooks": "^3.0.0", @@ -106,7 +106,7 @@ "pify": "^5.0.0", "proxyquire": "^2.1.3", "temp-write": "^4.0.0", - "webpack": "^4.42.0" + "webpack": "^4.43.0" }, "eslintConfig": { "extends": "eslint-config-xo" diff --git a/readme.md b/readme.md index 6f5f2218..86bb11f4 100644 --- a/readme.md +++ b/readme.md @@ -8,7 +8,7 @@ > JavaScript/TypeScript linter with great defaults -[![Build Status](https://travis-ci.org/xojs/xo.svg?branch=master)](https://travis-ci.org/xojs/xo) [![Coverage Status](https://coveralls.io/repos/github/xojs/xo/badge.svg?branch=master)](https://coveralls.io/github/xojs/xo?branch=master) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo) [![Gitter](https://badges.gitter.im/join_chat.svg)](https://gitter.im/xojs/Lobby) +[![Build Status](https://travis-ci.com/xojs/xo.svg?branch=master)](https://travis-ci.com/xojs/xo) [![Coverage Status](https://coveralls.io/repos/github/xojs/xo/badge.svg?branch=master)](https://coveralls.io/github/xojs/xo?branch=master) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo) [![Gitter](https://badges.gitter.im/join_chat.svg)](https://gitter.im/xojs/Lobby) Opinionated but configurable ESLint wrapper with lots of goodies included. Enforces strict and readable code. Never discuss code style on a pull request again! No decision-making. No `.eslintrc` or `.jshintrc` to manage. It just works!