Skip to content

Commit ae266c5

Browse files
feat: migrate to TS
BREAKING CHANGE: Remove jQuery adapter
1 parent 98bc7fa commit ae266c5

Some content is hidden

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

51 files changed

+2811
-1732
lines changed

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
indent_size = 2
11+
indent_style = space
12+
insert_final_newline = true
13+
trim_trailing_whitespace = true
14+
15+
[*.{yml,yaml}]
16+
insert_final_newline = false
17+
18+
[*.{diff,md}]
19+
trim_trailing_whitespace = false

.eslintignore

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

.eslintrc.js

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,43 @@
11
module.exports = {
2-
extends: 'standard',
2+
root: true,
33
env: {
4-
jquery: true,
5-
browser: true
4+
browser: true,
65
},
7-
rules: {
8-
semi: 0,
9-
'no-unused-expressions': 1
10-
}
11-
}
6+
extends: [
7+
'eslint:recommended',
8+
'plugin:@typescript-eslint/recommended',
9+
'plugin:@typescript-eslint/recommended-requiring-type-checking',
10+
],
11+
parser: '@typescript-eslint/parser',
12+
parserOptions: {
13+
sourceType: 'module',
14+
project: './tsconfig.json',
15+
},
16+
plugins: ['@typescript-eslint'],
17+
settings: {
18+
'import/parsers': {
19+
'@typescript-eslint/parser': ['.ts'],
20+
},
21+
'import/resolver': {
22+
typescript: {
23+
alwaysTryTypes: true,
24+
project: ['tsconfig.json'],
25+
},
26+
},
27+
},
28+
rules: {},
29+
overrides: [
30+
{
31+
files: ['tests/**/*.ts'],
32+
env: {
33+
browser: true,
34+
node: true,
35+
mocha: true,
36+
},
37+
globals: {
38+
chai: true,
39+
expect: true,
40+
},
41+
},
42+
],
43+
};

bower.json

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

dist/jquery.slotmachine.css

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

dist/jquery.slotmachine.js

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

dist/jquery.slotmachine.min.css

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

dist/jquery.slotmachine.min.js

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

styles/index.css renamed to dist/slotmachine.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020

2121
.slotMachineGradient {
2222
-webkit-mask-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(0,0,0,0)), color-stop(25%, rgba(0,0,0,1)), color-stop(75%, rgba(0,0,0,1)), color-stop(100%, rgba(0,0,0,0)) );
23-
mask: url("data:image/svg+xml;utf8,<svg version="1.1" xmlns="http:// www.w3.org/2000/svg" width="0" height="0"><mask id="slotMachineFadeMask" maskUnits="objectBoundingBox" maskContentUnits="objectBoundingBox"><linearGradient id="slotMachineFadeGradient" gradientUnits="objectBoundingBox" x="0" y="0"><stop stop-color="white" stop-opacity="0" offset="0"></stop><stop stop-color="white" stop-opacity="1" offset="0.25"></stop><stop stop-color="white" stop-opacity="1" offset="0.75"></stop><stop stop-color="white" stop-opacity="0" offset="1"></stop></linearGradient><rect x="0" y="-1" width="1" height="1" transform="rotate(90)" fill="url(#slotMachineFadeMask)"></rect></mask></svg>#slotMachineFadeMask");
23+
mask: url('data:image/svg+xml;utf8,<svg version="1.1" xmlns="http:// www.w3.org/2000/svg" width="0" height="0"><mask id="slotMachineFadeMask" maskUnits="objectBoundingBox" maskContentUnits="objectBoundingBox"><linearGradient id="slotMachineFadeGradient" gradientUnits="objectBoundingBox" x="0" y="0"><stop stop-color="white" stop-opacity="0" offset="0"></stop><stop stop-color="white" stop-opacity="1" offset="0.25"></stop><stop stop-color="white" stop-opacity="1" offset="0.75"></stop><stop stop-color="white" stop-opacity="0" offset="1"></stop></linearGradient><rect x="0" y="-1" width="1" height="1" transform="rotate(90)" fill="url(#slotMachineFadeMask)"></rect></mask></svg>#slotMachineFadeMask');
2424
}

0 commit comments

Comments
 (0)