Skip to content

Commit

Permalink
feat(Typescript): Improve typings support
Browse files Browse the repository at this point in the history
The source code has been converted to Typescript. As a result, typings support has been greatly improved in gstore.
  • Loading branch information
sebelga committed Sep 26, 2019
1 parent c58c7bf commit 43d9dc2
Show file tree
Hide file tree
Showing 76 changed files with 10,633 additions and 10,306 deletions.
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
/coverage
/logo
/typings
/lib
!.eslintrc.js
52 changes: 52 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
'use strict';

module.exports = {
root: true,
parserOptions: {
sourceType: 'script',
},
extends: ['airbnb-base', 'plugin:prettier/recommended'],
env: {
node: true,
mocha: true,
},
plugins: ['mocha'],
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx'],
},
},
},
rules: {
strict: ['error', 'global'],
'arrow-parens': ['error', 'as-needed'],
indent: [
'error',
2,
{
SwitchCase: 1,
},
],
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: ['**/test/**/*.js'],
},
],
'no-use-before-define': [
'error',
{
functions: false,
},
],
'import/prefer-default-export': 'off',
'prefer-rest-params': 'off',
'prefer-spread': 'off',
'no-restricted-globals': 'off',
'no-underscore-dangle': 'off',
'no-param-reassign': 'off',
'max-len': ['error', { code: 120, ignoreUrls: true }],
'mocha/no-exclusive-tests': 'error',
},
};
58 changes: 0 additions & 58 deletions .eslintrc.json

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ coverage

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
dist/
lib/

# Dependency directory
node_modules
Expand Down
10 changes: 7 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@
jsconfig.json
.travis.yml
.jshintrc
.eslintrc.json
.eslintignore
.eslintrc.js
.prettierrc.js
.babelrc
.editorconfig
tsconfig.json
**/todo.txt
**/notes.txt
CHANGELOG.md
README.md
yarn.lock

test/
src/
scripts/
typings/
**/.trash
.nyc_output/
.vscode/
Expand Down
7 changes: 7 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
semi: true,
trailingComma: 'all',
singleQuote: true,
printWidth: 120,
tabWidth: 2,
};
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ branches:
install: yarn install

script:
- npm test
- npm run build
- npm run test:unit

after_success:
- npm run coveralls
# - npm run coveralls

cache:
yarn: true
Expand Down
8 changes: 0 additions & 8 deletions index.js

This file was deleted.

11 changes: 0 additions & 11 deletions lib/constants.js

This file was deleted.

43 changes: 0 additions & 43 deletions lib/dataloader.js

This file was deleted.

0 comments on commit 43d9dc2

Please sign in to comment.