Skip to content

Commit 1aafc3e

Browse files
authored
Merge pull request #197 from glebmachine/feature/196/es6-refactor
1.0.0-alpha 1 release.
2 parents ebf476e + 073a2ba commit 1aafc3e

Some content is hidden

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

81 files changed

+7956
-3219
lines changed

.editorconfig

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
14
root = true
25

6+
# Unix-style newlines with a newline ending every file
37
[*]
4-
indent_style = space
5-
indent_size = 4
68
end_of_line = lf
9+
indent_style = space
10+
indent_size = 2
711
charset = utf-8
812
trim_trailing_whitespace = true
913
insert_final_newline = true
1014

11-
[*.{json,yml}]
12-
indent_size = 2
15+
# Tab indentation (no size specified)
16+
[Makefile]
17+
indent_style = tab

.eslintignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
.eslintrc.js
3+
commitizen.config.js
4+
commitlint.config.js
5+
coverage

.eslintrc.js

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
mocha: true,
5+
node: true,
6+
},
7+
parserOptions: {
8+
ecmaVersion: 2017,
9+
},
10+
plugins: ['prettier', 'jsdoc'],
11+
extends: ['eslint:recommended', 'airbnb-base', 'plugin:prettier/recommended'],
12+
rules: {
13+
// Only allow debugger in development
14+
'no-debugger': process.env.PRE_COMMIT ? 'error' : 'off',
15+
16+
// Only allow `console.log` in development
17+
'no-console': process.env.PRE_COMMIT
18+
? ['error', { allow: ['warn', 'error'] }]
19+
: 'off',
20+
'prettier/prettier': 'error',
21+
'max-len': [
22+
'warn',
23+
{
24+
code: 80,
25+
ignoreTrailingComments: true,
26+
ignoreStrings: true,
27+
ignoreTemplateLiterals: true,
28+
},
29+
],
30+
// JSDoc linting rules.
31+
'jsdoc/check-alignment': 'warn',
32+
'jsdoc/check-examples': 'warn',
33+
'jsdoc/check-indentation': 'warn',
34+
'jsdoc/check-param-names': 'warn',
35+
'jsdoc/check-syntax': 'warn',
36+
'jsdoc/check-tag-names': 'warn',
37+
'jsdoc/check-types': 'warn',
38+
'jsdoc/implements-on-classes': 'warn',
39+
'jsdoc/match-description': 'warn',
40+
'jsdoc/newline-after-description': 'warn',
41+
'jsdoc/no-types': 'off',
42+
'jsdoc/no-undefined-types': [
43+
'warn',
44+
{
45+
definedTypes: ['Promise'],
46+
},
47+
],
48+
'jsdoc/require-description': 'off',
49+
'jsdoc/require-description-complete-sentence': 'warn',
50+
'jsdoc/require-example': 'off',
51+
'jsdoc/require-hyphen-before-param-description': 'warn',
52+
'jsdoc/require-jsdoc': 'warn',
53+
'jsdoc/require-param': 'warn',
54+
'jsdoc/require-param-description': 'warn',
55+
'jsdoc/require-param-name': 'warn',
56+
'jsdoc/require-param-type': 'warn',
57+
'jsdoc/require-returns': 'warn',
58+
'jsdoc/require-returns-check': 'warn',
59+
'jsdoc/require-returns-description': 'off',
60+
'jsdoc/require-returns-type': 'warn',
61+
'jsdoc/valid-types': 'warn',
62+
},
63+
};

.eslintrc.json

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

.gitattributes

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Fix end-of-lines in Git versions older than 2.10
2+
# https://github.com/git/git/blob/master/Documentation/RelNotes/2.10.0.txt#L248
3+
* text=auto eol=lf
4+
5+
# ===
6+
# Binary Files (don't diff, don't fix line endings)
7+
# ===
8+
9+
# Images
10+
*.png binary
11+
*.jpg binary
12+
*.jpeg binary
13+
*.gif binary
14+
*.ico binary
15+
*.tiff binary
16+
17+
# Fonts
18+
*.oft binary
19+
*.ttf binary
20+
*.eot binary
21+
*.woff binary
22+
*.woff2 binary
23+
24+
# Videos
25+
*.mov binary
26+
*.mp4 binary
27+
*.webm binary
28+
*.ogg binary
29+
*.mpg binary
30+
*.3gp binary
31+
*.avi binary
32+
*.wmv binary
33+
*.flv binary
34+
*.asf binary
35+
36+
# Audio
37+
*.mp3 binary
38+
*.wav binary
39+
*.flac binary
40+
41+
# Compressed
42+
*.gz binary
43+
*.zip binary
44+
*.7z binary

