Skip to content

Commit

Permalink
Update ESLint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryptarchist committed Jul 21, 2020
1 parent 17b39e5 commit 5f68a46
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 31 deletions.
53 changes: 29 additions & 24 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,46 @@
{
"root": true,

"plugins": ["import"],

"env": {
"browser": true,
"node": true,
"es6": true
},

"parserOptions": {
"parser": "babel-eslint",
"ecmaVersion": 2018,
"sourceType": "module"
},

"extends": [
"plugin:vue/recommended",
"eslint:recommended",
"airbnb-base",
"plugin:vue/recommended",
"plugin:prettier/recommended",
"prettier/vue"
],
"plugins": ["import", "promise"],

"settings": {
"import/resolver": {
"webpack": {
"config": ".electron-vue/webpack.renderer.config.js"
}
}
},
"parserOptions": {
"parser": "babel-eslint",
"sourceType": "module"
},
"env": {
"browser": true,
"node": true
},

"rules": {
"arrow-parens": "off",
"consistent-return": "off",
"comma-dangle": "off",
"generator-star-spacing": "off",
"import/no-unresolved": "error",
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"no-console": "off",
"no-use-before-define": "off",
"no-multi-assign": "off",
"prettier/prettier": ["error", { "singleQuote": true }],
"promise/param-names": "error",
"promise/always-return": "error",
"promise/catch-or-return": "error",
"promise/no-native": "off"
"comma-dangle": ["error", "never"],
"import/order": "error",
"prettier/prettier": [
"error",
{
"printWidth": 100,
"singleQuote": true,
"trailingComma": "none"
}
]
}
}
6 changes: 0 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@
"eslint-import-resolver-webpack": "^0.12.2",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-vue": "^6.2.2",
"file-loader": "^6.0.0",
"html-webpack-plugin": "^4.3.0",
Expand Down

0 comments on commit 5f68a46

Please sign in to comment.