-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit af2b6bf
Showing
49 changed files
with
15,063 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# ignore JS config files/folders | ||
node_modules/ | ||
coverage/ | ||
src/ | ||
lib/ | ||
.babelrc | ||
.builderrc | ||
.eslintrc | ||
.npmignore | ||
.editorconfig | ||
.eslintignore | ||
.prettierrc | ||
.circleci | ||
.github | ||
|
||
# demo folder has special meaning in R | ||
# this should hopefully make it still | ||
# allow for the possibility to make R demos | ||
demo/.*\.js | ||
demo/.*\.html | ||
demo/.*\.css | ||
|
||
# ignore Python files/folders | ||
setup.py | ||
usage.py | ||
setup.py | ||
requirements.txt | ||
MANIFEST.in | ||
CHANGELOG.md | ||
test/ | ||
# CRAN has weird LICENSE requirements | ||
LICENSE.txt | ||
^.*\.Rproj$ | ||
^\.Rproj\.user$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"presets": ["@babel/preset-env", "@babel/preset-react"], | ||
"env": { | ||
"production": { | ||
"plugins": ["@babel/plugin-proposal-object-rest-spread", "styled-jsx/babel"] | ||
}, | ||
"development": { | ||
"plugins": ["@babel/plugin-proposal-object-rest-spread", "styled-jsx/babel"] | ||
}, | ||
"test": { | ||
"plugins": ["@babel/plugin-proposal-object-rest-spread", "styled-jsx/babel-test"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.css | ||
registerServiceWorker.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
{ | ||
"extends": ["eslint:recommended", "prettier"], | ||
"parser": "babel-eslint", | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"arrowFunctions": true, | ||
"blockBindings": true, | ||
"classes": true, | ||
"defaultParams": true, | ||
"destructuring": true, | ||
"forOf": true, | ||
"generators": true, | ||
"modules": true, | ||
"templateStrings": true, | ||
"jsx": true | ||
} | ||
}, | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"jasmine": true, | ||
"jest": true, | ||
"node": true | ||
}, | ||
"globals": { | ||
"jest": true | ||
}, | ||
"plugins": [ | ||
"react", | ||
"import" | ||
], | ||
"rules": { | ||
"accessor-pairs": ["error"], | ||
"block-scoped-var": ["error"], | ||
"consistent-return": ["error"], | ||
"curly": ["error", "all"], | ||
"default-case": ["error"], | ||
"dot-location": ["off"], | ||
"dot-notation": ["error"], | ||
"eqeqeq": ["error"], | ||
"guard-for-in": ["off"], | ||
"import/named": ["off"], | ||
"import/no-duplicates": ["error"], | ||
"import/no-named-as-default": ["error"], | ||
"new-cap": ["error"], | ||
"no-alert": [1], | ||
"no-caller": ["error"], | ||
"no-case-declarations": ["error"], | ||
"no-console": ["off"], | ||
"no-div-regex": ["error"], | ||
"no-dupe-keys": ["error"], | ||
"no-else-return": ["error"], | ||
"no-empty-pattern": ["error"], | ||
"no-eq-null": ["error"], | ||
"no-eval": ["error"], | ||
"no-extend-native": ["error"], | ||
"no-extra-bind": ["error"], | ||
"no-extra-boolean-cast": ["error"], | ||
"no-inline-comments": ["error"], | ||
"no-implicit-coercion": ["error"], | ||
"no-implied-eval": ["error"], | ||
"no-inner-declarations": ["off"], | ||
"no-invalid-this": ["error"], | ||
"no-iterator": ["error"], | ||
"no-labels": ["error"], | ||
"no-lone-blocks": ["error"], | ||
"no-loop-func": ["error"], | ||
"no-multi-str": ["error"], | ||
"no-native-reassign": ["error"], | ||
"no-new": ["error"], | ||
"no-new-func": ["error"], | ||
"no-new-wrappers": ["error"], | ||
"no-param-reassign": ["error"], | ||
"no-process-env": ["warn"], | ||
"no-proto": ["error"], | ||
"no-redeclare": ["error"], | ||
"no-return-assign": ["error"], | ||
"no-script-url": ["error"], | ||
"no-self-compare": ["error"], | ||
"no-sequences": ["error"], | ||
"no-shadow": ["off"], | ||
"no-throw-literal": ["error"], | ||
"no-undefined": ["error"], | ||
"no-unused-expressions": ["error"], | ||
"no-use-before-define": ["error", "nofunc"], | ||
"no-useless-call": ["error"], | ||
"no-useless-concat": ["error"], | ||
"no-with": ["error"], | ||
"prefer-const": ["error"], | ||
"radix": ["error"], | ||
"react/jsx-no-duplicate-props": ["error"], | ||
"react/jsx-no-undef": ["error"], | ||
"react/jsx-uses-react": ["error"], | ||
"react/jsx-uses-vars": ["error"], | ||
"react/no-did-update-set-state": ["error"], | ||
"react/no-direct-mutation-state": ["error"], | ||
"react/no-is-mounted": ["error"], | ||
"react/no-unknown-property": ["error"], | ||
"react/prefer-es6-class": ["error", "always"], | ||
"react/prop-types": "error", | ||
"valid-jsdoc": ["off"], | ||
"yoda": ["error"], | ||
"spaced-comment": ["error", "always", { | ||
"block": { | ||
"exceptions": ["*"] | ||
} | ||
}], | ||
"no-unused-vars": ["error", { | ||
"args": "after-used", | ||
"argsIgnorePattern": "^_", | ||
"caughtErrorsIgnorePattern": "^e$" | ||
}], | ||
"no-magic-numbers": ["error", { | ||
"ignoreArrayIndexes": true, | ||
"ignore": [-1, 0, 1, 2, 3, 100, 10, 0.5] | ||
}], | ||
"no-underscore-dangle": ["off"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: "Testing" | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.7, 3.8] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '12' | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
pip install -r requirements.txt | ||
pip install -r tests/requirements.txt | ||
- name: Test | ||
run: | | ||
npm run build | ||
python usage.py |
Oops, something went wrong.