summaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorDerick Montague <derick.montague@ibm.com>2019-12-11 15:16:40 +0300
committerDerick Montague <derick.montague@ibm.com>2020-01-27 17:38:19 +0300
commitfded0d11289f737a845abb5ee8bb10725f870cf3 (patch)
tree71d3957557de1d261e40dc1db102e6661936f4c5 /.eslintrc.js
parentf3ab8bc86bd10e6d7398970db07d91a28485359d (diff)
downloadwebui-vue-fded0d11289f737a845abb5ee8bb10725f870cf3.tar.xz
Add singlequote override and fix files
Based on phosphor-webui and JavaScript common practices we are setting ESLint to required single quote for JS files and double quote for SCSS files. This commit adds the ESLint override to the prettier rules and runs the npm lint script that fixes the files that violate the rule. Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I50cba77b2d0797595ce94258029608efa8665005
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index 8d83430f..2e8a358a 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -3,19 +3,19 @@ module.exports = {
env: {
node: true
},
- extends: ["plugin:vue/essential", "@vue/prettier"],
+ extends: ['plugin:vue/essential', '@vue/prettier'],
rules: {
- "no-console": "off",
- "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
+ 'no-console': 'off',
+ 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
},
parserOptions: {
- parser: "babel-eslint"
+ parser: 'babel-eslint'
},
overrides: [
{
files: [
- "**/__tests__/*.{j,t}s?(x)",
- "**/tests/unit/**/*.spec.{j,t}s?(x)"
+ '**/__tests__/*.{j,t}s?(x)',
+ '**/tests/unit/**/*.spec.{j,t}s?(x)'
],
env: {
jest: true