UNPKG

soroswap-utils

Version:

Utilities for interacting with Soroswap, the decentralized exchange (DEX) on Soroban, which is the smart contracts platform of the Stellar network.

66 lines (54 loc) 1.81 kB
const maximumLineLength = 100; module.exports = { extends: [ "hardcore", "hardcore/ts", "hardcore/jest", "plugin:@typescript-eslint/recommended-type-checked", "prettier", ], ignorePatterns: ["postinstall.js"], parserOptions: { project: "./tsconfig.eslint.json", sourceType: "module", }, plugins: ["prettier"], root: true, rules: { "@stylistic/max-len": [ "error", { code: maximumLineLength, comments: 80, ignorePattern: String.raw`^\s*//\s*eslint-disable`, }, ], "@typescript-eslint/consistent-type-assertions": [ "error", { assertionStyle: "as", objectLiteralTypeAssertions: "allow" }, ], "@typescript-eslint/no-shadow": ["error", { allow: ["expect"] }], "@typescript-eslint/no-throw-literal": "off", "@typescript-eslint/no-unsafe-type-assertion": "off", "@typescript-eslint/non-nullable-type-assertion-style": "off", "@typescript-eslint/strict-boolean-expressions": "off", "@typescript-eslint/switch-exhaustiveness-check": [ "error", { considerDefaultExhaustiveForUnions: true }, ], "compat/compat": "off", "etc/no-misused-generics": "off", "func-style": ["error", "expression", { allowArrowFunctions: true }], "no-console": "off", "prettier/prettier": ["error", { printWidth: maximumLineLength, tabWidth: 4 }], "putout/putout": "off", "unicorn/import-index": "off", }, settings: { "import/resolver": { typescript: { project: "./tsconfig.eslint.json", }, }, }, };