diff options
author | HampusM <hampus@hampusmat.com> | 2021-06-05 19:37:52 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-06-05 19:37:52 +0200 |
commit | 4da3272bf7893760f6710c9a1ec7de02358136e6 (patch) | |
tree | 92eb961bf20a7ef9f7c0650ba288baf512986fca /packages/client/.eslintrc.js | |
parent | 4e3074dfd752dd52951d300090c642aee76cfaac (diff) |
Reorganized into a monorepo, refactored the frontend again, goodbye Parcel
Diffstat (limited to 'packages/client/.eslintrc.js')
-rw-r--r-- | packages/client/.eslintrc.js | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/packages/client/.eslintrc.js b/packages/client/.eslintrc.js new file mode 100644 index 0000000..086c9df --- /dev/null +++ b/packages/client/.eslintrc.js @@ -0,0 +1,53 @@ +module.exports = { + root: true, + env: { + node: true + }, + extends: [ + 'plugin:vue/vue3-strongly-recommended', + '@vue/standard' + ], + parserOptions: { + parser: 'babel-eslint' + }, + rules: { + 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', + 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', + curly: 'warn', + 'array-bracket-newline': [ 'warn', 'consistent' ], + 'array-bracket-spacing': [ 'warn', 'always' ], + 'capitalized-comments': [ 'warn', 'always' ], + 'implicit-arrow-linebreak': [ 'warn', 'beside' ], + indent: [ 'warn', 'tab' ], + 'linebreak-style': [ 'warn', 'unix' ], + 'comma-dangle': [ 'error', 'never' ], + semi: [ 'error', 'always' ], + 'no-var': 'error', + 'no-tabs': [ 'error', { allowIndentationTabs: true } ], + 'quotes': ['error', 'double'], + 'quote-props': ["error", "as-needed"], + 'space-before-function-paren': ["error", "never"], + 'camelcase': "off", + 'no-tabs': "off", + 'keyword-spacing': ["error", { "overrides": { + "if": { "after": false }, + "for": { "after": false }, + "while": { "after": false } + } }], + 'vue/max-attributes-per-line': [ 'warn', { + singleline: { + max: 2, + allowFirstLine: true + }, + multiline: { + max: 2, + allowFirstLine: false + } + } ], + 'vue/html-closing-bracket-newline': [ 'error', { + singleline: 'never', + multiline: 'never' + } ], + 'vue/html-indent': [ 'error', 'tab' ], + } +}; |