2022-12-04 16:41:39 -05:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
|
|
|
"project": [
|
2023-02-05 06:03:13 -05:00
|
|
|
"./tsconfig.json"
|
2022-12-04 16:41:39 -05:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"plugins": [
|
|
|
|
"@typescript-eslint",
|
|
|
|
"jest",
|
|
|
|
"prettier"
|
|
|
|
],
|
|
|
|
"env": {
|
|
|
|
"jest": true,
|
|
|
|
"jest/globals": true
|
|
|
|
},
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"prettier"
|
|
|
|
],
|
|
|
|
"rules": {
|
|
|
|
"prettier/prettier": ["error",
|
|
|
|
require('./.prettierrc.json')
|
|
|
|
],
|
|
|
|
"jest/no-disabled-tests": "warn",
|
|
|
|
"jest/no-focused-tests": "error",
|
|
|
|
"jest/no-identical-title": "error",
|
|
|
|
"jest/prefer-to-have-length": "warn",
|
|
|
|
"jest/valid-expect": "error"
|
|
|
|
}
|
|
|
|
}
|