frontend/.eslintrc.js
/*
* Copyright (c) 2014-2024 Bjoern Kimminich & the OWASP Juice Shop contributors.
* SPDX-License-Identifier: MIT
*/
module.exports = {
extends: [
'standard-with-typescript'
],
root: true,
parserOptions: {
project: './src/tsconfig.*.json',
sourceType: 'module'
},
ignorePatterns: [
'.eslintrc.js'
],
rules: {
'@typescript-eslint/prefer-nullish-coalescing': 'off', // requires the `strictNullChecks` compiler option
// FIXME warnings below this line need to be checked and fixed.
'@typescript-eslint/strict-boolean-expressions': 'off',
'@typescript-eslint/consistent-type-assertions': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/no-confusing-void-expression': 'off'
}
}