Skip to content

Instantly share code, notes, and snippets.

@dorfo-dev
Created April 8, 2021 12:02
Show Gist options
  • Select an option

  • Save dorfo-dev/99910e4ee1d53b39b0f6af39da11f71c to your computer and use it in GitHub Desktop.

Select an option

Save dorfo-dev/99910e4ee1d53b39b0f6af39da11f71c to your computer and use it in GitHub Desktop.

Revisions

  1. dorfo-dev created this gist Apr 8, 2021.
    23 changes: 23 additions & 0 deletions .eslintrc.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    module.exports = {
    parser: '@typescript-eslint/parser',
    parserOptions: {
    project: 'tsconfig.json',
    sourceType: 'module',
    },
    plugins: ['@typescript-eslint/eslint-plugin'],
    extends: [
    'plugin:@typescript-eslint/recommended',
    'prettier/@typescript-eslint',
    ],
    root: true,
    env: {
    node: true,
    jest: true,
    },
    rules: {
    '@typescript-eslint/interface-name-prefix': 'off',
    '@typescript-eslint/explicit-function-return-type': 'off',
    '@typescript-eslint/explicit-module-boundary-types': 'off',
    '@typescript-eslint/no-explicit-any': 'off',
    },
    };
    8 changes: 8 additions & 0 deletions .prettierrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    {
    "semi": true,
    "trailingComma": "all",
    "singleQuote": false,
    "printWidth": 180,
    "tabWidth": 2,
    "arrowParens": "avoid"
    }