mirror of
https://github.com/misskey-dev/misskey
synced 2024-11-27 22:38:39 +09:00
18dbcfa0b0
* fix(server): notes/createのバリデーションが効いていない
Fix #10079
Co-Authored-By: mei23 <m@m544.net>
* anyOf内にバリデーションを書いても最初の一つしかチェックされない
* ✌️
* wip
* wip
* ✌️
* RequiredProp
* Revert "RequiredProp"
This reverts commit 7469390011
.
* add api:notes/create
* fix lint
* text
* ✌️
* improve readability
---------
Co-authored-by: mei23 <m@m544.net>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
33 lines
679 B
JavaScript
33 lines
679 B
JavaScript
module.exports = {
|
|
parserOptions: {
|
|
tsconfigRootDir: __dirname,
|
|
project: ['./tsconfig.json', './test/tsconfig.json'],
|
|
},
|
|
extends: [
|
|
'../shared/.eslintrc.js',
|
|
],
|
|
rules: {
|
|
'import/order': ['warn', {
|
|
'groups': ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object', 'type'],
|
|
'pathGroups': [
|
|
{
|
|
'pattern': '@/**',
|
|
'group': 'external',
|
|
'position': 'after'
|
|
}
|
|
],
|
|
}],
|
|
'no-restricted-globals': [
|
|
'error',
|
|
{
|
|
'name': '__dirname',
|
|
'message': 'Not in ESModule. Use `import.meta.url` instead.'
|
|
},
|
|
{
|
|
'name': '__filename',
|
|
'message': 'Not in ESModule. Use `import.meta.url` instead.'
|
|
}
|
|
]
|
|
},
|
|
};
|