-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
50 lines (49 loc) · 920 Bytes
/
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
44
45
46
47
48
49
50
/**
* Copyright (c) 2018-present pandolajs, All rights reserved.
* @fileoverview eslint stand rule for pandolajs project
* @author JohnHou | [email protected]
* @version 1.0 | 2018-03-03 | JohnHou // 初始版本
*/
module.exports = {
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {
legacyDecorators: true
}
},
plugins: [
'css-modules',
'flowtype'
],
settings: {
'flowtype': {
onlyFilesWithFlowAnnotation: true
}
},
extends: [
'eslint:recommended',
'standard',
'standard-react',
'plugin:css-modules/recommended',
'plugin:flowtype/recommended'
],
root: true,
env: {
jest: true,
browser: true
},
rules: {
'css-modules/no-unused-class': [
'error',
{
'camelCase': true
}
],
'css-modules/no-undef-class': [
'error',
{
'camelCase': true
}
]
}
}