blurts-server/.eslintrc.json

62 строки
1.7 KiB
JSON

{
"env": {
"browser": true,
"es2022": true,
"node": true,
"jest": true
},
"extends": [
"standard",
"plugin:jsdoc/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"header",
"jsdoc",
"@typescript-eslint",
"check-file"
],
"rules": {
"no-prototype-builtins": "warn",
"no-undef": "warn",
"camelcase": "warn",
"new-cap": "warn",
"header/header": [
"warn",
"block",
" This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/. ",
2
],
"jsdoc/require-jsdoc": "off",
"jsdoc/require-param-description": "off",
// Unused vars explicitly marked as such with an understore prefix are allowed:
"no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-ignore": "allow-with-description"
}
],
"check-file/filename-naming-convention": [
"error",
{
"**/*.{js,css} !src/db/migrations": "CAMEL_CASE"
},
{
"ignoreMiddleExtensions": true
}
]
}
}