Skip to content

Commit

Permalink
Prepare for 0.3.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
strager committed Jul 3, 2021
1 parent 1d1a9fe commit 0a4a8b4
Show file tree
Hide file tree
Showing 24 changed files with 58 additions and 75 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tag-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion Formula/quick-lint-js.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion dist/arch/PKGBUILD-dev
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Contributor: Shivam Mehta <sm.cse at gmail dot com>

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)
Expand Down
2 changes: 1 addition & 1 deletion dist/arch/PKGBUILD-git
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Contributor: Shivam Mehta <sm.cse at gmail dot com>

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)
Expand Down
2 changes: 1 addition & 1 deletion dist/arch/PKGBUILD-release
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Contributor: Shivam Mehta <sm.cse at gmail dot com>

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)
Expand Down
8 changes: 4 additions & 4 deletions dist/debian/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion dist/debian/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions dist/debian/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
quick-lint-js (0.3.0-1) unstable; urgency=medium

* New beta release.

-- Matthew "strager" Glazar <[email protected]> Fri, 02 Jul 2021 19:20:46 PM -0700

quick-lint-js (0.2.0-1) unstable; urgency=medium

* New beta release.
Expand Down
2 changes: 1 addition & 1 deletion dist/nix/quick-lint-js.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

mkDerivation {
pname = "quick-lint-js";
version = "0.2.0";
version = "0.3.0";

src = ../../.;
unpackPhase = null;
Expand Down
8 changes: 4 additions & 4 deletions dist/npm/BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
2 changes: 1 addition & 1 deletion dist/npm/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 3 additions & 2 deletions docs/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/cli.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion docs/config.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
16 changes: 4 additions & 12 deletions docs/man/quick-lint-js.1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
26 changes: 5 additions & 21 deletions docs/man/quick-lint-js.config.5
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -189,7 +187,6 @@ For example:
.sp
.if n .RS 4
.nf
.fam C
{
" ": "this file configures quick\-lint\-js",
"globals": {
Expand All @@ -203,7 +200,6 @@ For example:
"chart": true
}
}
.fam
.fi
.if n .RE
.sp
Expand All @@ -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",
Expand All @@ -224,7 +219,6 @@ A \f(CRpackage.json\fP file might look like this:
}
}
}
.fam
.fi
.if n .RE
.SH "OPTIONS"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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",
Expand All @@ -420,7 +411,6 @@ In this case, the application configures quick\-lint\-js in its \f(CRpackage.jso
}
}
}
.fam
.fi
.if n .RE
.sp
Expand All @@ -432,39 +422,33 @@ 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
If you are not seeing E002, E033, E057, or E059 (false negative), but you want to see E057 "use of undeclared variable: $", use one of the following configuration in \f(CRquick\-lint\-js.config\fP:
.sp
.if n .RS 4
.nf
.fam C
{
"globals": {
"$": false
}
}
.fam
.fi
.if n .RE
.sp
Alternatively, suppress the \fBjquery\fP globals group (which defines \fB$\fP as a global variable) by enabling only the environments you use in your project with this \f(CRquick\-lint\-js.config\fP:
.sp
.if n .RS 4
.nf
.fam C
{
"global\-groups": ["ecmascript", "node.js"]
}
.fam
.fi
.if n .RE
.SH "SEE ALSO"
Expand Down
2 changes: 1 addition & 1 deletion plugin/vim/quick-lint-js.vim/doc/quick-lint-js.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down
Loading

0 comments on commit 0a4a8b4

Please sign in to comment.