Skip to content

Commit d46f601

Browse files
authored
Merge pull request #4 from github/modern-js
Update for modern browsers
2 parents 932191d + e40e30b commit d46f601

8 files changed

+172
-297
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ Browsers without native [custom element support][support] require a [polyfill][]
6363
- Chrome
6464
- Firefox
6565
- Safari
66-
- Internet Explorer 11
6766
- Microsoft Edge
6867

6968
[support]: https://caniuse.com/#feat=custom-elementsv1

package-lock.json

Lines changed: 160 additions & 284 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"module": "dist/index.esm.js",
88
"scripts": {
99
"clean": "rm -rf dist",
10-
"lint": "eslint src/ test/ && flow check",
10+
"lint": "eslint . && flow check",
1111
"prebuild": "npm run clean && npm run lint",
1212
"build": "rollup -c && cp src/task-lists-element.js.flow dist/index.esm.js.flow && cp src/task-lists-element.js.flow dist/index.umd.js.flow",
1313
"pretest": "npm run build",
@@ -24,12 +24,10 @@
2424
],
2525
"devDependencies": {
2626
"@babel/core": "^7.2.2",
27-
"@babel/preset-env": "^7.2.3",
28-
"@babel/preset-flow": "^7.0.0",
29-
"babel-plugin-transform-custom-element-classes": "^0.1.0",
27+
"babel-preset-github": "^2.1.1",
3028
"chai": "^4.2.0",
3129
"eslint": "^5.12.0",
32-
"eslint-plugin-github": "^1.6.1",
30+
"eslint-plugin-github": "^1.9.0",
3331
"flow-bin": "^0.92.1",
3432
"karma": "^4.0.0",
3533
"karma-chai": "^0.1.0",
@@ -39,5 +37,8 @@
3937
"mocha": "^5.2.0",
4038
"rollup": "^1.0.2",
4139
"rollup-plugin-babel": "^4.2.0"
42-
}
40+
},
41+
"eslintIgnore": [
42+
"dist/"
43+
]
4344
}

rollup.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ export default {
1919
],
2020
plugins: [
2121
babel({
22-
plugins: ['transform-custom-element-classes'],
23-
presets: ['@babel/env', '@babel/flow']
22+
presets: ['github']
2423
})
2524
]
2625
}

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
/* @flow strict */
22

33
import TaskListsElement from './task-lists-element'
44
export {TaskListsElement as default}

src/sortable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
/* @flow strict */
22

33
type SortStartHandler = (srcList: Element) => mixed
44
type SortEndHandler = ({

src/task-lists-element.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
/* @flow strict */
22

33
import {isDragging, sortable} from './sortable'
44

src/task-lists-element.js.flow

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
/* @flow strict */
22

33
declare class TaskListsElement extends HTMLElement {
44
get disabled(): boolean;

0 commit comments

Comments
 (0)