UNPKG

techdadi-express-starter-ts

Version:

CLI for creating a new Express TypeScript starter project

36 lines (35 loc) 930 B
module.exports = { parser: '@typescript-eslint/parser', extends: [ 'eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier', 'plugin:prettier/recommended', ], parserOptions: { ecmaVersion: 2020, sourceType: 'module', }, rules: { 'prettier/prettier': 'error', 'spaced-comment': 'off', 'no-console': 'warn', 'consistent-return': 'off', 'func-names': 'off', 'object-shorthand': 'off', 'no-process-exit': 'off', 'no-param-reassign': 'off', 'no-return-await': 'off', 'no-underscore-dangle': 'off', 'class-methods-use-this': 'off', 'prefer-destructuring': ['error', { object: true, array: false }], '@typescript-eslint/no-explicit-any': [ 'warn', { argsIgnorePattern: 'req|res|next|val' }, ], '@typescript-eslint/no-unused-vars': [ 'error', { argsIgnorePattern: 'req|res|next|val' }, ], }, };