-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bemhint.js
114 lines (105 loc) · 3.2 KB
/
.bemhint.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
// $Date: 2017-07-17 14:16:38 +0300 (Mon, 17 Jul 2017) $
// $Id: .bemhint.js 8762 2017-07-17 11:16:38Z miheev $
module.exports = {
// list of the folder names which represent redefinition levels (folders with blocks)
levels: [
'root',
'shared',
'controllers',
'interface',
'custom',
'design',
'helpers',
'layout',
'libs',
'loaders',
'pages',
'test',
],
// paths which will be ignored during the validation
excludePaths: [
'**/00*',
'**/*.+(zip|swp|bak|gif|jpg|png|svg|md|diff)',
'**/*+(~|_|00)',
// 'blocks',
// 'blocks/**/*.+(~|_)',
'pages/**/*.+(map|js|json|htm|html|css|~)',
'core',
'templates',
'*.specs',
'fake-data/**',
'!UNUSED',
'node_modules',
'libs',
],
// list of available plugins (node module names relatively to config file path)
plugins: {
'bemhint-css-naming': true,
// 'bemhint-fs-naming': true,
'bemhint-deps-specification': true,
'bemhint-plugins-jshint': {
techs: {
// '*': {
// // правила jshint для всех технологий
// },
'deps.js': {
camelcase: false,
unused: false,
laxbreak: true,
expr: true,
boss: true,
asi: true,
},
'bemhtml': {
bitwise: true,
boss: true,
browser: true,
camelcase: false,
curly: true,
eqeqeq: true,
eqnull: true,
expr: true,
forin: false,
freeze: false,
futurehostile: true,
latedef: 'nofunc',
laxbreak: true,
noarg: true,
nocomma: true,
node: true,
nonbsp: true,
nonew: true,
undef: true,
unused: false,
},
'js': {
bitwise: true,
boss: true,
camelcase: false,
curly: true,
eqeqeq: true,
expr: true,
forin: false,
freeze: false,
futurehostile: true,
latedef: 'nofunc',
laxbreak: true,
noarg: true,
nocomma: true,
nonbsp: true,
nonew: true,
undef: true,
unused: false,
eqnull: true,
browser: true,
node: true,
// ????
globals: {
modules: true,
},
},
'styl|css': false, // не проверять технологию `css`
},
},
},
};