Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump JS linting packages #6483

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,12 @@ module.exports = {
],
'prettier/prettier': 'error',
},
overrides: [
{
files: ['*.test.ts'],
rules: {
'@typescript-eslint/no-unused-expressions': 'off',
},
},
],
};
4 changes: 3 additions & 1 deletion acvm-repo/acvm_js/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules
pkg
pkg
nodejs
web
2 changes: 1 addition & 1 deletion acvm-repo/acvm_js/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
extends: ["../../.eslintrc.js"],
extends: ['../../.eslintrc.js'],
};
8 changes: 4 additions & 4 deletions acvm-repo/acvm_js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"build": "bash ./build.sh",
"test": "env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha",
"test:browser": "web-test-runner",
"lint": "NODE_NO_WARNINGS=1 eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0",
"lint": "NODE_NO_WARNINGS=1 ESLINT_USE_FLAT_CONFIG=false eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0",
"publish": "echo 📡 publishing `$npm_package_name` && yarn npm publish",
"nightly:version": "jq --arg new_version \"-$(git rev-parse --short HEAD)$1\" '.version = .version + $new_version' package.json > package-tmp.json && mv package-tmp.json package.json",
"clean": "chmod u+w web nodejs || true && rm -rf web nodejs"
Expand All @@ -42,10 +42,10 @@
"@web/test-runner": "^0.18.1",
"@web/test-runner-playwright": "^0.11.0",
"chai": "^4.4.1",
"eslint": "^8.57.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint": "^8.57.1",
"eslint-plugin-prettier": "^5.2.1",
"mocha": "^10.2.0",
"prettier": "3.2.5",
"prettier": "3.3.3",
"ts-node": "^10.9.1",
"typescript": "^5.4.2"
}
Expand Down
2 changes: 1 addition & 1 deletion acvm-repo/acvm_js/test/node/build_info.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ it('returns the correct build info', () => {

try {
revision = child_process.execSync('git rev-parse HEAD').toString().trim();
} catch (error) {
} catch (_error) {
console.log('Failed to get revision, skipping test.');
return;
}
Expand Down
8 changes: 4 additions & 4 deletions compiler/integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"test:browser": "web-test-runner",
"test:integration:browser": "web-test-runner test/browser/**/*.test.ts",
"test:integration:browser:watch": "web-test-runner test/browser/**/*.test.ts --watch",
"lint": "NODE_NO_WARNINGS=1 eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0"
"lint": "NODE_NO_WARNINGS=1 ESLINT_USE_FLAT_CONFIG=false eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0"
},
"dependencies": {
"@aztec/bb.js": "0.61.0",
Expand All @@ -22,11 +22,11 @@
"@web/dev-server-import-maps": "^0.2.0",
"@web/test-runner": "^0.18.1",
"@web/test-runner-playwright": "^0.11.0",
"eslint": "^8.57.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint": "^8.57.1",
"eslint-plugin-prettier": "^5.2.1",
"ethers": "^6.7.1",
"hardhat": "^2.22.6",
"prettier": "3.2.5",
"prettier": "3.3.3",
"smol-toml": "^1.1.2",
"toml": "^3.0.0",
"tslog": "^4.9.2"
Expand Down
12 changes: 6 additions & 6 deletions compiler/wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@
"clean": "rm -rf ./build ./target ./dist public/fixtures/simple/target public/fixtures/with-deps/target",
"nightly:version": "jq --arg new_version \"-$(git rev-parse --short HEAD)$1\" '.version = .version + $new_version' package.json > package-tmp.json && mv package-tmp.json package.json",
"publish": "echo 📡 publishing `$npm_package_name` && yarn npm publish",
"lint": "NODE_NO_WARNINGS=1 eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0"
"lint": "NODE_NO_WARNINGS=1 ESLINT_USE_FLAT_CONFIG=false eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0"
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4-fix.0",
"@ltd/j-toml": "^1.38.0",
"@types/adm-zip": "^0.5.0",
"@types/chai": "^4",
"@types/mocha": "^10.0.6",
"@types/mocha": "^10.0.9",
"@types/mocha-each": "^2",
"@types/node": "^20.10.5",
"@types/node": "^20.17.6",
"@types/pako": "^2",
"@types/path-browserify": "^1",
"@types/readable-stream": "^4",
Expand All @@ -62,14 +62,14 @@
"browserify-fs": "^1.0.0",
"chai": "^4.4.1",
"copy-webpack-plugin": "^12.0.2",
"eslint": "^8.57.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint": "^8.57.1",
"eslint-plugin-prettier": "^5.2.1",
"html-webpack-plugin": "^5.6.0",
"memfs": "^4.6.0",
"mocha": "^10.2.0",
"mocha-each": "^2.0.1",
"path-browserify": "^1.0.1",
"prettier": "3.2.5",
"prettier": "3.3.3",
"process": "^0.11.10",
"readable-stream": "^4.4.2",
"sinon": "^17.0.1",
Expand Down
2 changes: 1 addition & 1 deletion compiler/wasm/src/noir/noir-wasm-compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export class NoirWasmCompiler {
try {
const libFile = this.#dependencyManager.findFile(path);
return await this.#fm.readFile(libFile ?? path, 'utf-8');
} catch (err) {
} catch (_err) {
return '';
}
}
Expand Down
1 change: 0 additions & 1 deletion compiler/wasm/src/noir/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export class Package {
#packagePath: string;
#srcPath: string;
#config: PackageConfig;
#version: string | null = null;

public constructor(path: string, srcDir: string, config: PackageConfig) {
this.#packagePath = path;
Expand Down
6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
"@docusaurus/module-type-aliases": "^3.5.2",
"@docusaurus/tsconfig": "^3.5.2",
"@docusaurus/types": "^3.5.2",
"@types/prettier": "^3",
"@types/prettier": "^3.0.0",
"docusaurus-plugin-typedoc": "1.0.0-next.18",
"eslint-plugin-prettier": "^5.1.3",
"prettier": "3.2.5",
"eslint-plugin-prettier": "^5.2.1",
"prettier": "3.3.3",
"serve": "^14.2.1",
"ts-node": "^10.9.1",
"typedoc": "^0.25.0",
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
"@typescript-eslint/parser": "^6.7.3",
"chai": "^4.4.1",
"cspell": "^8.3.2",
"eslint": "^8.57.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint": "^8.57.1",
"eslint-plugin-prettier": "^5.2.1",
"mocha": "^10.2.0",
"prettier": "3.2.5",
"prettier": "3.3.3",
"ts-node": "^10.9.1",
"typescript": "^5.4.2"
},
Expand Down
14 changes: 7 additions & 7 deletions tooling/noir_codegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,22 @@
"test:clean": "rm -rf ./test/codegen ./test/test_lib/export",
"prettier": "prettier 'src/**/*.ts'",
"prettier:fix": "prettier --write 'src/**/*.ts' 'test/**/*.ts'",
"lint": "NODE_NO_WARNINGS=1 eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0",
"lint": "NODE_NO_WARNINGS=1 ESLINT_USE_FLAT_CONFIG=false eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0",
"nightly:version": "jq --arg new_version \"-$(git rev-parse --short HEAD)$1\" '.version = .version + $new_version' package.json > package-tmp.json && mv package-tmp.json package.json",
"publish": "echo 📡 publishing `$npm_package_name` && yarn npm publish",
"clean": "rm -rf ./lib"
},
"devDependencies": {
"@noir-lang/noir_js": "workspace:*",
"@types/chai": "^4",
"@types/mocha": "^10.0.1",
"@types/node": "^20.6.2",
"@types/prettier": "^3",
"@types/mocha": "^10.0.9",
"@types/node": "^20.17.6",
"@types/prettier": "^3.0.0",
"chai": "^4.4.1",
"eslint": "^8.57.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint": "^8.57.1",
"eslint-plugin-prettier": "^5.2.1",
"mocha": "^10.2.0",
"prettier": "3.2.5",
"prettier": "3.3.3",
"ts-node": "^10.9.1",
"tsx": "^4.6.2",
"typescript": "^5.4.2"
Expand Down
14 changes: 7 additions & 7 deletions tooling/noir_js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,21 @@
"test:node:cjs": "mocha --timeout 25000 --exit --config ./.mocharc.cjs.json",
"prettier": "prettier 'src/**/*.ts'",
"prettier:fix": "prettier --write 'src/**/*.ts' 'test/**/*.ts'",
"lint": "NODE_NO_WARNINGS=1 eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0",
"lint": "NODE_NO_WARNINGS=1 ESLINT_USE_FLAT_CONFIG=false eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0",
"nightly:version": "jq --arg new_version \"-$(git rev-parse --short HEAD)$1\" '.version = .version + $new_version' package.json > package-tmp.json && mv package-tmp.json package.json",
"publish": "echo 📡 publishing `$npm_package_name` && yarn npm publish",
"clean": "rm -rf ./lib"
},
"devDependencies": {
"@types/chai": "^4",
"@types/mocha": "^10.0.1",
"@types/node": "^20.6.2",
"@types/prettier": "^3",
"@types/mocha": "^10.0.9",
"@types/node": "^20.17.6",
"@types/prettier": "^3.0.0",
"chai": "^4.4.1",
"eslint": "^8.57.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint": "^8.57.1",
"eslint-plugin-prettier": "^5.2.1",
"mocha": "^10.2.0",
"prettier": "3.2.5",
"prettier": "3.3.3",
"ts-node": "^10.9.1",
"tsc-multi": "^1.1.0",
"tsx": "^4.6.2",
Expand Down
2 changes: 1 addition & 1 deletion tooling/noir_js/test/node/smoke.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ it('0x prefixed string input for inputs will throw', async () => {
try {
await new Noir(assert_lt_program).execute(inputsHexPrefix);
expect.fail('Expected generatedWitness to throw, due to inputs being prefixed with 0x. Currently not supported');
} catch (error) {
} catch (_error) {
// Successfully errored due to 0x not being supported. Update this test once/if we choose
// to support 0x prefixed inputs.
}
Expand Down
1 change: 1 addition & 0 deletions tooling/noir_js_types/.eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
lib
10 changes: 5 additions & 5 deletions tooling/noir_js_types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"build": "yarn run build:cjs && yarn run build:esm",
"nightly:version": "jq --arg new_version \"-$(git rev-parse --short HEAD)$1\" '.version = .version + $new_version' package.json > package-tmp.json && mv package-tmp.json package.json",
"publish": "echo 📡 publishing `$npm_package_name` && yarn npm publish",
"lint": "NODE_NO_WARNINGS=1 eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0",
"lint": "NODE_NO_WARNINGS=1 ESLINT_USE_FLAT_CONFIG=false eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0",
"clean": "rm -rf ./lib"
},
"exports": {
Expand All @@ -39,10 +39,10 @@
}
},
"devDependencies": {
"@types/prettier": "^3",
"eslint": "^8.57.0",
"eslint-plugin-prettier": "^5.1.3",
"prettier": "3.2.5",
"@types/prettier": "^3.0.0",
"eslint": "^8.57.1",
"eslint-plugin-prettier": "^5.2.1",
"prettier": "3.3.3",
"typescript": "^5.4.2"
}
}
4 changes: 2 additions & 2 deletions tooling/noirc_abi_wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"clean": "chmod u+w web nodejs || true && rm -rf ./nodejs ./web ./target ./result",
"nightly:version": "jq --arg new_version \"-$(git rev-parse --short HEAD)$1\" '.version = .version + $new_version' package.json > package-tmp.json && mv package-tmp.json package.json",
"publish": "echo 📡 publishing `$npm_package_name` && yarn npm publish",
"lint": "NODE_NO_WARNINGS=1 eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0"
"lint": "NODE_NO_WARNINGS=1 ESLINT_USE_FLAT_CONFIG=false eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0"
},
"dependencies": {
"@noir-lang/types": "workspace:*"
Expand All @@ -43,7 +43,7 @@
"@web/dev-server-esbuild": "^0.3.6",
"@web/test-runner": "^0.18.1",
"@web/test-runner-playwright": "^0.11.0",
"eslint": "^8.57.0",
"eslint": "^8.57.1",
"mocha": "^10.2.0"
}
}
Loading
Loading