Skip to main content
Module

x/libauth/.eslintrc

An ultra-lightweight, zero-dependency JavaScript library for Bitcoin Cash, Bitcoin, and Bitauth applications.
Go to Latest
File
{ "root": true, "parser": "@typescript-eslint/parser", "parserOptions": { "project": "./tsconfig.json" }, "env": { "es6": true }, "ignorePatterns": ["node_modules", "build", "coverage"], "extends": ["bitauth"], "globals": { "BigInt": true, "console": true, "WebAssembly": true }, "rules": { "@typescript-eslint/prefer-readonly-parameter-types": "off", // TODO: enable when Uint8Array can be made readonly, see `Immutable` type "@typescript-eslint/no-unused-expressions": "off", // TODO: bug causes crash in eslint 7.2.0 – re-enable later "@typescript-eslint/naming-convention": [ "error", { "selector": "default", "format": ["camelCase"], "leadingUnderscore": "allow" }, { "selector": "variable", "format": ["camelCase", "UPPER_CASE"], "leadingUnderscore": "allow" }, { "selector": "typeLike", "format": ["PascalCase"] }, { "selector": "enumMember", "format": ["camelCase", "UPPER_CASE"] } // Allow UPPER_CASE for opcodes ], "import/no-internal-modules": ["error"], "import/extensions": ["error", "always"] }, "overrides": [ /* * Require all test files to import functionality from the entry point * (to test that exports are available to consumers as expected). */ { "files": ["**.spec.ts", "**.bench.ts"], "rules": { "import/no-restricted-paths": [ "error", { "zones": [ { "target": "./src", "from": "./src/lib", "except": ["lib.ts", "(.*).helper.ts", "(.*).json"] } ] } ], "functional/no-expression-statement": "off", "@typescript-eslint/naming-convention": "off", "@typescript-eslint/no-magic-numbers": "off", "functional/immutable-data": "off", "functional/no-return-void": "off" } } ]}