Skip to content

Feature/formatting json yaml #30062

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Oct 13, 2020
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml,json}]
indent_size = 2

[{composer, auth}.json]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@engcom-Foxtrot basically it's not the same. You just removed option for composer.lock files.

Copy link
Contributor

@engcom-Foxtrot engcom-Foxtrot Oct 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ihor-sviziev yes, composer.lock inherits settings from general configuration *. It's not overridden by *.{yml,yaml,json}

indent_size = 4
12 changes: 6 additions & 6 deletions dev/tests/acceptance/staticRuleset.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"tests": [
"actionGroupArguments",
"deprecatedEntityUsage",
"annotations",
"pauseActionUsage"
]
"tests": [
"actionGroupArguments",
"deprecatedEntityUsage",
"annotations",
"pauseActionUsage"
]
}
23 changes: 10 additions & 13 deletions dev/tools/grunt/configs/autoprefixer.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{
"options": {
"browsers": [
"last 2 versions",
"ie 11"
]
},
"setup": {
"src": "<%= path.css.setup %>/setup.css"
},
"updater": {
"src": "<%= path.css.updater %>/updater.css"
}
}
"options": {
"browsers": ["last 2 versions", "ie 11"]
},
"setup": {
"src": "<%= path.css.setup %>/setup.css"
},
"updater": {
"src": "<%= path.css.updater %>/updater.css"
}
}
18 changes: 9 additions & 9 deletions dev/tools/grunt/configs/concat.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"options": {
"stripBanners": true,
"banner": "/**\n * Copyright © <%= grunt.template.today(\"yyyy\") %> Magento. All rights reserved.\n * See COPYING.txt for license details.\n */\n"
},
"setup": {
"src": "<%= path.css.setup %>/setup.css",
"dest": "<%= path.css.setup %>/setup.css"
}
}
"options": {
"stripBanners": true,
"banner": "/**\n * Copyright © <%= grunt.template.today(\"yyyy\") %> Magento. All rights reserved.\n * See COPYING.txt for license details.\n */\n"
},
"setup": {
"src": "<%= path.css.setup %>/setup.css",
"dest": "<%= path.css.setup %>/setup.css"
}
}
28 changes: 14 additions & 14 deletions dev/tools/grunt/configs/cssmin.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"options": {
"report": "gzip",
"keepSpecialComments": 0
},
"setup": {
"files": {
"<%= path.css.setup %>/setup.css": "<%= path.css.setup %>/setup.css"
}
},
"updater": {
"files": {
"<%= path.css.updater %>/updater.css": "<%= path.css.updater %>/updater.css"
}
"options": {
"report": "gzip",
"keepSpecialComments": 0
},
"setup": {
"files": {
"<%= path.css.setup %>/setup.css": "<%= path.css.setup %>/setup.css"
}
}
},
"updater": {
"files": {
"<%= path.css.updater %>/updater.css": "<%= path.css.updater %>/updater.css"
}
}
}
30 changes: 15 additions & 15 deletions dev/tools/grunt/configs/eslint.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"file": {
"options": {
"configFile": "dev/tests/static/testsuite/Magento/Test/Js/_files/eslint/.eslintrc",
"reset": true,
"useEslintrc": false
}
},
"test": {
"options": {
"configFile": "dev/tests/static/testsuite/Magento/Test/Js/_files/eslint/.eslintrc",
"reset": true,
"outputFile": "dev/tests/static/eslint-error-report.xml",
"format": "junit",
"quiet": true
}
"file": {
"options": {
"configFile": "dev/tests/static/testsuite/Magento/Test/Js/_files/eslint/.eslintrc",
"reset": true,
"useEslintrc": false
}
},
"test": {
"options": {
"configFile": "dev/tests/static/testsuite/Magento/Test/Js/_files/eslint/.eslintrc",
"reset": true,
"outputFile": "dev/tests/static/eslint-error-report.xml",
"format": "junit",
"quiet": true
}
}
}
26 changes: 13 additions & 13 deletions dev/tools/grunt/configs/jscs.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"file": {
"options": {
"config": "dev/tests/static/testsuite/Magento/Test/Js/_files/jscs/.jscsrc"
},
"src": ""
"file": {
"options": {
"config": "dev/tests/static/testsuite/Magento/Test/Js/_files/jscs/.jscsrc"
},
"test": {
"options": {
"config": "dev/tests/static/testsuite/Magento/Test/Js/_files/jscs/.jscsrc",
"reporterOutput": "dev/tests/static/jscs-error-report.xml",
"reporter": "junit"
},
"src": ""
}
"src": ""
},
"test": {
"options": {
"config": "dev/tests/static/testsuite/Magento/Test/Js/_files/jscs/.jscsrc",
"reporterOutput": "dev/tests/static/jscs-error-report.xml",
"reporter": "junit"
},
"src": ""
}
}
36 changes: 18 additions & 18 deletions dev/tools/grunt/configs/mage-minify.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"legacy": {
"options": {
"compressor": "yui-js"
},
"files": {
"<%= path.uglify.legacy %>": [
"lib/web/prototype/prototype.js",
"lib/web/prototype/window.js",
"lib/web/scriptaculous/builder.js",
"lib/web/scriptaculous/effects.js",
"lib/web/lib/ccard.js",
"lib/web/prototype/validation.js",
"lib/web/varien/js.js",
"lib/web/mage/adminhtml/varienLoader.js",
"lib/web/mage/adminhtml/tools.js",
"dev/tools/grunt/assets/legacy-build/shim.js"
]
}
"legacy": {
"options": {
"compressor": "yui-js"
},
"files": {
"<%= path.uglify.legacy %>": [
"lib/web/prototype/prototype.js",
"lib/web/prototype/window.js",
"lib/web/scriptaculous/builder.js",
"lib/web/scriptaculous/effects.js",
"lib/web/lib/ccard.js",
"lib/web/prototype/validation.js",
"lib/web/varien/js.js",
"lib/web/mage/adminhtml/varienLoader.js",
"lib/web/mage/adminhtml/tools.js",
"dev/tools/grunt/assets/legacy-build/shim.js"
]
}
}
}
22 changes: 10 additions & 12 deletions dev/tools/grunt/configs/styledocco.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
{
"documentation": {
"options": {
"name": "Magento UI Library",
"verbose": true,
"include": [
"<%= path.doc %>/docs.css"
]
},
"files": {
"<%= path.doc %>": "<%= path.doc %>/source"
}
"documentation": {
"options": {
"name": "Magento UI Library",
"verbose": true,
"include": ["<%= path.doc %>/docs.css"]
},
"files": {
"<%= path.doc %>": "<%= path.doc %>/source"
}
}
}
}
2 changes: 1 addition & 1 deletion grunt-config.json.sample
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"themes": "dev/tools/grunt/configs/local-themes"
"themes": "dev/tools/grunt/configs/local-themes"
}
80 changes: 40 additions & 40 deletions package.json.sample
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
{
"name": "magento2",
"author": "Magento Commerce Inc.",
"description": "Magento2 node modules dependencies for local development",
"license": "(OSL-3.0 OR AFL-3.0)",
"repository": {
"type": "git",
"url": "https://github.com/magento/magento2.git"
},
"homepage": "http://magento.com/",
"devDependencies": {
"glob": "~7.1.1",
"grunt": "~1.0.1",
"grunt-autoprefixer": "~3.0.4",
"grunt-banner": "~0.6.0",
"grunt-continue": "~0.1.0",
"grunt-contrib-clean": "~1.1.0",
"grunt-contrib-connect": "~1.0.2",
"grunt-contrib-cssmin": "~2.2.1",
"grunt-contrib-imagemin": "~2.0.1",
"grunt-contrib-jasmine": "~1.2.0",
"grunt-contrib-less": "~1.4.1",
"grunt-contrib-watch": "~1.0.0",
"grunt-eslint": "~20.1.0",
"grunt-exec": "~3.0.0",
"grunt-jscs": "~3.0.1",
"grunt-replace": "~1.0.1",
"grunt-styledocco": "~0.3.0",
"grunt-template-jasmine-requirejs": "~0.2.3",
"grunt-text-replace": "~0.4.0",
"imagemin-svgo": "~5.2.1",
"load-grunt-config": "~0.19.2",
"morgan": "~1.9.0",
"node-minify": "~2.3.1",
"path": "~0.12.7",
"serve-static": "~1.13.1",
"squirejs": "~0.2.1",
"strip-json-comments": "~2.0.1",
"time-grunt": "~1.4.0",
"underscore": "~1.8.0"
}
"name": "magento2",
"author": "Magento Commerce Inc.",
"description": "Magento2 node modules dependencies for local development",
"license": "(OSL-3.0 OR AFL-3.0)",
"repository": {
"type": "git",
"url": "https://github.com/magento/magento2.git"
},
"homepage": "http://magento.com/",
"devDependencies": {
"glob": "~7.1.1",
"grunt": "~1.0.1",
"grunt-autoprefixer": "~3.0.4",
"grunt-banner": "~0.6.0",
"grunt-continue": "~0.1.0",
"grunt-contrib-clean": "~1.1.0",
"grunt-contrib-connect": "~1.0.2",
"grunt-contrib-cssmin": "~2.2.1",
"grunt-contrib-imagemin": "~2.0.1",
"grunt-contrib-jasmine": "~1.2.0",
"grunt-contrib-less": "~1.4.1",
"grunt-contrib-watch": "~1.0.0",
"grunt-eslint": "~20.1.0",
"grunt-exec": "~3.0.0",
"grunt-jscs": "~3.0.1",
"grunt-replace": "~1.0.1",
"grunt-styledocco": "~0.3.0",
"grunt-template-jasmine-requirejs": "~0.2.3",
"grunt-text-replace": "~0.4.0",
"imagemin-svgo": "~5.2.1",
"load-grunt-config": "~0.19.2",
"morgan": "~1.9.0",
"node-minify": "~2.3.1",
"path": "~0.12.7",
"serve-static": "~1.13.1",
"squirejs": "~0.2.1",
"strip-json-comments": "~2.0.1",
"time-grunt": "~1.4.0",
"underscore": "~1.8.0"
}
}