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

Update dependencies #3

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
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
88 changes: 0 additions & 88 deletions cspell.js

This file was deleted.

22 changes: 0 additions & 22 deletions eslint-config.js

This file was deleted.

132 changes: 132 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import prettier from "eslint-plugin-prettier";
import cspellEslintPlugin from "@cspell/eslint-plugin";
import tsParser from "@typescript-eslint/parser";


const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
});
export default [
...compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
),
{
plugins: {
"@typescript-eslint": typescriptEslint,
prettier,
"@cspell": cspellEslintPlugin,
},

languageOptions: {
parser: tsParser,
},

rules: {
"no-console": 1,
"prettier/prettier": 2,

"@cspell/spellchecker": [
1,
{
autoFix: false,
checkComments: true,
checkIdentifiers: true,
checkJSXText: true,
checkStringTemplates: true,
checkStrings: true,
generateSuggestions: true,
ignoreImportProperties: true,
ignoreImports: true,
numSuggestions: 8,

cspell: {
words: [
"merkle",
"merklize",
"merklized",
"merklizer",
"merkletree",
"merklization",
"iden",
"creds",
"cred",
"claims",
"ciphertext",
"ldcontext",
"ZKPexperiance",
"polygonid",
"ipfs",
"privado",
"zeroknowledge",
"testdata",
"thid",
"groth16",
"reqs",
"secp",
"Eddsa",
"mtpv2",
"sigv2",
"authv",
"uuidv",
"sigv",
"mtpv",
"esrs",
"transak",
"multibase",
"onchain",
"credential",
"keccak",
"hindex",
"hvalue",
"metas",
"methodid",
"circom",
"XSDNS",
"nonbetween",
"crosschain",
"metadatas",
"wtns",
"zkevm",
"linea",
"nolint",
"did",
"dids",
"circomlibjs",
"BabyJub",
"BabyJubJub",
"Jubjub",
"unmarshall",
"unmarshaller",
"pubsignals",
"pubsignal",
"GROTH",
"circuitId",
"0xpolygonid",
],

ignoreRegExpList: [
"Base64",
"Base64SingleLine",
"Base64MultiLine",
"HexValues",
"HashStrings",
"Urls",
"/seedw*/g",
],
},
},
],
},
},
];
22 changes: 14 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "@iden3/eslint-config",
"version": "1.0.0",
"description": "shared ESLint config",
"main": "./eslint-config.js",
"module": "./eslint.config.mjs",
"main": "./eslint.config.mjs",
"author": "Iden3 Core team",
"license": "AGPL-3.0",
"repository": {
Expand All @@ -22,13 +23,18 @@
"publish-manual": "npm publish"
},
"peerDependencies": {
"@cspell/eslint-plugin": "^8.14.2",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^8.13.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.7.1"
"@cspell/eslint-plugin": "^8.16.0",
"@eslint/eslintrc": "^3.2.0",
"@typescript-eslint/eslint-plugin": "^8.14.0",
"@typescript-eslint/parser": "^8.14.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"prettier": "^3.3.3",
"@eslint/js": "^9.15.0",
"@types/eslint__js": "^8.42.3",
"eslint": "9.14.0",
"typescript": "^5.6.3",
"typescript-eslint": "^8.14.0"
},
"directories": {
"prettier": "prettier"
Expand Down