Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
Loading items

Target

Select target project
0 results Searching
Select Git revision
Loading items
Show changes

Commits on Source 2

21 files
+ 499
355
Compare changes
  • Side-by-side
  • Inline

Files

Original line number Diff line number Diff line
@@ -2,8 +2,16 @@ import jsdocPlugin from 'eslint-plugin-jsdoc';
import headerplugin from 'eslint-plugin-header';
import tseslint from 'typescript-eslint';
import globals from 'globals';
import googleConfig from 'eslint-config-google';
headerplugin.rules.header.meta.schema = false;

const safeGoogleRules = Object.fromEntries(
  Object.entries(googleConfig.rules || {}).filter(
    ([rule]) => !['valid-jsdoc', 'require-jsdoc'].includes(rule)
  )
);


export default [
  {
    files: ['**/*.ts'],
@@ -29,9 +37,16 @@ export default [
      header: headerplugin
    },
    rules: {
      ...safeGoogleRules,
      'new-cap': ['error', {
        newIsCap: true,
        capIsNew: false,   //  Allow capitalized functions like decorators
        properties: false  //  Prevent false positives on object properties
      }],

      // Max total lines per file
      'max-lines': ['error', {
        max: 1000,
        max: 300,
        skipBlankLines: true,
        skipComments: true
      }],
@@ -70,5 +85,14 @@ export default [
        mode: 'typescript'
      }
    }
  },

  {
    files: ['**/.spec.ts', '**/.test.ts', '**/seed.ts'],
    rules: {
      'max-lines': 'off',
      'max-lines-per-function': 'off',
      'max-len': 'off'
    }
  }
];
 No newline at end of file