Skip to content

Commit fcfac2b

Browse files
authored
Fix/group user metadata (#80)
* fix: group user metadata policy * chore: update dependencies * chore: update linting * chore: fix command tests
1 parent 994670d commit fcfac2b

36 files changed

+3230
-1738
lines changed

.eslintignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 32 deletions
This file was deleted.

config/templates/groups/user.hcl.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ path "<%= kv %>/config" {
88
}
99

1010
path "<%= kv %>/metadata/*" {
11-
capabilities = ["list", "read", "delete"]
11+
capabilities = ["create", "read", "delete", "update", "list"]
1212
}
1313

1414
path "<%= kv %>/data/<%= name %>/*" {

eslint.config.mjs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// @ts-check
2+
3+
import eslint from '@eslint/js';
4+
import tseslint from 'typescript-eslint';
5+
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
6+
7+
export default tseslint.config(
8+
eslint.configs.recommended,
9+
...tseslint.configs.recommended,
10+
eslintPluginPrettierRecommended,
11+
{
12+
rules: {
13+
'no-extra-boolean-cast': 'off',
14+
'no-empty-function': 'off',
15+
'@typescript-eslint/no-empty-function': 'error',
16+
'@typescript-eslint/no-unused-vars': ['error', { caughtErrors: 'none' }],
17+
'@typescript-eslint/interface-name-prefix': 'off',
18+
'@typescript-eslint/explicit-function-return-type': 'off',
19+
'@typescript-eslint/explicit-module-boundary-types': 'off',
20+
'@typescript-eslint/no-explicit-any': 'off',
21+
},
22+
},
23+
);

0 commit comments

Comments
 (0)