diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-09-24 18:18:29 +0300 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2019-09-28 15:33:16 +0300 |
commit | 63aaed33d2bdc3d88c038498b9fa75e12bdc1503 (patch) | |
tree | 4f8bf0f04c9904d513c10875bc51aab99529d8ca /.eslintrc.js | |
parent | 59b2a3450b6be87ed1da3ade34affe82722b0e5b (diff) |
Use routes history mode and global eslint config
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 94 |
1 files changed, 3 insertions, 91 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index 54c08630..701f97a6 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,93 +1,5 @@ module.exports = { - root: true, - env: { - browser: true, - es6: true, - node: true, - jest: true - }, - globals: { - t: true, - n: true, - OC: true, - OCA: true, - Vue: true, - VueRouter: true - }, - parserOptions: { - parser: 'babel-eslint', - ecmaVersion: 6 - }, extends: [ - 'eslint:recommended', - 'plugin:import/errors', - 'plugin:import/warnings', - 'plugin:node/recommended', - 'plugin:vue/essential', - 'plugin:vue/recommended', - 'plugin:nextcloud/recommended', - 'standard' - ], - settings: { - 'import/resolver': { - webpack: { - config: 'webpack.common.js' - }, - node: { - paths: ['src'], - extensions: ['.js', '.vue'] - } - } - }, - plugins: ['vue', 'node'], - rules: { - semi: ['error', 'always'], - // space before function () - 'space-before-function-paren': ['error', 'never'], - // curly braces always space - 'object-curly-spacing': ['error', 'always'], - // stay consistent with array brackets - 'array-bracket-newline': ['error', 'consistent'], - // 1tbs brace style - 'brace-style': 'error', - // tabs only - indent: ['error', 'tab'], - 'no-tabs': 0, - //'vue/html-indent': ['error', 'tab'], - // only debug console - 'no-console': ['error', { allow: ['error', 'warn', 'info', 'debug'] }], - // classes blocks - 'padded-blocks': ['error', { classes: 'always' }], - // always have the operator in front - 'operator-linebreak': ['error', 'before'], - // ternary on multiline - 'multiline-ternary': ['error', 'always-multiline'], - // force proper JSDocs - 'valid-jsdoc': [ - 2, - { - prefer: { - return: 'returns' - }, - requireReturn: false, - requireReturnDescription: false - } - ], - // es6 import/export and require - 'node/no-unpublished-require': ['off'], - 'node/no-unsupported-features/es-syntax': ['off'], - // kebab case components for vuejs - 'vue/component-name-in-template-casing': ['error', 'PascalCase'], - // code spacing with attributes - 'vue/max-attributes-per-line': [ - 'error', - { - singleline: 3, - multiline: { - max: 3, - allowFirstLine: true - } - } - ] - } -}; + 'nextcloud' + ] +} |