bump eslint
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
994700eed5
commit
fcaaffbf8c
|
@ -0,0 +1,43 @@
|
||||||
|
import typescriptEslint from "@typescript-eslint/eslint-plugin";
|
||||||
|
import globals from "globals";
|
||||||
|
import tsParser from "@typescript-eslint/parser";
|
||||||
|
import path from "node:path";
|
||||||
|
import { fileURLToPath } from "node:url";
|
||||||
|
import js from "@eslint/js";
|
||||||
|
import { FlatCompat } from "@eslint/eslintrc";
|
||||||
|
|
||||||
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
|
const __dirname = path.dirname(__filename);
|
||||||
|
const compat = new FlatCompat({
|
||||||
|
baseDirectory: __dirname,
|
||||||
|
recommendedConfig: js.configs.recommended,
|
||||||
|
allConfig: js.configs.all
|
||||||
|
});
|
||||||
|
|
||||||
|
export default [{
|
||||||
|
ignores: ["ts/client/src/mango_v4.ts", "ts/client/src/scripts"],
|
||||||
|
}, ...compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"), {
|
||||||
|
plugins: {
|
||||||
|
"@typescript-eslint": typescriptEslint,
|
||||||
|
},
|
||||||
|
|
||||||
|
languageOptions: {
|
||||||
|
globals: {
|
||||||
|
...globals.browser,
|
||||||
|
...globals.node,
|
||||||
|
},
|
||||||
|
|
||||||
|
parser: tsParser,
|
||||||
|
ecmaVersion: 12,
|
||||||
|
sourceType: "module",
|
||||||
|
},
|
||||||
|
|
||||||
|
rules: {
|
||||||
|
"linebreak-style": ["error", "unix"],
|
||||||
|
semi: ["error", "always"],
|
||||||
|
"@typescript-eslint/no-non-null-assertion": 0,
|
||||||
|
"@typescript-eslint/ban-ts-comment": 0,
|
||||||
|
"@typescript-eslint/no-explicit-any": 0,
|
||||||
|
"@typescript-eslint/explicit-function-return-type": "warn",
|
||||||
|
},
|
||||||
|
}];
|
19
package.json
19
package.json
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@blockworks-foundation/mango-v4",
|
"name": "@blockworks-foundation/mango-v4",
|
||||||
"version": "0.32.5",
|
"version": "0.32.7",
|
||||||
"description": "Typescript Client for mango-v4 program.",
|
"description": "Typescript Client for mango-v4 program.",
|
||||||
"repository": "https://github.com/blockworks-foundation/mango-v4",
|
"repository": "https://github.com/blockworks-foundation/mango-v4",
|
||||||
"author": {
|
"author": {
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
"example1-user": "ts-node ts/client/src/scripts/example1-user.ts",
|
"example1-user": "ts-node ts/client/src/scripts/example1-user.ts",
|
||||||
"example1-admin": "ts-node ts/client/src/scripts/example1-admin.ts",
|
"example1-admin": "ts-node ts/client/src/scripts/example1-admin.ts",
|
||||||
"format": "prettier --check ./ts",
|
"format": "prettier --check ./ts",
|
||||||
"lint": "eslint ./ts/client/src --ext ts --ext tsx --ext js --quiet",
|
"lint": "eslint ./ts/client/src",
|
||||||
"typecheck": "tsc --noEmit --pretty",
|
"typecheck": "tsc --noEmit --pretty",
|
||||||
"prepublishOnly": "yarn validate && yarn build",
|
"prepublishOnly": "yarn validate && yarn build",
|
||||||
"deduplicate": "npx yarn-deduplicate --list --fail",
|
"deduplicate": "npx yarn-deduplicate --list --fail",
|
||||||
|
@ -38,18 +38,18 @@
|
||||||
"@types/chai": "^4.3.0",
|
"@types/chai": "^4.3.0",
|
||||||
"@types/mocha": "^9.1.0",
|
"@types/mocha": "^9.1.0",
|
||||||
"@types/node": "^18.11.18",
|
"@types/node": "^18.11.18",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.32.0",
|
"@typescript-eslint/eslint-plugin": "^7.17.0",
|
||||||
"@typescript-eslint/parser": "^5.32.0",
|
"@typescript-eslint/parser": "^7.17.0",
|
||||||
"axios": "^1.4.0",
|
"axios": "^1.4.0",
|
||||||
"chai": "^4.3.4",
|
"chai": "^4.3.4",
|
||||||
"cli-table3": "^0.6.3",
|
"cli-table3": "^0.6.3",
|
||||||
"console-table-printer": "^2.11.1",
|
"console-table-printer": "^2.11.1",
|
||||||
"eslint": "^7.28.0",
|
"eslint": "^9.8.0",
|
||||||
"eslint-config-prettier": "^7.2.0",
|
"eslint-config-prettier": "^9.1.0",
|
||||||
"fast-csv": "^4.3.6",
|
"fast-csv": "^4.3.6",
|
||||||
"js-sha3": "0.9.2",
|
"js-sha3": "0.9.2",
|
||||||
"mocha": "^9.1.3",
|
"mocha": "^9.1.3",
|
||||||
"prettier": "^2.0.5",
|
"prettier": "^3.3.3",
|
||||||
"secp256k1": "5.0.0",
|
"secp256k1": "5.0.0",
|
||||||
"ts-mocha": "^10.0.0",
|
"ts-mocha": "^10.0.0",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
|
@ -66,6 +66,8 @@
|
||||||
"@blockworks-foundation/mango-v4-settings": "0.14.24",
|
"@blockworks-foundation/mango-v4-settings": "0.14.24",
|
||||||
"@blockworks-foundation/mangolana": "0.0.18",
|
"@blockworks-foundation/mangolana": "0.0.18",
|
||||||
"@coral-xyz/anchor": "^0.28.1-beta.2",
|
"@coral-xyz/anchor": "^0.28.1-beta.2",
|
||||||
|
"@eslint/eslintrc": "^3.1.0",
|
||||||
|
"@eslint/js": "^9.8.0",
|
||||||
"@iarna/toml": "2.2.5",
|
"@iarna/toml": "2.2.5",
|
||||||
"@project-serum/serum": "0.13.65",
|
"@project-serum/serum": "0.13.65",
|
||||||
"@pythnetwork/client": "~2.14.0",
|
"@pythnetwork/client": "~2.14.0",
|
||||||
|
@ -89,7 +91,8 @@
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"**/@solana/web3.js/node-fetch": "npm:@blockworks-foundation/node-fetch@2.6.11",
|
"**/@solana/web3.js/node-fetch": "npm:@blockworks-foundation/node-fetch@2.6.11",
|
||||||
"**/cross-fetch/node-fetch": "npm:@blockworks-foundation/node-fetch@2.6.11",
|
"**/cross-fetch/node-fetch": "npm:@blockworks-foundation/node-fetch@2.6.11",
|
||||||
"**/@blockworks-foundation/mangolana/node-fetch": "npm:@blockworks-foundation/node-fetch@2.6.11"
|
"**/@blockworks-foundation/mangolana/node-fetch": "npm:@blockworks-foundation/node-fetch@2.6.11",
|
||||||
|
"strip-ansi": "6.0.1"
|
||||||
},
|
},
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue