{"action":"closed","issue":{"url":"https://api.github.com/repos/TEAMMATES/teammates/issues/8616","repository_url":"https://api.github.com/repos/TEAMMATES/teammates","labels_url":"https://api.github.com/repos/TEAMMATES/teammates/issues/8616/labels{/name}","comments_url":"https://api.github.com/repos/TEAMMATES/teammates/issues/8616/comments","events_url":"https://api.github.com/repos/TEAMMATES/teammates/issues/8616/events","html_url":"https://github.com/TEAMMATES/teammates/issues/8616","id":303816289,"number":8616,"title":"Help Request: Configuration for rule \"object-curly-newline\" is invalid error","user":{"login":"nidhi98gupta","id":24381442,"avatar_url":"https://avatars1.githubusercontent.com/u/24381442?v=4","gravatar_id":"","url":"https://api.github.com/users/nidhi98gupta","html_url":"https://github.com/nidhi98gupta","followers_url":"https://api.github.com/users/nidhi98gupta/followers","following_url":"https://api.github.com/users/nidhi98gupta/following{/other_user}","gists_url":"https://api.github.com/users/nidhi98gupta/gists{/gist_id}","starred_url":"https://api.github.com/users/nidhi98gupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nidhi98gupta/subscriptions","organizations_url":"https://api.github.com/users/nidhi98gupta/orgs","repos_url":"https://api.github.com/users/nidhi98gupta/repos","events_url":"https://api.github.com/users/nidhi98gupta/events{/privacy}","received_events_url":"https://api.github.com/users/nidhi98gupta/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-03-09T11:50:48Z","updated_at":"2018-03-09T13:53:33Z","closed_at":"2018-03-09T13:53:33Z","author_association":"CONTRIBUTOR","body":"- **Commit SHA:** fa92b7fe8ed3abbd2dc7e029cc4fd2e60e5855fd\r\n- **Operating System:** Ubuntu 17.10\r\n- **JDK Version:** 1.8\r\n- **Google Cloud SDK Version:** 186.0.0\r\n- **Eclipse Version (if applicable):** 2017.3\r\n- **Firefox Version (if applicable):** 46.0\r\n\r\n**What I was trying to do / What I need help with**\r\nI merged latest changes from master in #8550. As there were changes in static analysis test, CI tests resulted in failure. In order to pass CI tests, I fixed a minor lint error of my code related to curly braces and tried to run `npm run lint` which resulted in `Configuration for rule \"object-curly-newline\" is invalid:` error and build failure.\r\n\r\n```\r\n\r\n> @ lint /home/nidhi/teammates\r\n> npm run lint:js && npm run lint:json && npm run lint:css && npm run lint:spaces\r\n\r\n\r\n> @ lint:js /home/nidhi/teammates\r\n> eslint *.js src/main/webapp/dev -c static-analysis/teammates-eslint.yml\r\n\r\n/home/nidhi/teammates/static-analysis/teammates-eslint.yml:\r\n\tConfiguration for rule \"object-curly-newline\" is invalid:\r\n\tValue {\"ObjectExpression\":{\"minProperties\":4,\"multiline\":true,\"consistent\":true},\"ObjectPattern\":{\"minProperties\":4,\"multiline\":true,\"consistent\":true},\"ExportDeclaration\":\"always\",\"ImportDeclaration\":\"always\"} should be equal to one of the allowed values.\r\n\tValue {\"ObjectExpression\":{\"minProperties\":4,\"multiline\":true,\"consistent\":true},\"ObjectPattern\":{\"minProperties\":4,\"multiline\":true,\"consistent\":true},\"ExportDeclaration\":\"always\",\"ImportDeclaration\":\"always\"} should NOT have additional properties.\r\n\tValue {\"ObjectExpression\":{\"minProperties\":4,\"multiline\":true,\"consistent\":true},\"ObjectPattern\":{\"minProperties\":4,\"multiline\":true,\"consistent\":true},\"ExportDeclaration\":\"always\",\"ImportDeclaration\":\"always\"} should match exactly one schema in oneOf.\r\n\tValue {\"ObjectExpression\":{\"minProperties\":4,\"multiline\":true,\"consistent\":true},\"ObjectPattern\":{\"minProperties\":4,\"multiline\":true,\"consistent\":true},\"ExportDeclaration\":\"always\",\"ImportDeclaration\":\"always\"} should NOT have additional properties.\r\n\tValue {\"ObjectExpression\":{\"minProperties\":4,\"multiline\":true,\"consistent\":true},\"ObjectPattern\":{\"minProperties\":4,\"multiline\":true,\"consistent\":true},\"ExportDeclaration\":\"always\",\"ImportDeclaration\":\"always\"} should match exactly one schema in oneOf.\r\n\r\nError: /home/nidhi/teammates/static-analysis/teammates-eslint.yml:\r\n\tConfiguration for rule \"object-curly-newline\" is invalid:\r\n\tValue {\"ObjectExpression\":{\"minProperties\":4,\"multiline\":true,\"consistent\":true},\"ObjectPattern\":{\"minProperties\":4,\"multiline\":true,\"consistent\":true},\"ExportDeclaration\":\"always\",\"ImportDeclaration\":\"always\"} should be equal to one of the allowed values.\r\n\tValue {\"ObjectExpression\":{\"minProperties\":4,\"multiline\":true,\"consistent\":true},\"ObjectPattern\":{\"minProperties\":4,\"multiline\":true,\"consistent\":true},\"ExportDeclaration\":\"always\",\"ImportDeclaration\":\"always\"} should NOT have additional properties.\r\n\tValue {\"ObjectExpression\":{\"minProperties\":4,\"multiline\":true,\"consistent\":true},\"ObjectPattern\":{\"minProperties\":4,\"multiline\":true,\"consistent\":true},\"ExportDeclaration\":\"always\",\"ImportDeclaration\":\"always\"} should match exactly one schema in oneOf.\r\n\tValue {\"ObjectExpression\":{\"minProperties\":4,\"multiline\":true,\"consistent\":true},\"ObjectPattern\":{\"minProperties\":4,\"multiline\":true,\"consistent\":true},\"ExportDeclaration\":\"always\",\"ImportDeclaration\":\"always\"} should NOT have additional properties.\r\n\tValue {\"ObjectExpression\":{\"minProperties\":4,\"multiline\":true,\"consistent\":true},\"ObjectPattern\":{\"minProperties\":4,\"multiline\":true,\"consistent\":true},\"ExportDeclaration\":\"always\",\"ImportDeclaration\":\"always\"} should match exactly one schema in oneOf.\r\n\r\n    at validateRuleOptions (/home/nidhi/teammates/node_modules/eslint/lib/config/config-validator.js:115:15)\r\n    at Object.keys.forEach.id (/home/nidhi/teammates/node_modules/eslint/lib/config/config-validator.js:155:9)\r\n    at Array.forEach (<anonymous>)\r\n    at validateRules (/home/nidhi/teammates/node_modules/eslint/lib/config/config-validator.js:154:30)\r\n    at Object.validate (/home/nidhi/teammates/node_modules/eslint/lib/config/config-validator.js:232:5)\r\n    at loadFromDisk (/home/nidhi/teammates/node_modules/eslint/lib/config/config-file.js:507:19)\r\n    at Object.load (/home/nidhi/teammates/node_modules/eslint/lib/config/config-file.js:550:20)\r\n    at Config.loadSpecificConfig (/home/nidhi/teammates/node_modules/eslint/lib/config.js:139:46)\r\n    at new Config (/home/nidhi/teammates/node_modules/eslint/lib/config.js:101:14)\r\n    at new CLIEngine (/home/nidhi/teammates/node_modules/eslint/lib/cli-engine.js:420:23)\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 1\r\nnpm ERR! @ lint:js: `eslint *.js src/main/webapp/dev -c static-analysis/teammates-eslint.yml`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the @ lint:js script.\r\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     /home/nidhi/.npm/_logs/2018-03-09T11_28_08_961Z-debug.log\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 1\r\nnpm ERR! @ lint: `npm run lint:js && npm run lint:json && npm run lint:css && npm run lint:spaces`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the @ lint script.\r\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     /home/nidhi/.npm/_logs/2018-03-09T11_28_09_004Z-debug.log\r\n``\r\n"}}
{"actor":{"display_login":"nidhi98gupta"}}