"Fossies" - the Fresh Open Source Software Archive

Member "cli-1.1280.1/.eslintrc.json" (20 Feb 2024, 1938 Bytes) of package /linux/misc/snyk-cli-1.1280.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) JSON source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 {
    2   "parser": "@typescript-eslint/parser",
    3   // Pending https://github.com/typescript-eslint/typescript-eslint/issues/389
    4   // parserOptions: {
    5   //   project: './tsconfig.json',
    6   // },
    7   "env": {
    8     "node": true,
    9     "es6": true
   10   },
   11   "plugins": ["@typescript-eslint"],
   12   "extends": [
   13     "eslint:recommended",
   14     "plugin:@typescript-eslint/eslint-recommended",
   15     "plugin:@typescript-eslint/recommended",
   16     "plugin:anti-trojan-source/recommended",
   17     "prettier",
   18     "prettier/@typescript-eslint"
   19   ],
   20   "rules": {
   21     "@typescript-eslint/explicit-function-return-type": "off",
   22     "@typescript-eslint/no-explicit-any": "off",
   23     "@typescript-eslint/no-empty-function": "warn",
   24 
   25     // non-null assertions compromise the type safety somewhat, but many
   26     // our types are still imprecisely defined and we don't use noImplicitAny
   27     // anyway, so for the time being assertions are allowed
   28     "@typescript-eslint/no-non-null-assertion": "warn",
   29 
   30     "@typescript-eslint/no-var-requires": "off",
   31     "@typescript-eslint/no-use-before-define": "off",
   32     "@typescript-eslint/no-unused-vars": "error",
   33     "no-prototype-builtins": "off",
   34     "require-atomic-updates": "off",
   35     "no-restricted-imports": [
   36       "error",
   37       { "paths": ["lodash"], "patterns": ["lodash/*"] }
   38     ],
   39     "no-buffer-constructor": "error"
   40   },
   41   "overrides": [
   42     {
   43       "files": ["*.ts"],
   44       "rules": {
   45         "@typescript-eslint/ban-types": "warn",
   46         "id-blacklist": ["error", "exports"] // in TS, use "export" instead of Node's "module.exports"
   47       }
   48     },
   49     {
   50       "files": "*.spec.*",
   51       "extends": ["plugin:jest/recommended"],
   52       "rules": {
   53         "jest/no-done-callback": "warn",
   54         "jest/valid-title": "warn",
   55         "jest/no-conditional-expect": "warn",
   56         "jest/no-try-expect": "warn",
   57         "jest/no-identical-title": "warn",
   58         "@typescript-eslint/ban-ts-comment": "warn"
   59       }
   60     }
   61   ]
   62 }