forked from ergonode/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
83 lines (83 loc) · 2.46 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
78
79
80
81
82
83
/*
* Copyright © Bold Brand Commerce Sp. z o.o. All rights reserved.
* See LICENSE for license details.
*/
module.exports = {
root: true,
env: {
browser: true,
es6: true,
node: true,
jest: true,
"cypress/globals": true
},
parserOptions: {
parser: 'babel-eslint'
},
extends: [
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
'airbnb-base',
'plugin:vue/strongly-recommended',
'plugin:jest/recommended',
'plugin:cypress/recommended'
],
// required to lint *.vue files
plugins: [
'vue',
'jest',
'notice',
'cypress'
],
// add your custom rules here
rules: {
'notice/notice':[
"error", {
"templateFile":"./config/.copyright",
"messages":{
"whenFailedToMatch":"Couldn't find 'License Header', are you sure you added it?"
}
},
],
'import/extensions': 'off',
'no-console': 'off',
'no-alert': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
'import/no-unresolved': ['off'],
'import/prefer-default-export': ['off'],
'vue/html-indent': ['error', 4],
'vue/html-closing-bracket-newline': ['off'],
'indent': ['error', 4],
'no-param-reassign': ['error', {
props: true,
ignorePropertyModificationsFor: [
'state',
],
}],
'class-methods-use-this':['off'],
'global-require': ['off'],
'import/no-dynamic-require': ['off'],
'no-underscore-dangle': 'off',
'no-unused-vars':['error', { 'argsIgnorePattern': 'commit' }],
'max-len': ['error', {
'code': 100,
'ignoreTrailingComments': true,
'ignoreComments': true,
'ignoreUrls': true,
'ignoreStrings': true,
'ignoreTemplateLiterals': true,
}],
'vue/component-name-in-template-casing': ['error',
'PascalCase',
{
'ignores': ['nuxt', 'nuxt-link'],
}
],
'vue/order-in-components': ['error', {
'order': [
'asyncData',
'fetch',
],
}],
}
};