UNPKG

@90poe/jest-performant-warnings-stats-reporter

Version:

A flexible jest reporter that provides ability to show statistics of warnings and group them

65 lines (61 loc) 1.82 kB
module.exports = { // environments script is design to run in env: { commonjs: true, jest: true, es2021: true, }, extends: [ // recommended config according to [link](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#recommended-configs) 'eslint:recommended', 'plugin:@typescript-eslint/recommended', // Airbnb style for typescript without react support 'airbnb-typescript/base', // Jest 'plugin:jest/recommended', 'plugin:jest-formatting/recommended', /** * Prettier-related extends should always be * [last](https://github.com/prettier/eslint-plugin-prettier#recommended-configuration). */ 'plugin:prettier/recommended', 'prettier', ], parser: '@typescript-eslint/parser', parserOptions: { ecmaVersion: 12, project: './tsconfig.json', }, plugins: [ '@typescript-eslint', 'simple-import-sort', 'jest-formatting', 'jest', ], rules: { 'import/prefer-default-export': 'off', 'no-console': 'off', 'no-underscore-dangle': 'off', 'class-methods-use-this': 'off', '@typescript-eslint/naming-convention': 'off', 'simple-import-sort/imports': 'error', 'simple-import-sort/exports': 'error', 'arrow-body-style': ['error', 'as-needed'], quotes: ['error', 'single'], 'newline-before-return': 'error', 'padding-line-between-statements': [ 'error', { blankLine: 'always', prev: '*', next: 'return' }, { blankLine: 'always', prev: ['const', 'let', 'var'], next: '*' }, { blankLine: 'any', prev: ['const', 'let', 'var'], next: ['const', 'let', 'var'], }, ], 'no-warning-comments': [ 'error', { terms: ['todo', 'fixme'], location: 'anywhere' }, ], }, };