@zigatech/keycloak-auth
Version:
Keycloak authorization library for NestJS. Works out of the box.
88 lines (87 loc) • 1.87 kB
Plain Text
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"prettier"
],
"reportUnusedDisableDirectives": true,
"rules": {
"prettier/prettier": "error",
"no-mixed-spaces-and-tabs": "error",
"indent": "off",
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"arrow-spacing": "warn",
"use-isnan": "error",
"@typescript-eslint/no-namespace": "off",
"no-use-before-define": [
"error",
{
"functions": false,
"classes": false,
"variables": true,
"allowNamedExports": false
}
],
"no-duplicate-imports": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-dupe-class-members": "error",
"no-dupe-args": "error",
"@typescript-eslint/array-type": [
"error",
{
"default": "generic",
"readonly": "generic"
}
],
"@typescript-eslint/ban-ts-comment": "off",
"default-param-last": "off",
"@typescript-eslint/default-param-last": "error",
"@typescript-eslint/explicit-function-return-type": "off",
"max-params": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-undefined": "off",
"curly": [
"error",
"all"
],
"no-useless-return": "error",
"no-undef": [
"error",
{
"typeof": true
}
],
"eqeqeq": [
"error",
"always"
],
"space-before-blocks": "error",
"no-multi-spaces": "off"
}
}