.githooks/pre-commit/lint

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

.gitignore

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1-
node_modules/
1+
## OS generated files ##
2+
*.DS_Store
3+
*.DS_Store?
4+
._*
5+
*.Spotlight-V100
6+
*.Trashes
7+
Icon?
8+
ehthumbs.db
9+
Thumbs.db
10+
11+
## Sublime Text files ##
12+
*.sublime-project
13+
*.sublime-workspace
14+
15+
## VS Code Files ##
16+
.vscode
17+
18+
## Ignore the Node Modules folder ##
19+
node_modules
20+
21+
## Ignore debug log files ##
222
npm-debug.log
3-
.DS_Store
23+
24+
## Test coverage files ##
25+
.nyc_output
26+
coverage
27+
test/**/sprites
28+
test/demo/output.css

.jscsrc

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

.jshintrc

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

.npmignore

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1-
.gitignore
2-
1+
# Node files/folders.
32
node_modules/
43
npm-debug.log
54

5+
# Test files/folders.
66
test/
7+
coverage/
78
.travis.yml
8-
99
gulpfile.js
10+
11+
# Lint/git configuration files.
12+
.editorconfig
13+
.eslintignore
14+
.eslintrc.js
15+
.gitattributes
16+
.gitignore
17+
.prettierignore
18+
.prettierrc.js
19+
commitizen.config.js
20+
commitlint.config.js

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/node_modules/**
2+
**/output.css

.prettierrc.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// prettier.config.js or .prettierrc.js
2+
module.exports = {
3+
arrowParens: 'always',
4+
bracketSpacing: true,
5+
endOfLine: 'lf',
6+
htmlWhitespaceSensitivity: 'strict',
7+
jsxBracketSameLine: false,
8+
printWidth: 80,
9+
proseWrap: 'never',
10+
semi: true,
11+
singleQuote: true,
12+
tabWidth: 2,
13+
trailingComma: 'es5',
14+
useTabs: false,
15+
};

.travis.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
sudo: false
22
language: node_js
33
node_js:
4+
- '12'
5+
- '11'
6+
- '10'
7+
- '9'
48
- '8'
5-
- '6'
6-
- '5'
7-
- '4.2'
8-
- '4.1'
9-
- '4.0'
109
script:
1110
- npm run test

CHANGELOG.md

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,40 @@
1-
#0.1.7
1+
# Changelog
2+
3+
## 0.1.10
4+
5+
- Update lodash dependency to 4.17.11.
6+
- Replace custom console.log override 'fixture-stdout' library.
7+
- Updated other non-major dependencies.
8+
- Update Travis config to test with more recent versions of Node.
9+
- Add package-lock.json file so consistent install of dependencies can be assured.
10+
11+
## 0.1.9
12+
13+
- Save .parent prior to replaceWith #181. Thanks for [@AMar4enko](https://github.com/AMar4enko) Cheers!)
14+
15+
## 0.1.8
16+
17+
- Fixed minified css support. Big thank to [@jonas8](https://github.com/jonas8) Cheers!
18+
19+
## 0.1.7
220

321
- Package deps fixed, huge thanks and lots of beer for [Daniel Lindenkreuz @dlindenkreuz](http://github.com/dlindenkreuz))
422

5-
#0.1.6
23+
## 0.1.6
624

7-
- Package deps updated (broken!)
25+
- Package deps updated (broken!)
826

9-
#0.1.5
27+
## 0.1.5
1028

1129
- Fixes improper rule property in background-color extraction function.
12-
- Fixed linter warnings in plugin tests.
30+
- Fixed linter warnings in plugin tests.
1331

1432
Thanks for [Eugene Romanovsky @setage](http://github.com/setage) again 🍺
1533

16-
#0.1.4
17-
18-
- Deprecation warnings fixed (Thanks for [Eugene Romanovsky @setage](http://github.com/setage))
34+
## 0.1.4
1935

36+
- Deprecation warnings fixed (Thanks for [Eugene Romanovsky @setage](http://github.com/setage))
2037

21-
#0.1.3
38+
## 0.1.3
2239

2340
- Added tests

0 commit comments

Comments
 (0)