forked from kiwiirc/kiwiirc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
77 lines (76 loc) · 2.3 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
const rulesDirPlugin = require('eslint-plugin-rulesdir');
rulesDirPlugin.RULES_DIR = 'build/eslint/rules/';
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module'
},
extends: [
'plugin:vue/recommended',
'@vue/airbnb',
'standard'
],
env: {
'browser': true,
},
// required to lint *.vue files
plugins: [
'rulesdir',
'vue',
],
// add your custom rules here
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'rulesdir/class-name-prefix': 'warn',
'class-methods-use-this': 0,
'comma-dangle': ['error', {
'arrays': 'always-multiline',
'objects': 'always-multiline',
'imports': 'never',
'exports': 'never',
'functions': 'ignore'
}],
'import/extensions': 0,
'import/no-cycle': 0,
'import/no-extraneous-dependencies': 0,
'import/no-unresolved': 0,
'import/prefer-default-export': 0,
'indent': ['error', 4],
'max-classes-per-file': 0,
'no-continue': 0,
'no-else-return': 0,
'no-multi-assign': 0,
'no-param-reassign': ['error', { 'props': false }],
'no-plusplus': 0,
'no-prototype-builtins': 0,
'no-control-regex': 0,
'object-shorthand': 0,
'operator-linebreak': 0,
'prefer-const': 0,
'prefer-destructuring': 0,
'prefer-object-spread': 0,
'prefer-promise-reject-errors': 0,
'prefer-template': 0,
'semi': ['error', 'always'],
'space-before-function-paren': ['error', 'never'],
'vue/html-indent': ['error', 4],
'vue/max-attributes-per-line': 0,
'vue/multiline-html-element-content-newline': 0,
'vue/no-unused-components': 0,
'vue/no-v-html': 0,
'vue/require-prop-types': 0,
'vue/require-default-prop': 0,
'vue/singleline-html-element-content-newline': 0,
},
overrides: [{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)',
],
env: {
jest: true,
},
}],
};