UNPKG

pontem-types-bundle

Version:

Bundled types to instantiate the Polkadot JS api with a Pontem network

38 lines (37 loc) 1.38 kB
module.exports = { env: { jest: true, node: true, }, // Specifies the ESLint parser extends: [ 'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin 'plugin:prettier/recommended', // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array. ], parser: '@typescript-eslint/parser', parserOptions: { ecmaVersion: 2019, // Allows for the parsing of modern ECMAScript features sourceType: 'module', // Allows for the use of imports }, plugins: [], rules: { '@typescript-eslint/ban-ts-comment': 'warn', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/no-unused-vars': 'warn', '@typescript-eslint/no-use-before-define': 'off', 'object-shorthand': [2, 'always'], // Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs // e.g. "@typescript-eslint/explicit-function-return-type": "off", // rules for https://github.com/prettier/eslint-plugin-prettier 'prettier/prettier': [ 'error', { // keep this in sync with prettier.js (or .prettierrc) semi: true, singleQuote: true, tabWidth: 2, trailingComma: 'all', }, ], }, };