Skip to content
This repository was archived by the owner on Feb 9, 2024. It is now read-only.

Commit 2e5ecf8

Browse files
author
Seth Yates
committed
feat: big update to v2 with many changes (#138)
* Porting to ES6, Gulp, Karma, Mocha and Webpack * Rearrange source files * Pull in some fixes from various PR's and downstream forks * Publish as a UMD module * Split HtmlParser out to a new project called `postscribe` * Added code climate, david-dm and coveralls
1 parent 1567c17 commit 2e5ecf8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+2950
-16273
lines changed

.codeclimate.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
engines:
3+
duplication:
4+
enabled: true
5+
config:
6+
languages:
7+
- javascript
8+
eslint:
9+
enabled: true
10+
fixme:
11+
enabled: true
12+
ratings:
13+
paths:
14+
- "**.js"
15+
exclude_paths:
16+
- test/

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
lib/**
2+
dist/**
3+
node_modules/**

.eslintrc.js

Lines changed: 233 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,233 @@
1+
module.exports = {
2+
'parser': 'babel-eslint',
3+
'parserOptions': {
4+
'strict': 1,
5+
'ecmaVersion': 6,
6+
'sourceType': 'module'
7+
},
8+
'env': {
9+
'browser': true,
10+
'commonjs': true,
11+
'es6': true
12+
},
13+
'rules': {
14+
'comma-dangle': [
15+
2,
16+
'never'
17+
],
18+
'no-cond-assign': [
19+
2,
20+
'except-parens'
21+
],
22+
'no-console': 1,
23+
'no-constant-condition': 2,
24+
'no-control-regex': 2,
25+
'no-debugger': 1,
26+
'no-dupe-args': 2,
27+
'no-dupe-keys': 2,
28+
'no-duplicate-case': 2,
29+
'no-empty': 2,
30+
'no-empty-character-class': 2,
31+
'no-ex-assign': 2,
32+
'no-extra-boolean-cast': 2,
33+
'no-extra-semi': 2,
34+
'no-func-assign': 0,
35+
'no-inner-declarations': 0,
36+
'no-invalid-regexp': 2,
37+
'no-irregular-whitespace': 2,
38+
'no-negated-in-lhs': 2,
39+
'no-obj-calls': 2,
40+
'no-regex-spaces': 2,
41+
'quote-props': [
42+
2,
43+
'as-needed',
44+
{
45+
'keywords': true,
46+
'unnecessary': false
47+
}
48+
],
49+
'no-sparse-arrays': 0,
50+
'no-unreachable': 1,
51+
'use-isnan': 2,
52+
'valid-jsdoc': 0,
53+
'valid-typeof': 2,
54+
'block-scoped-var': 0,
55+
'complexity': 0,
56+
'consistent-return': 0,
57+
'curly': 2,
58+
'default-case': 1,
59+
'dot-notation': [
60+
2,
61+
{
62+
'allowKeywords': false
63+
}
64+
],
65+
'eqeqeq': 0,
66+
'guard-for-in': 1,
67+
'no-alert': 2,
68+
'no-caller': 2,
69+
'no-div-regex': 1,
70+
'no-else-return': 0,
71+
'no-eq-null': 0,
72+
'no-eval': 2,
73+
'no-extend-native': 2,
74+
'no-extra-bind': 2,
75+
'no-fallthrough': 2,
76+
'no-floating-decimal': 2,
77+
'no-implied-eval': 2,
78+
'no-iterator': 0,
79+
'no-labels': 2,
80+
'no-lone-blocks': 2,
81+
'no-loop-func': 2,
82+
'no-multi-spaces': 2,
83+
'no-multi-str': 1,
84+
'no-native-reassign': 2,
85+
'no-new': 2,
86+
'no-new-func': 2,
87+
'no-new-wrappers': 2,
88+
'no-octal': 2,
89+
'no-octal-escape': 2,
90+
'no-param-reassign': 0,
91+
'no-process-env': 2,
92+
'no-proto': 2,
93+
'no-redeclare': 2,
94+
'no-return-assign': 2,
95+
'no-script-url': 2,
96+
'no-self-compare': 2,
97+
'no-sequences': 2,
98+
'no-throw-literal': 2,
99+
'no-unused-expressions': 2,
100+
'no-void': 0,
101+
'no-warning-comments': 1,
102+
'no-with': 2,
103+
'radix': 2,
104+
'vars-on-top': 0,
105+
'wrap-iife': 2,
106+
'yoda': 0,
107+
'strict': 1,
108+
'no-catch-shadow': 2,
109+
'no-delete-var': 2,
110+
'no-label-var': 2,
111+
'no-shadow': 0,
112+
'no-shadow-restricted-names': 2,
113+
'no-undef': 2,
114+
'no-undef-init': 2,
115+
'no-undefined': 0,
116+
'no-unused-vars': [
117+
2,
118+
{
119+
'vars': 'all',
120+
'args': 'after-used'
121+
}
122+
],
123+
'no-use-before-define': [
124+
2,
125+
'nofunc'
126+
],
127+
'no-mixed-requires': 0,
128+
'indent': 0,
129+
'brace-style': [
130+
2,
131+
'1tbs',
132+
{
133+
'allowSingleLine': true
134+
}
135+
],
136+
'camelcase': 2,
137+
'comma-spacing': [
138+
2,
139+
{
140+
'before': false,
141+
'after': true
142+
}
143+
],
144+
'comma-style': [
145+
2,
146+
'last'
147+
],
148+
'consistent-this': [
149+
1,
150+
'self'
151+
],
152+
'eol-last': 2,
153+
'func-names': 0,
154+
'func-style': [
155+
2,
156+
'declaration'
157+
],
158+
'key-spacing': [
159+
2,
160+
{
161+
'beforeColon': false,
162+
'afterColon': true
163+
}
164+
],
165+
'max-nested-callbacks': 0,
166+
'new-cap': 2,
167+
'new-parens': 2,
168+
'newline-after-var': 0,
169+
'no-array-constructor': 2,
170+
'no-continue': 0,
171+
'no-inline-comments': 0,
172+
'no-lonely-if': 2,
173+
'no-mixed-spaces-and-tabs': 2,
174+
'no-multiple-empty-lines': 0,
175+
'no-nested-ternary': 1,
176+
'no-new-object': 2,
177+
'no-spaced-func': 2,
178+
'no-ternary': 0,
179+
'no-trailing-spaces': 2,
180+
'no-underscore-dangle': 0,
181+
'no-extra-parens': [
182+
2,
183+
'functions'
184+
],
185+
'one-var': 0,
186+
'operator-assignment': 0,
187+
'padded-blocks': 0,
188+
'quotes': [
189+
2,
190+
'single',
191+
'avoid-escape'
192+
],
193+
'semi': 2,
194+
'semi-spacing': [
195+
2,
196+
{
197+
'before': false,
198+
'after': true
199+
}
200+
],
201+
'sort-vars': 0,
202+
'keyword-spacing': 2,
203+
'space-before-blocks': [
204+
2,
205+
'always'
206+
],
207+
'space-before-function-paren': [
208+
2,
209+
{
210+
'anonymous': 'never',
211+
'named': 'never'
212+
}
213+
],
214+
'space-in-brackets': 0,
215+
'space-in-parens': [
216+
2,
217+
'never'
218+
],
219+
'space-infix-ops': 2,
220+
'space-unary-ops': 2,
221+
'spaced-comment': [
222+
2,
223+
'always',
224+
{
225+
'markers': [
226+
','
227+
]
228+
}
229+
],
230+
'wrap-regex': 1,
231+
'no-var': 1
232+
}
233+
};

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
.idea/
66
.*.swp
77
.*.un~
8+
*.iml
89

910
# NPM artifacts
1011
node_modules/
11-
npm-debug.log
12+
npm-*.log
1213

1314
# Generated files
14-
test/expected.js
1515
.idea/
16+
17+
dist/

.jscsrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"preset": "google",
3+
"esnext": true,
4+
"maximumLineLength": null,
5+
"validateQuoteMarks": { "mark": "'", "escape": true }
6+
}

.jshintrc

Lines changed: 0 additions & 30 deletions
This file was deleted.

.npmignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.codeclimate.yml
2+
.editorconfig
3+
.eslint*
4+
.idea/**
5+
.jscsrc
6+
.travis.yml
7+
CLA.md
8+
CONTRIBUTING.md
9+
gulpfile.babel.js
10+
src/**
11+
test/**
12+
webpack.config.babel.js
13+
*.iml

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@ sudo: false
22

33
language: node_js
44

5-
# test on these node.js versions
65
node_js:
7-
- 0.10
6+
- 5
87

98
before_script:
10-
# Run lint on every commit
9+
- npm run build
1110
- npm run lint
1211

12+
script:
13+
- npm run test:ci
14+
1315
notifications:
1416
email:
1517
recipients:

AUTHORS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Derek Brans (https://github.com/dbrans)
2+
Nick Sullivan (https://github.com/gorillamania)
3+
Joshua Newman (https://github.com/jnewman)
4+
Seth Yates (https://github.com/sethyates)

0 commit comments

Comments
 (0)