File: /var/www/ai-notam/.eslintrc.json
{
"extends": [
"eslint:recommended",
"plugin:node/recommended",
"prettier"
],
"plugins": [
"node",
"prettier",
"unused-imports",
"import"
],
"rules": {
"max-len": ["error", {
"code": 120,
"ignorePattern": "^import [^,]+ from |^export | implements | `.{30,}`",
"ignoreComments": true,
"ignoreStrings": true
}],
"import/order": ["error", {"groups": ["builtin", "external", "internal", "parent", "sibling", "index"]}],
"block-scoped-var": "error",
"eqeqeq": "error",
"no-var": "error",
"prefer-const": "error",
"eol-last": "error",
"prefer-arrow-callback": "error",
"no-trailing-spaces": "error",
"quotes": ["warn", "single", { "avoidEscape": true }],
"no-restricted-properties": [
"error",
{
"object": "describe",
"property": "only"
},
{
"object": "it",
"property": "only"
}
],
"unused-imports/no-unused-imports": "warn",
"@typescript-eslint/explicit-module-boundary-types": "off",
"prettier/prettier": ["error", { "singleQuote": true }]
},
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx"],
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-warning-comments": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/explicit-function-return-type": ["error", {
"allowExpressions": true
}],
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/camelcase": "off",
"node/no-missing-import": "off",
"node/no-empty-function": "off",
"node/no-unsupported-features/es-syntax": "off",
"node/no-missing-require": "off",
"node/shebang": "off",
"no-dupe-class-members": "off",
"require-atomic-updates": "off",
"@typescript-eslint/no-explicit-any": ["error", { "ignoreRestArgs": true }]
},
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module"
}
}
]
}