Skip to content

Commit 73bb6be

Browse files
committed
feat(lint): add lint command and example
1 parent 0446c3a commit 73bb6be

File tree

16 files changed

+10557
-0
lines changed

16 files changed

+10557
-0
lines changed

examples/lint/.eslintrc.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"commonjs": true,
5+
"node": false
6+
},
7+
"extends": "eslint:recommended",
8+
"globals": {
9+
"$": true,
10+
"$$": true,
11+
"avalon": true,
12+
"Hogan": true,
13+
"jQuery": true,
14+
"Promise": true,
15+
"Q": true
16+
},
17+
"rules": {}
18+
}

examples/lint/README.md

Whitespace-only changes.

examples/lint/environment.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
local:
2+
DEBUG: true
3+
4+
dev:
5+
DEBUG: true
6+
7+
beta:
8+
DEBUG: false
9+
10+
prd:
11+
DEBUG: false

examples/lint/fekit.config

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"compiler": "modular",
3+
"name": "lint",
4+
"version": "0.0.0",
5+
"dependencies": {
6+
"jquery": "1.11.3"
7+
},
8+
"alias": {},
9+
"export": []
10+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
jQuery
2+
====================
3+
标准的jQuery
4+
5+
### 使用方法
6+
7+
require('jquery')
8+
9+
### 注意事项
10+
11+
* 在normal/moudlar模式可以直接使用 $ , jQuery
12+
* modular模式也可以使用 var $ = require('jquery')
13+
14+
### API
15+
请参考[官方文档](http://api.jquery.com/)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"compiler": "component",
3+
"name": "jquery",
4+
"version": "1.11.3",
5+
"author": "hao.lin,Hotel",
6+
"email": "hao.lin@qunar.com",
7+
"description": "jQuery的 fekit 组件版",
8+
"repository": "https://github.com/jquery/jquery.git",
9+
"dependencies": {},
10+
"alias": {},
11+
"export": []
12+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require('./jquery.js');
2+
3+
if( typeof module != 'undefined' && module.exports ) { module.exports = jQuery; }

0 commit comments

Comments
 (0)