Skip to content

Commit

Permalink
misc tightening of linting (#2615)
Browse files Browse the repository at this point in the history
incidental

## Description

Adopting `verbatimModuleSyntax` in agoric-sdk required a lot of changes
so it thought it worthwhile to adopt here before more might be
necessary.

I made several other lint tooling bumps and config tightening as well.

### Security Considerations

none

### Scaling Considerations

none

### Documentation Considerations

none

### Testing Considerations

CI

### Compatibility Considerations

none

### Upgrade Considerations

none, dev deps
  • Loading branch information
turadg authored Oct 25, 2024
2 parents 4ca4028 + 7b5d004 commit d6c6c69
Show file tree
Hide file tree
Showing 49 changed files with 319 additions and 578 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"engines": {
"node": ">=16"
},
"packageManager": "yarn@4.4.0",
"packageManager": "yarn@4.5.1",
"devDependencies": {
"@jessie.js/eslint-plugin": "^0.4.1",
"@octokit/core": "^3.4.0",
Expand All @@ -18,13 +18,13 @@
"eslint-config-jessie": "^0.0.6",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsdoc": "^48.2.5",
"eslint-plugin-jsdoc": "^50.4.3",
"lerna": "^8.1.8",
"prettier": "^3.2.5",
"prettier": "^3.3.3",
"type-coverage": "^2.29.1",
"typedoc": "^0.26.6",
"typedoc-plugin-markdown": "^4.2.5",
"typescript": "~5.6.2",
"typescript": "~5.6.3",
"typescript-eslint": "^7.3.1",
"zx": "^8.1.8"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/base64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "~5.6.2"
"prettier": "^3.3.3",
"typescript": "~5.6.3"
},
"files": [
"./*.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/bundle-source/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"ava": "^6.1.3",
"c8": "^7.14.0",
"eslint": "^8.57.0",
"typescript": "~5.6.2"
"typescript": "~5.6.3"
},
"keywords": [],
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/captp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@endo/ses-ava": "workspace:^",
"ava": "^6.1.3",
"c8": "^7.14.0",
"typescript": "~5.6.2"
"typescript": "~5.6.3"
},
"dependencies": {
"@endo/errors": "workspace:^",
Expand Down
4 changes: 2 additions & 2 deletions packages/check-bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "~5.6.2"
"prettier": "^3.3.3",
"typescript": "~5.6.3"
},
"files": [
"./*.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/cjs-module-analyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "~5.6.2"
"prettier": "^3.3.3",
"typescript": "~5.6.3"
},
"files": [
"./*.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"execa": "^9.3.0",
"prettier": "^3.2.5",
"typescript": "~5.6.2"
"prettier": "^3.3.3",
"typescript": "~5.6.3"
},
"files": [
"./*.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/test/_types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Execa } from 'execa';

export type Expectation = {
stdout: RegExp | string | undefined;
stderr: RegExp | string | undefined;
stderr?: RegExp | string | undefined;
};
export type TestCommand = (
command: ReturnType<Execa>,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/test/demo/confined-script.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @import {TestRoutine} from '../types */
/** @import {TestRoutine} from '../_types.js'; */

/** @type {TestRoutine} */
export const section = async (execa, testLine) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"ava": "^6.1.3",
"c8": "^7.14.0",
"tsd": "^0.31.2",
"typescript": "~5.6.2"
"typescript": "~5.6.3"
},
"files": [
"./*.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/compartment-mapper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "~5.6.2"
"prettier": "^3.3.3",
"typescript": "~5.6.3"
},
"files": [
"./*.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/daemon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "~5.6.2"
"prettier": "^3.3.3",
"typescript": "~5.6.3"
},
"files": [
"./*.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/daemon/src/worker-node-powers.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { makeNodeReader, makeNodeWriter } from '@endo/stream-node';

/** @import { MignonicPowers } from './types.js' } */
/** @import {MignonicPowers} from './types.js'; */

/**
* @param {object} modules
Expand Down
4 changes: 2 additions & 2 deletions packages/env-options/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "~5.6.2"
"prettier": "^3.3.3",
"typescript": "~5.6.3"
},
"files": [
"./*.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"c8": "^7.14.0",
"ses0_18_3": "npm:[email protected]",
"tsd": "^0.31.2",
"typescript": "~5.6.2"
"typescript": "~5.6.3"
},
"files": [
"./*.d.ts",
Expand Down
13 changes: 5 additions & 8 deletions packages/eslint-plugin/lib/configs/style.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
module.exports = {
extends: ['airbnb-base', 'plugin:jsdoc/recommended', 'prettier'],
extends: [
'airbnb-base',
'plugin:jsdoc/recommended-typescript-flavor',
'prettier',
],
rules: {
quotes: [
'error',
Expand All @@ -22,13 +26,6 @@ module.exports = {
'prefer-regex-literals': 'off',
'no-else-return': 'off',
'no-console': 'off',
'no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],
'no-return-assign': 'off',
'no-param-reassign': 'off',
'no-promise-executor-return': 'off', // common to return setTimeout(), we know the value won't be accessible
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"dependencies": {
"requireindex": "~1.1.0",
"tsutils": "~3.21.0",
"typescript": "~5.6.2",
"typescript": "~5.6.3",
"typescript-eslint": "^7.3.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/evasive-transform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"eslint": "^8.57.0",
"rollup": "^2.79.1",
"tsd": "^0.31.2",
"typescript": "~5.6.2"
"typescript": "~5.6.3"
},
"files": [
"./*.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/eventual-send/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"ava": "^6.1.3",
"c8": "^7.14.0",
"tsd": "^0.31.2",
"typescript": "~5.6.2"
"typescript": "~5.6.3"
},
"keywords": [
"eventual send",
Expand Down
4 changes: 2 additions & 2 deletions packages/exo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "~5.6.2"
"prettier": "^3.3.3",
"typescript": "~5.6.3"
},
"files": [
"./*.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/far/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@endo/ses-ava": "workspace:^",
"ava": "^6.1.3",
"c8": "^7.14.0",
"typescript": "~5.6.2"
"typescript": "~5.6.3"
},
"keywords": [
"eventual send",
Expand Down
2 changes: 1 addition & 1 deletion packages/immutable-arraybuffer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"ava": "^6.1.3",
"c8": "^7.14.0",
"tsd": "^0.31.2",
"typescript": "~5.6.2"
"typescript": "~5.6.3"
},
"files": [
"./*.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/import-bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@endo/ses-ava": "workspace:^",
"ava": "^6.1.3",
"c8": "^7.14.0",
"typescript": "~5.6.2"
"typescript": "~5.6.3"
},
"files": [
"./*.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/init/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"devDependencies": {
"@endo/compartment-mapper": "workspace:^",
"ava": "^6.1.3",
"typescript": "~5.6.2"
"typescript": "~5.6.3"
},
"dependencies": {
"@endo/base64": "workspace:^",
Expand Down
4 changes: 2 additions & 2 deletions packages/lp32/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "~5.6.2"
"prettier": "^3.3.3",
"typescript": "~5.6.3"
},
"files": [
"./*.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/marshal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@fast-check/ava": "^1.1.5",
"ava": "^6.1.3",
"c8": "^7.14.0",
"typescript": "~5.6.2"
"typescript": "~5.6.3"
},
"files": [
"./*.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/memoize/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "~5.6.2"
"prettier": "^3.3.3",
"typescript": "~5.6.3"
},
"files": [
"./*.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/module-source/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "~5.6.2"
"prettier": "^3.3.3",
"typescript": "~5.6.3"
},
"files": [
"./*.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/nat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"prettier": "^3.3.3",
"ses": "workspace:^",
"typescript": "~5.6.2"
"typescript": "~5.6.3"
},
"directories": {
"test": "test"
Expand Down
4 changes: 2 additions & 2 deletions packages/netstring/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "~5.6.2"
"prettier": "^3.3.3",
"typescript": "~5.6.3"
},
"files": [
"./*.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/pass-style/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "~5.6.2"
"prettier": "^3.3.3",
"typescript": "~5.6.3"
},
"files": [
"./*.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/pass-style/src/types.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { expectAssignable, expectType, expectNotType } from 'tsd';
import { Far } from './make-far.js';
import { passStyleOf } from './passStyleOf.js';
import { makeTagged } from './makeTagged.js';
import { CopyTagged, Passable, PassStyle } from './types.js';
import type { CopyTagged, Passable, PassStyle } from './types.js';
import { PASS_STYLE } from './passStyle-helpers.js';

const remotable = Far('foo', {});
Expand Down
4 changes: 2 additions & 2 deletions packages/patterns/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "~5.6.2"
"prettier": "^3.3.3",
"typescript": "~5.6.3"
},
"files": [
"./*.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/promise-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "~5.6.2"
"prettier": "^3.3.3",
"typescript": "~5.6.3"
},
"files": [
"./*.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/ses-ava/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "~5.6.2"
"prettier": "^3.3.3",
"typescript": "~5.6.3"
},
"files": [
"./*.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/ses/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"prettier": "^3.3.3",
"terser": "^5.16.6",
"tsd": "^0.31.2",
"typescript": "~5.6.2"
"typescript": "~5.6.3"
},
"files": [
"./*.d.ts",
Expand Down
Loading

0 comments on commit d6c6c69

Please sign in to comment.