juice-shop

Форк
0
/
.eslintrc.js 
44 строки · 1.0 Кб
1
/*
2
 * Copyright (c) 2014-2024 Bjoern Kimminich & the OWASP Juice Shop contributors.
3
 * SPDX-License-Identifier: MIT
4
 */
5

6
module.exports = {
7
  extends: 'standard-with-typescript',
8
  env: {
9
    browser: true,
10
    node: true,
11
    jasmine: true,
12
    mocha: true,
13
    jest: true
14
  },
15
  globals: {
16
    Atomics: 'readonly',
17
    SharedArrayBuffer: 'readonly'
18
  },
19
  parserOptions: {
20
    ecmaVersion: 2018,
21
    project: './tsconfig.json'
22
  },
23
  ignorePatterns: [
24
    '.eslintrc.js',
25
    'app/private/**',
26
    'vagrant/**',
27
    'frontend/**',
28
    'data/static/codefixes/**',
29
    'dist/**'
30
  ],
31
  overrides: [
32
    {
33
      files: ['**/*.ts'],
34
      parser: '@typescript-eslint/parser',
35
      rules: {
36
        'no-void': 'off', // conflicting with recommendation from @typescript-eslint/no-floating-promises
37
        // FIXME warnings below this line need to be checked and fixed.
38
        '@typescript-eslint/explicit-function-return-type': 'off',
39
        '@typescript-eslint/strict-boolean-expressions': 'off',
40
        '@typescript-eslint/no-var-requires': 'off'
41
      }
42
    }
43
  ]
44
}
45

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.