-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.js
43 lines (41 loc) · 1.19 KB
/
index.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
/**
* @fileoverview Add supporting of pugjs with react
*/
/* eslint-disable global-require */
const allRules = {
'empty-lines': require('./lib/rules/empty-lines'),
eslint: require('./lib/rules/eslint'),
indent: require('./lib/rules/indent'),
'no-broken-template': require('./lib/rules/no-broken-template'),
'no-interpolation': require('./lib/rules/no-interpolation'),
'no-undef': require('./lib/rules/no-undef'),
'prop-types': require('./lib/rules/prop-types'),
'pug-lint': require('./lib/rules/pug-lint'),
quotes: require('./lib/rules/quotes'),
'uses-react': require('./lib/rules/uses-react'),
'uses-vars': require('./lib/rules/uses-vars'),
}
/* eslint-enable */
module.exports = {
rules: allRules,
configs: {
all: {
globals: {
pug: true,
},
rules: {
'react-pug/empty-lines': 2,
'react-pug/eslint': 2,
'react-pug/indent': 2,
'react-pug/no-broken-template': 2,
'react-pug/no-undef': 2,
'react-pug/prop-types': 2,
'react-pug/pug-lint': 2,
'react-pug/no-interpolation': 2,
'react-pug/quotes': 2,
'react-pug/uses-react': 2,
'react-pug/uses-vars': 2,
},
},
},
}