diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 000000000..327e1b22a --- /dev/null +++ b/.eslintignore @@ -0,0 +1,2 @@ +tests/ +__tests__/ diff --git a/eslint.config.cjs b/.eslintrc.cjs similarity index 94% rename from eslint.config.cjs rename to .eslintrc.cjs index e20494fe7..35dbfef17 100644 --- a/eslint.config.cjs +++ b/.eslintrc.cjs @@ -1,7 +1,9 @@ +/* eslint-env node */ +require('@rushstack/eslint-patch/modern-module-resolution') + /** @type import('eslint').Linter.Config **/ module.exports = { root: true, - files: ['*.ts', '*.js', '*.vue'], env: { browser: true, node: true, @@ -49,6 +51,5 @@ module.exports = { typescript: true, node: true } - }, - ignores: ['tests/', '__tests__/'] + } } diff --git a/package.json b/package.json index f9c65d5ff..9a1e3b012 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "wallets:data:generate": "node scripts/wallets.mjs", "wallets:types:generate": "swagger-typescript-api -p ./adamant-wallets/specification/openapi.json -o ./src/types/wallets -n index.ts --no-client", "build": "vue-tsc && vite build --config vite-pwa.config.ts", - "lint": "eslint --fix ./src", + "lint": "eslint --ext .ts,.js,.vue --fix ./src", "prettify": "prettier --write src/", "typecheck": "vue-tsc --noEmit", "schema:generate": "node scripts/adamant-schema/generate.mjs", @@ -122,6 +122,7 @@ "@openapitools/openapi-generator-cli": "^2.13.5", "@rollup/plugin-commonjs": "^26.0.1", "@rollup/plugin-inject": "^5.0.5", + "@rushstack/eslint-patch": "^1.10.4", "@types/core-js": "^2.5.8", "@types/dompurify": "^3.0.5", "@types/emoji-mart": "^3.0.14",