Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit 56d37ca

Browse files
author
Daniel Brook-Roberge
committed
Add a version of the ES5 styles, ported to 3.x
1 parent b1c9348 commit 56d37ca

1 file changed

Lines changed: 67 additions & 0 deletions

File tree

es5/mobify-es5.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
extends:
2+
- 'eslint:recommended'
3+
env:
4+
node: true
5+
browser: true
6+
amd: true
7+
mocha: true
8+
jquery: true
9+
10+
globals:
11+
Mobify: true
12+
Zepto: true
13+
Adaptive: true
14+
15+
rules:
16+
brace-style:
17+
- error
18+
- 1tbs
19+
- allowSingleLine: true
20+
eqeqeq: error
21+
guard-for-in: error
22+
no-extend-native: error
23+
wrap-iife:
24+
- error
25+
- inside
26+
no-use-before-define:
27+
- error
28+
- nofunc
29+
new-cap: error
30+
no-array-constructor: error
31+
no-new-object: error
32+
no-caller: error
33+
no-empty: error
34+
no-with: error
35+
no-mixed-spaces-and-tabs: error
36+
indent:
37+
- error
38+
- 4
39+
- SwitchCase: 1
40+
no-multi-str: error
41+
camelcase: warn
42+
no-trailing-spaces: error
43+
comma-spacing: error
44+
keyword-spacing: error
45+
space-before-blocks: error
46+
space-before-function-paren:
47+
- error
48+
- never
49+
space-infix-ops: error
50+
space-unary-ops: error
51+
no-undef: error
52+
eol-last: warn
53+
quotes:
54+
- error
55+
- single
56+
no-extra-semi: error
57+
no-inner-declarations: error
58+
max-depth:
59+
- error
60+
- max: 5
61+
max-len:
62+
- error
63+
- code: 300
64+
tabWidth: 4
65+
semi: error
66+
func-style: error
67+
comma: error

0 commit comments

Comments
 (0)