@damien-thiesson/typeorm-fixtures-cli
Version:
TypeORM fixtures CLI - Fork with disabled faker in production
153 lines (149 loc) ⢠3.88 kB
JavaScript
/*
š Hi! This file was autogenerated by tslint-to-eslint-config.
https://github.com/typescript-eslint/tslint-to-eslint-config
It represents the closest reasonable ESLint configuration to this
project's original TSLint configuration.
We recommend eventually switching this configuration to extend from
the recommended rulesets in typescript-eslint.
https://github.com/typescript-eslint/tslint-to-eslint-config/blob/master/docs/FAQs.md
Happy linting! š
*/
module.exports = {
env: {
es6: true,
},
ignorePatterns: ['coverage/**', 'dist/**', '**/*.js'],
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
},
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
rules: {
'@typescript-eslint/consistent-type-assertions': 'off',
'@typescript-eslint/dot-notation': 'off',
'@typescript-eslint/explicit-member-accessibility': [
'off',
{
accessibility: 'explicit',
},
],
'@typescript-eslint/member-delimiter-style': [
'error',
{
multiline: {
delimiter: 'semi',
requireLast: true,
},
singleline: {
delimiter: 'semi',
requireLast: false,
},
},
],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-inferrable-types': 'error',
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/no-shadow': [
'error',
{
hoist: 'all',
},
],
'@typescript-eslint/no-unused-expressions': 'error',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/prefer-namespace-keyword': 'error',
'@typescript-eslint/semi': ['error', 'always'],
'@typescript-eslint/triple-slash-reference': 'off',
'@typescript-eslint/type-annotation-spacing': 'error',
'brace-style': ['error', '1tbs'],
curly: 'error',
'default-case': 'error',
'dot-notation': 'off',
'eol-last': 'error',
eqeqeq: ['error', 'smart'],
'id-denylist': [
'error',
'any',
'Number',
'number',
'String',
'string',
'Boolean',
'boolean',
'Undefined',
'undefined',
],
'id-match': 'error',
'no-bitwise': 'off',
'no-caller': 'error',
'no-cond-assign': 'error',
'no-console': [
'error',
{
allow: [
'warn',
'dir',
'timeLog',
'assert',
'clear',
'count',
'countReset',
'group',
'groupEnd',
'table',
'dirxml',
'error',
'groupCollapsed',
'Console',
'profile',
'profileEnd',
'timeStamp',
'context',
],
},
],
'no-debugger': 'error',
'no-empty': 'error',
'no-empty-function': ['error', { allow: ['constructors'] }],
'no-eval': 'off',
'no-fallthrough': 'error',
'no-invalid-this': 'error',
'no-multiple-empty-lines': 'off',
'no-new-wrappers': 'error',
'no-redeclare': 'error',
'no-shadow': 'error',
'no-trailing-spaces': 'error',
'no-unused-expressions': 'error',
'no-unused-labels': 'error',
'no-var': 'error',
'padding-line-between-statements': [
'error',
{
blankLine: 'always',
prev: '*',
next: 'return',
},
],
'prefer-const': 'error',
quotes: ["error", "single"],
radix: 'error',
semi: 'error',
'spaced-comment': [
'error',
'always',
{
markers: ['/'],
},
],
'use-isnan': 'error',
// '@typescript-eslint/tslint/config': [
// 'error',
// {
// rules: {
// whitespace: [true, 'check-branch', 'check-decl', 'check-operator', 'check-separator', 'check-type'],
// },
// },
// ],
},
};