-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.eslintrc.js
45 lines (42 loc) · 1.07 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
/**
* ==================================
* @2017-2018 FEZ前端模块化工程开发框架
* https://github.com/furic-zhao/fez
* ==================================
*/
/**
* ---------------------------------
* eslint配置文件,具体配置请参考:
* https://eslint.org/docs/user-guide/configuring
* *********************************
* 每个项目中的.eslintrc.js将覆盖此文件的配置
* ---------------------------------
*/
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
parser: 'babel-eslint'
},
/**
* 预定义全局变量
* http://eslint.cn/docs/user-guide/configuring#specifying-environments
*/
env: {
browser: true,
node: true,
commonjs: true,
es6: true,
jquery: true
},
extends: [
/**
* FEZ默认使用standard编码规则
* 规则内容请参考:https://github.com/standard/standard/blob/master/docs/RULES-zhcn.md
*/
'standard'
],
plugins: [],
rules: {}
}