Skip to content

Commit cbde738

Browse files
Move to TypeScript (#444)
Move to TypeScript
2 parents e36ec0e + 17fd781 commit cbde738

File tree

280 files changed

+5299
-5102
lines changed

Some content is hidden

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

280 files changed

+5299
-5102
lines changed

.babelrc

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

.bookignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.github/
22
__tests__/
33
examples/
4-
flow-typed/
54
lib/
65
scratch/
76
src/

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
**/lib/**
22
**/*.sketchplugin/**
33
**/node_modules/**
4-
**/flow-typed/**
54
**/_book/**
65
**/template/**

.eslintrc

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
{
2-
"parser": "babel-eslint",
2+
"parser": "@typescript-eslint/parser",
33
"root": true,
4-
"extends": [
5-
"airbnb",
6-
"sketch",
7-
"prettier"
8-
],
9-
"plugins": ["prettier"],
4+
"extends": ["airbnb", "sketch", "prettier"],
5+
"plugins": ["@typescript-eslint", "prettier"],
106
"globals": {
117
"React$Component": true,
128
"React$Element": true,

.flowconfig

Lines changed: 0 additions & 44 deletions
This file was deleted.
File renamed without changes.

CONTRIBUTING.md renamed to .github/CONTRIBUTING.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@ It is recommended that you install an ESlint plugin for your editor of choice wh
5252
npm run lint
5353
```
5454

55-
It is also type-checked with [Flow](https://flow.org/) - run with
56-
57-
```bash
58-
npm run flow
59-
```
60-
6155
### Docs
6256

6357
We always appreciate improvements to the documentation!

.jestrc.json

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

.npmrc

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

.travis.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,23 @@ language: node_js
33
cache:
44
directories:
55
- node_modules
6-
- $HOME/Library/Caches/Homebrew
6+
# - $HOME/Library/Caches/Homebrew
77
notifications:
88
email: false
99
node_js:
1010
- 'lts/*'
11-
before_install:
12-
- brew update
13-
- brew cask install sketch # install Sketch
14-
- mkdir -p "~/Library/Application Support/com.bohemiancoding.sketch3/Plugins" # create plugins folder
15-
- echo $SKETCH_LICENSE > "~/Library/Application Support/com.bohemiancoding.sketch3/.deployment" # add the Sketch license
16-
- nvm install-latest-npm
11+
# before_install:
12+
# - brew update
13+
# - brew cask install sketch # install Sketch
14+
# - mkdir -p "~/Library/Application Support/com.bohemiancoding.sketch3/Plugins" # create plugins folder
15+
# - echo $SKETCH_LICENSE > "~/Library/Application Support/com.bohemiancoding.sketch3/.deployment" # add the Sketch license
1716
before_script:
1817
- npm prune
1918
script:
20-
- npm run check
19+
- npm run test:ci
2120
# - npm run test:e2e -- --app=/Applications/Sketch.app
22-
after_script:
23-
- rm "~/Library/App Support/com.bohemiancoding.sketch3/.deployment" # remove the Sketch license
21+
# after_script:
22+
# - rm "~/Library/App Support/com.bohemiancoding.sketch3/.deployment" # remove the Sketch license
2423
branches:
2524
except:
2625
- /^v\d+\.\d+\.\d+$/

0 commit comments

Comments
 (0)