{"action":"opened","issue":{"url":"https://api.github.com/repos/vuejs/eslint-plugin-vue/issues/494","repository_url":"https://api.github.com/repos/vuejs/eslint-plugin-vue","labels_url":"https://api.github.com/repos/vuejs/eslint-plugin-vue/issues/494/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/eslint-plugin-vue/issues/494/comments","events_url":"https://api.github.com/repos/vuejs/eslint-plugin-vue/issues/494/events","html_url":"https://github.com/vuejs/eslint-plugin-vue/issues/494","id":330623195,"node_id":"MDU6SXNzdWUzMzA2MjMxOTU=","number":494,"title":"`vue/script-indent` applies to js files but should ","user":{"login":"probil","id":6773202,"node_id":"MDQ6VXNlcjY3NzMyMDI=","avatar_url":"https://avatars2.githubusercontent.com/u/6773202?v=4","gravatar_id":"","url":"https://api.github.com/users/probil","html_url":"https://github.com/probil","followers_url":"https://api.github.com/users/probil/followers","following_url":"https://api.github.com/users/probil/following{/other_user}","gists_url":"https://api.github.com/users/probil/gists{/gist_id}","starred_url":"https://api.github.com/users/probil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/probil/subscriptions","organizations_url":"https://api.github.com/users/probil/orgs","repos_url":"https://api.github.com/users/probil/repos","events_url":"https://api.github.com/users/probil/events{/privacy}","received_events_url":"https://api.github.com/users/probil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-08T11:33:00Z","updated_at":"2018-06-08T11:33:00Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n    This template is for bug reports. If you are reporting a bug, please continue on. If you are here for another reason, please see below:\r\n\r\n    1. To propose a new rule: http://eslint.org/docs/developer-guide/contributing/new-rules\r\n    2. To request a change: http://eslint.org/docs/developer-guide/contributing/changes\r\n\r\n    Note that leaving sections blank will make it difficult for us to troubleshoot and we may have to close the issue.\r\n-->\r\n\r\n**Tell us about your environment**\r\n\r\n* **ESLint Version:** 4.19.1\r\n* **eslint-plugin-vue Version:** 4.5.0\r\n* **Node Version:** 10.4.0\r\n\r\n**Please show your full configuration:**\r\n\r\n<!-- Paste your configuration below: -->\r\n```json\r\n{\r\n  \"extends\": [\r\n    \"nc/vue\",\r\n    \"plugin:vue/recommended\"\r\n  ],\r\n  \"plugins\": [\r\n    \"vue\"\r\n  ],\r\n  \"env\": {\r\n    \"browser\": true\r\n  },\r\n  \"settings\": {\r\n    \"import/resolver\": {\r\n      \"webpack\": {\r\n        \"config\": \"vuejsapp/build/webpack.base.conf.js\"\r\n      }\r\n    },\r\n    \"import/ignore\": [\"node_modules\"]\r\n  },\r\n  \"rules\": {\r\n    \"import/extensions\": [\"error\", \"always\", {\r\n      \"js\": \"never\",\r\n      \"vue\": \"never\"\r\n    }],\r\n    \"vue/html-self-closing\": [\"error\", {\r\n      \"html\": {\r\n        \"void\": \"any\",\r\n        \"normal\": \"any\",\r\n        \"component\": \"always\"\r\n      },\r\n      \"svg\": \"any\",\r\n      \"math\": \"any\"\r\n    }],\r\n    \"vue/attributes-order\": [\"off\"],\r\n    \"vue/order-in-components\": [\"off\"],\r\n    \"vue/html-closing-bracket-newline\": [\"error\", {\r\n      \"singleline\": \"never\",\r\n      \"multiline\": \"always\"\r\n    }],\r\n    \"vue/html-closing-bracket-spacing\": [\"error\", {\r\n      \"startTag\": \"never\",\r\n      \"endTag\": \"never\",\r\n      \"selfClosingTag\": \"always\"\r\n    }],\r\n    \"vue/prop-name-casing\": [\"error\", \"camelCase\"],\r\n    \"vue/script-indent\": [\"error\", 2, {\r\n      \"baseIndent\": 1\r\n    }]\r\n  }\r\n}\r\n```\r\n\r\n**What did you do? Please include the actual source code causing the issue.**\r\nI've added this rule:\r\n```js\r\n\"vue/script-indent\": [\"error\", 2, {\r\n  \"baseIndent\": 1\r\n}]\r\n```\r\nVue store module: \r\n<!-- Paste the source code below: -->\r\nBefore `eslint --fix`:\r\n```js\r\n# src/store/modules/siteCustomerNavigation.js\r\nexport default {\r\n  namespaced: true,\r\n  state: {\r\n    recentHistory: {\r\n      items: [],\r\n    },\r\n  },\r\n  mutations: {\r\n    SOCKET_USER_NAVIGATION_UPDATED(state, navigation) {\r\n      //...\r\n      if (currentItemIndex > -1) {\r\n        const updatedItem = Object.assign({},\r\n          state.recentHistory.items[currentItemIndex],\r\n          navigation\r\n        );\r\n      }\r\n    },\r\n  }\r\n};\r\n```\r\n**What did you expect to happen?**\r\n\r\nIndent rule applied to `*.js` files.\r\n\r\nAfter `eslint --fix`:\r\n```js\r\nexport default {\r\n  namespaced: true,\r\n  state: {\r\n    recentHistory: {\r\n      items: [],\r\n    },\r\n  },\r\n  mutations: {\r\n    SOCKET_USER_NAVIGATION_UPDATED(state, navigation) {\r\n      //...\r\n      if (currentItemIndex > -1) {\r\n        const updatedItem = Object.assign({},\r\n                                          state.recentHistory.items[currentItemIndex],\r\n                                          navigation\r\n        );\r\n      }\r\n    },\r\n  }\r\n};\r\n```\r\n\r\n**What actually happened? Please include the actual, raw output from ESLint.**\r\n\r\nDue to documentation it should enforce indend in `<script>` of vue component only. But actually it changes js files that are not vue components. \r\n"}}
{"actor":{"display_login":"probil"}}