Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix eslint warnings
Browse files Browse the repository at this point in the history
myovchev committed Nov 8, 2024
1 parent 5a354a4 commit cb8a7f3
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@
},
"rules": {
"max-len": "off",
"object-shorthand": "off",
"no-var": "error",
"no-console": 0,
"vue/no-deprecated-v-on-native-modifier": 0,
6 changes: 5 additions & 1 deletion .stylelintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"extends": "stylelint-config-apostrophe"
"extends": "stylelint-config-apostrophe",
"//": "declaration-strict-value issue: https://github.com/AndyOGo/stylelint-declaration-strict-value/issues/379",
"rules": {
"scale-unlimited/declaration-strict-value": null
}
}
4 changes: 3 additions & 1 deletion modules/@apostrophecms/schema/lib/addFieldTypes.js
Original file line number Diff line number Diff line change
@@ -861,7 +861,9 @@ module.exports = (self) => {

self.addFieldType({
name: 'object',
async convert(req, field, data, destination, { fetchRelationships = true, ancestors = {}, doc = {} } = {}) {
async convert(req, field, data, destination, {
fetchRelationships = true, ancestors = {}, doc = {}
} = {}) {
data = data[field.name];
const schema = field.schema;
const errors = [];

0 comments on commit cb8a7f3

Please sign in to comment.