From 0a4a8b4ad640d6f13761f1ce1836c5cc77dccaae Mon Sep 17 00:00:00 2001
From: "Matthew \"strager\" Glazar"
Date: Fri, 2 Jul 2021 19:18:23 -0700
Subject: [PATCH] Prepare for 0.3.0 release
---
.github/workflows/tag-build.yml | 2 +-
Formula/quick-lint-js.rb | 2 +-
dist/arch/PKGBUILD-dev | 2 +-
dist/arch/PKGBUILD-git | 2 +-
dist/arch/PKGBUILD-release | 2 +-
dist/debian/README.md | 8 +++---
dist/debian/build.sh | 2 +-
dist/debian/debian/changelog | 6 ++++
dist/nix/quick-lint-js.nix | 2 +-
dist/npm/BUILDING.md | 8 +++---
dist/npm/package.json | 2 +-
docs/RELEASES.md | 5 ++--
docs/cli.adoc | 2 +-
docs/config.adoc | 2 +-
docs/man/quick-lint-js.1 | 16 +++--------
docs/man/quick-lint-js.config.5 | 26 ++++-------------
.../quick-lint-js.vim/doc/quick-lint-js.txt | 2 +-
plugin/vscode-lsp/README.md | 2 +-
plugin/vscode-lsp/package.json | 2 +-
plugin/vscode/BUILDING.md | 2 +-
plugin/vscode/package.json | 2 +-
src/quick-lint-js/version.h | 2 +-
website/public/index.ejs.html | 4 +--
website/public/install/index.ejs.html | 28 +++++++++----------
24 files changed, 58 insertions(+), 75 deletions(-)
diff --git a/.github/workflows/tag-build.yml b/.github/workflows/tag-build.yml
index 23ee924b10..3bb0465eb7 100644
--- a/.github/workflows/tag-build.yml
+++ b/.github/workflows/tag-build.yml
@@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
container: ghcr.io/quick-lint/quick-lint-js-github-builder:v1
env:
- QLJS_VERSION: "0.2.0"
+ QLJS_VERSION: "0.3.0"
steps:
- name: create tag file
run: |
diff --git a/Formula/quick-lint-js.rb b/Formula/quick-lint-js.rb
index 5739261b7f..0fd3a36e74 100644
--- a/Formula/quick-lint-js.rb
+++ b/Formula/quick-lint-js.rb
@@ -4,7 +4,7 @@
class QuickLintJs < Formula
desc "Find bugs in your JavaScript code"
homepage "https://quick-lint-js.com/"
- url "https://github.com/quick-lint/quick-lint-js/archive/refs/tags/0.2.0.tar.gz"
+ url "https://github.com/quick-lint/quick-lint-js/archive/refs/tags/0.3.0.tar.gz"
head "https://github.com/quick-lint/quick-lint-js.git", :branch => "master"
license "GPL-3.0-or-later"
diff --git a/dist/arch/PKGBUILD-dev b/dist/arch/PKGBUILD-dev
index 06d75edd3b..c954b682df 100644
--- a/dist/arch/PKGBUILD-dev
+++ b/dist/arch/PKGBUILD-dev
@@ -5,7 +5,7 @@
# Contributor: Shivam Mehta
pkgname=quick-lint-js-dev
-pkgver=0.2.0
+pkgver=0.3.0
pkgrel=1
pkgdesc="Find bugs in JavaScript programs"
arch=(aarch64 arm armv6h armv7h i686 pentium4 x86_64)
diff --git a/dist/arch/PKGBUILD-git b/dist/arch/PKGBUILD-git
index d3515a8d97..b12abc2690 100644
--- a/dist/arch/PKGBUILD-git
+++ b/dist/arch/PKGBUILD-git
@@ -5,7 +5,7 @@
# Contributor: Shivam Mehta
pkgname=quick-lint-js-git
-pkgver=0.2.0
+pkgver=0.3.0
pkgrel=1
pkgdesc="Find bugs in JavaScript programs"
arch=(aarch64 arm armv6h armv7h i686 pentium4 x86_64)
diff --git a/dist/arch/PKGBUILD-release b/dist/arch/PKGBUILD-release
index e786b079d1..1708d8ddac 100644
--- a/dist/arch/PKGBUILD-release
+++ b/dist/arch/PKGBUILD-release
@@ -5,7 +5,7 @@
# Contributor: Shivam Mehta
pkgname=quick-lint-js
-pkgver=0.2.0
+pkgver=0.3.0
pkgrel=1
pkgdesc="Find bugs in JavaScript programs"
arch=(aarch64 arm armv6h armv7h i686 pentium4 x86_64)
diff --git a/dist/debian/README.md b/dist/debian/README.md
index 8cce266944..0ff091c3c7 100644
--- a/dist/debian/README.md
+++ b/dist/debian/README.md
@@ -10,13 +10,13 @@ On a Debian-based machine, install dependencies for .deb generation:
$ sudo apt-get install cmake debhelper dpkg-dev gcc-9 g++-9 git lintian
Then, run the `build.sh` script will build
-`dist/debian/quick-lint-js_0.2.0-1_amd64.deb`,
-`dist/debian/quick-lint-js-vim_0.2.0-1_all.deb`, and related files.
+`dist/debian/quick-lint-js_0.3.0-1_amd64.deb`,
+`dist/debian/quick-lint-js-vim_0.3.0-1_all.deb`, and related files.
## Installing
On a Debian-based system, after building the .deb file (per the above
instructions), install the .deb file:
- $ sudo dpkg -i dist/debian/quick-lint-js_0.2.0-1_amd64.deb
- $ sudo dpkg -i dist/debian/quick-lint-js-vim_0.2.0-1_all.deb
+ $ sudo dpkg -i dist/debian/quick-lint-js_0.3.0-1_amd64.deb
+ $ sudo dpkg -i dist/debian/quick-lint-js-vim_0.3.0-1_all.deb
diff --git a/dist/debian/build.sh b/dist/debian/build.sh
index f248bdd964..fe219644a9 100755
--- a/dist/debian/build.sh
+++ b/dist/debian/build.sh
@@ -9,7 +9,7 @@ set -x
cd "$(dirname "${0}")/../.."
-package_version=0.2.0
+package_version=0.3.0
DEB_BUILD_OPTIONS="parallel=$(nproc)"
export DEB_BUILD_OPTIONS
diff --git a/dist/debian/debian/changelog b/dist/debian/debian/changelog
index 9efc3ecf15..7d3ae2b877 100644
--- a/dist/debian/debian/changelog
+++ b/dist/debian/debian/changelog
@@ -1,3 +1,9 @@
+quick-lint-js (0.3.0-1) unstable; urgency=medium
+
+ * New beta release.
+
+ -- Matthew "strager" Glazar Fri, 02 Jul 2021 19:20:46 PM -0700
+
quick-lint-js (0.2.0-1) unstable; urgency=medium
* New beta release.
diff --git a/dist/nix/quick-lint-js.nix b/dist/nix/quick-lint-js.nix
index e768941744..96d918b43d 100644
--- a/dist/nix/quick-lint-js.nix
+++ b/dist/nix/quick-lint-js.nix
@@ -13,7 +13,7 @@
mkDerivation {
pname = "quick-lint-js";
- version = "0.2.0";
+ version = "0.3.0";
src = ../../.;
unpackPhase = null;
diff --git a/dist/npm/BUILDING.md b/dist/npm/BUILDING.md
index f9ca4f3ef5..a3d1ea36bf 100644
--- a/dist/npm/BUILDING.md
+++ b/dist/npm/BUILDING.md
@@ -8,12 +8,12 @@ To build this quick-lint-js npm package:
* `dist/npm/linux/bin/quick-lint-js`: Linux executable
* `dist/npm/macos/bin/quick-lint-js`: macOS executable
* `dist/npm/windows/bin/quick-lint-js.exe`: Windows executable
-3. Run `npm pack .` to create `quick-lint-js-0.2.0.tgz`.
+3. Run `npm pack .` to create `quick-lint-js-0.3.0.tgz`.
To install system-wide, run
-`npm install --global --unsafe-perm ./quick-lint-js-0.2.0.tgz`.
+`npm install --global --unsafe-perm ./quick-lint-js-0.3.0.tgz`.
To install within an existing Node.js project, run
-`npm install /path/to/quick-lint-js-0.2.0.tgz`.
+`npm install /path/to/quick-lint-js-0.3.0.tgz`.
-To publish to npm's registry, run `npm publish ./quick-lint-js-0.2.0.tgz`.
+To publish to npm's registry, run `npm publish ./quick-lint-js-0.3.0.tgz`.
diff --git a/dist/npm/package.json b/dist/npm/package.json
index 5876cbb836..032af4ea66 100644
--- a/dist/npm/package.json
+++ b/dist/npm/package.json
@@ -1,7 +1,7 @@
{
"name": "quick-lint-js",
"description": "Find bugs in your JavaScript code",
- "version": "0.2.0",
+ "version": "0.3.0",
"keywords": [
"quick",
"lint",
diff --git a/docs/RELEASES.md b/docs/RELEASES.md
index 610c9a14dd..cc4db707b1 100644
--- a/docs/RELEASES.md
+++ b/docs/RELEASES.md
@@ -6,7 +6,7 @@ based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
quick-lint-js' version numbers are arbitrary. quick-lint-js does *not* adhere to
Semantic Versioning.
-## Unreleased
+## 0.3.0 (2021-07-02)
Beta release.
@@ -23,7 +23,6 @@ Beta release.
* Translations: Swedish (implemented by [Kim "Linden"][])
* Emacs plugin (implemented by [wagner riffel][])
* Neovim plugin
-* Global variables can be configured using a `quick-lint-js.config` file
* Errors and warnings are now documented on the website
* Various new errors and error message improvements (implemented by
[AidenThing][], [Daniel La Rocque][], [Erlliam Mejia][], [Himanshu][], [Lee
@@ -32,6 +31,8 @@ Beta release.
Mehta][])
* `--stdin` CLI option allows reading JavaScript from standard input instead of
a file (implemented by [wagner riffel][])
+* Partially implemented: Global variables can be configured using a
+ `quick-lint-js.config` file
### Fixed
diff --git a/docs/cli.adoc b/docs/cli.adoc
index 8cb400abfd..5ba53ad272 100644
--- a/docs/cli.adoc
+++ b/docs/cli.adoc
@@ -2,7 +2,7 @@
// See end of file for extended copyright information.
= quick-lint-js(1)
-:version: 0.2.0
+:version: 0.3.0
:mansource: quick-lint-js version {version}
:toc:
:reproducible:
diff --git a/docs/config.adoc b/docs/config.adoc
index 9d986d71df..1fa1918a3b 100644
--- a/docs/config.adoc
+++ b/docs/config.adoc
@@ -2,7 +2,7 @@
// See end of file for extended copyright information.
= quick-lint-js.config(5)
-:version: 0.2.0
+:version: 0.3.0
:mansource: quick-lint-js version {version}
:toc:
:reproducible:
diff --git a/docs/man/quick-lint-js.1 b/docs/man/quick-lint-js.1
index 91e18cd0f5..ba398b1ca5 100644
--- a/docs/man/quick-lint-js.1
+++ b/docs/man/quick-lint-js.1
@@ -8,12 +8,12 @@
'\" t
.\" Title: quick-lint-js
.\" Author: [see the "AUTHOR(S)" section]
-.\" Generator: Asciidoctor 2.0.12
+.\" Generator: Asciidoctor 2.0.10
.\" Manual: \ \&
-.\" Source: quick-lint-js version 0.2.0
+.\" Source: quick-lint-js version 0.3.0
.\" Language: English
.\"
-.TH "QUICK\-LINT\-JS" "1" "" "quick\-lint\-js version 0.2.0" "\ \&"
+.TH "QUICK\-LINT\-JS" "1" "" "quick\-lint\-js version 0.3.0" "\ \&"
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.ss \n[.ss] 0
@@ -115,7 +115,7 @@ Incompatible with \fB\-\-lsp\-server\fP.
.RS 4
Cause \fBquick\-lint\-js\fP to exit with a non\-zero exit code if any of the discovered errors is listed in \fIerrors\fP.
.sp
-See the [error\-lists] section for a description of the format for \fIerrors\fP.
+See the Error lists section for a description of the format for \fIerrors\fP.
.sp
Incompatible with \fB\-\-lsp\-server\fP.
.RE
@@ -244,14 +244,12 @@ To lint a file called \fIlib/index.js\fP, writing error messages to the terminal
.sp
.if n .RS 4
.nf
-.fam C
$ \fBquick\-lint\-js\fP lib/index.js
lib/index.js:1:20: error: variable used before declaration: language [E058]
lib/index.js:2:7: note: variable declared here [E058]
lib/index.js:3:1: error: assignment to const variable [E003]
lib/index.js:1:7: note: const variable declared here [E003]
lib/index.js:5:25: warning: use of undeclared variable: ocupation [E057]
-.fam
.fi
.if n .RE
.br
@@ -264,13 +262,11 @@ To lint three files, writing machine\-readable messages to \fI/tmp/vim\-qflist.j
.sp
.if n .RS 4
.nf
-.fam C
$ \fBquick\-lint\-js\fP \-\-output\-format=vim\-qflist\-json \(rs
\-\-vim\-bufnr=3 lib/pizza\-dough.js \(rs
\-\-vim\-bufnr=4 lib/pizza\-sauce.js \(rs
\-\-vim\-bufnr=6 lib/pineapple.js \(rs
>/tmp/vim\-qflist.json
-.fam
.fi
.if n .RE
.br
@@ -285,12 +281,10 @@ To lint a file called \fIbad.js\fP, but don\(cqt fail on use\-of\-undeclared\-va
.sp
.if n .RS 4
.nf
-.fam C
$ \fBquick\-lint\-js\fP \-\-exit\-fail\-on=\-E057 bad.js
bad.js:5:25: warning: use of undeclared variable: $ [E057]
$ echo $?
0
-.fam
.fi
.if n .RE
.br
@@ -303,11 +297,9 @@ To lint source files with a strict configuration file and lint test files with a
.sp
.if n .RS 4
.nf
-.fam C
$ \fBquick\-lint\-js\fP \(rs
\-\-config\-file strict\-quick\-lint\-js.config src/index.js src/helpers.js \(rs
\-\-config\-file lax\-quick\-lint\-js.config test/test\-app.js
-.fam
.fi
.if n .RE
.br
diff --git a/docs/man/quick-lint-js.config.5 b/docs/man/quick-lint-js.config.5
index 5ea2d954bc..1fc6be3e21 100644
--- a/docs/man/quick-lint-js.config.5
+++ b/docs/man/quick-lint-js.config.5
@@ -8,12 +8,12 @@
'\" t
.\" Title: quick-lint-js.config
.\" Author: [see the "AUTHOR(S)" section]
-.\" Generator: Asciidoctor 2.0.12
+.\" Generator: Asciidoctor 2.0.10
.\" Manual: \ \&
-.\" Source: quick-lint-js version 0.2.0
+.\" Source: quick-lint-js version 0.3.0
.\" Language: English
.\"
-.TH "QUICK\-LINT\-JS.CONFIG" "5" "" "quick\-lint\-js version 0.2.0" "\ \&"
+.TH "QUICK\-LINT\-JS.CONFIG" "5" "" "quick\-lint\-js version 0.3.0" "\ \&"
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.ss \n[.ss] 0
@@ -176,9 +176,7 @@ A \f(CRquick\-lint\-js.config\fP or \f(CR.quick\-lint\-js.config\fP file with no
.sp
.if n .RS 4
.nf
-.fam C
{}
-.fam
.fi
.if n .RE
.sp
@@ -189,7 +187,6 @@ For example:
.sp
.if n .RS 4
.nf
-.fam C
{
" ": "this file configures quick\-lint\-js",
"globals": {
@@ -203,7 +200,6 @@ For example:
"chart": true
}
}
-.fam
.fi
.if n .RE
.sp
@@ -214,7 +210,6 @@ A \f(CRpackage.json\fP file might look like this:
.sp
.if n .RS 4
.nf
-.fam C
{
"name": "my\-npm\-package",
"version": "0.1.0",
@@ -224,7 +219,6 @@ A \f(CRpackage.json\fP file might look like this:
}
}
}
-.fam
.fi
.if n .RE
.SH "OPTIONS"
@@ -255,7 +249,7 @@ If \fBglobal\-groups\fP is \fBfalse\fP or an empty array, then no global variabl
.sp
If \fBglobal\-groups\fP is a non\-empty array, then global variables are defined per the given group names.
Each group name is a string.
-For the list of group names, see the [global\-groups] section.
+For the list of group names, see the Global Groups section.
.RE
.SH "GLOBALS"
.sp
@@ -327,7 +321,7 @@ If \fBfalse\fP, the variable cannot be assigned to.
.RE
.sp
JSON Unicode escapes (\fB"\(rsu0068ello"\fP) are allowed in the variable name.
-JavaScript Unicode escapes (\fB"\(rs\(rsu{68}llo"\fP) are not allowed in the variable name.
+JavaScript Unicode escapes (\fB"\(rs\u{68}llo"\fP) are not allowed in the variable name.
.SH "GLOBAL GROUPS"
.sp
The following groups are supported for the \fBglobal\-groups\fP configuration property:
@@ -390,14 +384,12 @@ Such an application might have the following \f(CRquick\-lint\-js.config\fP file
.sp
.if n .RS 4
.nf
-.fam C
{
"global\-groups": ["browser", "ecmascript", "jest"],
"globals": {
"google": {"writable": false}
}
}
-.fam
.fi
.if n .RE
.sp
@@ -406,7 +398,6 @@ In this case, the application configures quick\-lint\-js in its \f(CRpackage.jso
.sp
.if n .RS 4
.nf
-.fam C
{
"name": "acme",
"version": "1.2.1",
@@ -420,7 +411,6 @@ In this case, the application configures quick\-lint\-js in its \f(CRpackage.jso
}
}
}
-.fam
.fi
.if n .RE
.sp
@@ -432,13 +422,11 @@ For example, if you\(cqre seeing a spurious warning E057 "use of undeclared vari
.sp
.if n .RS 4
.nf
-.fam C
{
"globals": {
"MyLibrary": true
}
}
-.fam
.fi
.if n .RE
.sp
@@ -446,13 +434,11 @@ If you are not seeing E002, E033, E057, or E059 (false negative), but you want t
.sp
.if n .RS 4
.nf
-.fam C
{
"globals": {
"$": false
}
}
-.fam
.fi
.if n .RE
.sp
@@ -460,11 +446,9 @@ Alternatively, suppress the \fBjquery\fP globals group (which defines \fB$\fP as
.sp
.if n .RS 4
.nf
-.fam C
{
"global\-groups": ["ecmascript", "node.js"]
}
-.fam
.fi
.if n .RE
.SH "SEE ALSO"
diff --git a/plugin/vim/quick-lint-js.vim/doc/quick-lint-js.txt b/plugin/vim/quick-lint-js.vim/doc/quick-lint-js.txt
index 98ac3fe12f..d2560df313 100644
--- a/plugin/vim/quick-lint-js.vim/doc/quick-lint-js.txt
+++ b/plugin/vim/quick-lint-js.vim/doc/quick-lint-js.txt
@@ -7,7 +7,7 @@
This file contains instructions for installing and using the quick-lint-js
plugin.
-This plugin version is designed for quick-lint-js version 0.2.0. Older or
+This plugin version is designed for quick-lint-js version 0.3.0. Older or
newer version might or might not work.
1. Installing quick-lint-js |quick-lint-js-app-install|
diff --git a/plugin/vscode-lsp/README.md b/plugin/vscode-lsp/README.md
index 605804260e..19b4b8ca16 100644
--- a/plugin/vscode-lsp/README.md
+++ b/plugin/vscode-lsp/README.md
@@ -10,6 +10,6 @@ To build the extension, run the following commands:
$ yarn
$ ./node_modules/.bin/vsce package
-This will create a file called `quick-lint-js-lsp-0.2.0.vsix`.
+This will create a file called `quick-lint-js-lsp-0.3.0.vsix`.
[VisualStudioCode]: https://code.visualstudio.com/
diff --git a/plugin/vscode-lsp/package.json b/plugin/vscode-lsp/package.json
index e26152d7d1..ed7024ebc5 100644
--- a/plugin/vscode-lsp/package.json
+++ b/plugin/vscode-lsp/package.json
@@ -2,7 +2,7 @@
"name": "quick-lint-js-lsp",
"description": "Find JavaScript bugs with quick-lint-js (LSP version, not recommended)",
"publisher": "quick-lint",
- "version": "0.2.0",
+ "version": "0.3.0",
"engines": {
"vscode": "^1.43.0"
},
diff --git a/plugin/vscode/BUILDING.md b/plugin/vscode/BUILDING.md
index 2cb3ec02eb..cc5469e1f2 100644
--- a/plugin/vscode/BUILDING.md
+++ b/plugin/vscode/BUILDING.md
@@ -13,7 +13,7 @@ Then, run the following command:
$ cd plugin/vscode/ # Navigate to this directory.
$ yarn install --force
-Finally, run the following command to create `quick-lint-js-0.2.0.vsix`:
+Finally, run the following command to create `quick-lint-js-0.3.0.vsix`:
$ ./node_modules/.bin/vsce package --baseImagesUrl https://raw.githubusercontent.com/quick-lint/quick-lint-js/master/plugin/vscode/
diff --git a/plugin/vscode/package.json b/plugin/vscode/package.json
index 9e96d34da6..ebc0e8befb 100644
--- a/plugin/vscode/package.json
+++ b/plugin/vscode/package.json
@@ -2,7 +2,7 @@
"name": "quick-lint-js",
"description": "Find JavaScript bugs with quick-lint-js",
"publisher": "quick-lint",
- "version": "0.2.0",
+ "version": "0.3.0",
"license": "SEE LICENSE IN LICENSE",
"categories": [
"Linters"
diff --git a/src/quick-lint-js/version.h b/src/quick-lint-js/version.h
index 3b90b327ab..b114d0fcc8 100644
--- a/src/quick-lint-js/version.h
+++ b/src/quick-lint-js/version.h
@@ -6,7 +6,7 @@
#include
-#define QUICK_LINT_JS_VERSION_STRING "0.2.0"
+#define QUICK_LINT_JS_VERSION_STRING "0.3.0"
#define QUICK_LINT_JS_VERSION_STRING_U8 \
QLJS_CPP_CONCAT(u8, QUICK_LINT_JS_VERSION_STRING)
diff --git a/website/public/index.ejs.html b/website/public/index.ejs.html
index 0425092d01..bc55ee6e85 100755
--- a/website/public/index.ejs.html
+++ b/website/public/index.ejs.html
@@ -147,8 +147,8 @@ quick-lint-js
Install quick-lint-js
- Latest version: 0.2.0 (beta) (released
- )
+ Latest version: 0.3.0 (beta) (released
+ )
diff --git a/website/public/install/index.ejs.html b/website/public/install/index.ejs.html
index 85b7988f34..24eabded00 100644
--- a/website/public/install/index.ejs.html
+++ b/website/public/install/index.ejs.html
@@ -159,8 +159,8 @@
Install quick-lint-js
- Latest version: 0.2.0 (beta) (released
- )
July 2, 2021)
Previous versions
@@ -1044,7 +1044,7 @@
Verify that quick-lint-js is installed:
quick-lint-js --version
-quick-lint-js version 0.2.0
+quick-lint-js version 0.3.0
@@ -1076,7 +1076,7 @@
Nix
nix-env -f https://github.com/quick-lint/quick-lint-js/archive/0.2.0.tar.gz -iA quick-lint-js
+ >nix-env -f https://github.com/quick-lint/quick-lint-js/archive/0.3.0.tar.gz -iA quick-lint-js
@@ -1085,7 +1085,7 @@
Nix
quick-lint-js --version
-quick-lint-js version 0.2.0
+quick-lint-js version 0.3.0
@@ -1232,7 +1232,7 @@
Click the "..." to open a menu.
Select Install from VSIX....
- Choose the quick-lint.quick-lint-js-0.2.0.vsix
file you
+ Choose the quick-lint.quick-lint-js-0.3.0.vsix
file you
downloaded.
@@ -1293,19 +1293,19 @@