@localsecurity/cf-access-service
Version:
A utility to parse Cloudflare Access user identity inside Cloudflare Workers
66 lines (60 loc) • 1.44 kB
JSON
{
"env": {
"es2020": true,
"browser": true,
"node": false
},
"extends": [
"airbnb-typescript/base",
"plugin:prettier/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["prettier", "@typescript-eslint"],
"rules": {
/**
* @description Airbnb often prefers default exports; we prefer named.
*/
"import/prefer-default-export": "off",
/**
* @description Allow both `type` and `interface`
*/
"@typescript-eslint/consistent-type-definitions": "off",
/**
* @description Enforce spacing in type annotations
*/
"@typescript-eslint/type-annotation-spacing": "warn",
/**
* @description Avoid unhandled promises
*/
"@typescript-eslint/no-floating-promises": "warn",
/**
* @description Disable indent enforcement; Prettier handles it
*/
"indent": "off",
"@typescript-eslint/indent": "off",
/**
* @description For Cloudflare Workers ESM
*/
"import/no-unresolved": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"ts": "never"
}
],
/**
* @description Prettier formatting warnings
*/
"prettier/prettier": "warn"
}
}