-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated dependencies * Switched CI
- Loading branch information
Showing
21 changed files
with
3,900 additions
and
4,608 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 |
---|---|---|
@@ -1,132 +1,133 @@ | ||
const enabled = "error" // Used to set error level across rules | ||
const enabled = 'error' // Used to set error level across rules | ||
|
||
module.exports = { | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"es6": true, | ||
"jasmine": true, | ||
env: { | ||
browser: true, | ||
node: true, | ||
es6: true, | ||
jasmine: true | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"sourceType": "module" | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
sourceType: 'module' | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:react/recommended', | ||
'plugin:@typescript-eslint/recommended' | ||
], | ||
"rules": { | ||
"@typescript-eslint/array-type": [enabled, { | ||
"default": "array-simple" | ||
rules: { | ||
'@typescript-eslint/array-type': [enabled, { | ||
default: 'array-simple' | ||
}], | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/member-delimiter-style": [enabled, { | ||
"multiline": { | ||
"delimiter": "none", | ||
"requireLast": true | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'@typescript-eslint/member-delimiter-style': [enabled, { | ||
multiline: { | ||
delimiter: 'none', | ||
requireLast: true | ||
}, | ||
"singleline": { | ||
"delimiter": "comma", | ||
"requireLast": false | ||
singleline: { | ||
delimiter: 'comma', | ||
requireLast: false | ||
} | ||
}], | ||
"@typescript-eslint/member-ordering": enabled, | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-use-before-define": "off", | ||
"@typescript-eslint/prefer-for-of": enabled, | ||
"@typescript-eslint/prefer-function-type": enabled, | ||
"@typescript-eslint/quotes": [enabled, | ||
"single", | ||
'@typescript-eslint/member-ordering': enabled, | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-use-before-define': 'off', | ||
'@typescript-eslint/prefer-for-of': enabled, | ||
'@typescript-eslint/prefer-function-type': enabled, | ||
'@typescript-eslint/quotes': [enabled, | ||
'single', | ||
{ | ||
"avoidEscape": true | ||
avoidEscape: true | ||
} | ||
], | ||
"@typescript-eslint/semi": [enabled, "never"], | ||
"@typescript-eslint/unified-signatures": enabled, | ||
"arrow-body-style": enabled, | ||
"arrow-parens": ["off", | ||
"as-needed" | ||
'@typescript-eslint/semi': [enabled, 'never'], | ||
'@typescript-eslint/unified-signatures': enabled, | ||
'arrow-body-style': enabled, | ||
'arrow-parens': ['off', | ||
'as-needed' | ||
], | ||
"camelcase": enabled, | ||
"comma-dangle": enabled, | ||
"constructor-super": enabled, | ||
"dot-notation": enabled, | ||
"eol-last": enabled, | ||
"guard-for-in": enabled, | ||
"id-blacklist": [enabled, | ||
"any", | ||
"number", | ||
"String", | ||
"string", | ||
"Boolean", | ||
"boolean", | ||
'camelcase': enabled, | ||
'comma-dangle': enabled, | ||
'constructor-super': enabled, | ||
'dot-notation': enabled, | ||
'eol-last': enabled, | ||
'guard-for-in': enabled, | ||
'id-blacklist': [enabled, | ||
'any', | ||
'number', | ||
'String', | ||
'string', | ||
'Boolean', | ||
'boolean' | ||
], | ||
"id-match": enabled, | ||
"import/no-extraneous-dependencies": "off", | ||
"import/no-internal-modules": "off", | ||
"sort-imports": [enabled, { | ||
"ignoreCase": true, | ||
"ignoreDeclarationSort": true | ||
'id-match': enabled, | ||
'import/no-extraneous-dependencies': 'off', | ||
'import/no-internal-modules': 'off', | ||
'sort-imports': [enabled, { | ||
ignoreCase: true, | ||
ignoreDeclarationSort: true | ||
}], | ||
"linebreak-style": [enabled, | ||
"unix" | ||
'linebreak-style': [enabled, | ||
'unix' | ||
], | ||
"max-classes-per-file": [enabled, | ||
'max-classes-per-file': [enabled, | ||
1 | ||
], | ||
"max-len": [enabled, { | ||
"code": 180 | ||
'max-len': [enabled, { | ||
code: 180 | ||
}], | ||
"new-parens": enabled, | ||
"no-bitwise": enabled, | ||
"no-caller": enabled, | ||
"no-cond-assign": enabled, | ||
"no-console": "off", | ||
"no-debugger": enabled, | ||
"no-duplicate-case": enabled, | ||
"no-duplicate-imports": enabled, | ||
"no-empty": enabled, | ||
"no-eval": enabled, | ||
"no-extra-bind": enabled, | ||
"no-fallthrough": "off", | ||
"no-invalid-this": "off", | ||
"no-multiple-empty-lines": [enabled, { | ||
"max": 1 | ||
'new-parens': enabled, | ||
'no-bitwise': enabled, | ||
'no-caller': enabled, | ||
'no-cond-assign': enabled, | ||
'no-console': 'off', | ||
'no-debugger': enabled, | ||
'no-duplicate-case': enabled, | ||
'no-duplicate-imports': enabled, | ||
'no-empty': enabled, | ||
'no-eval': enabled, | ||
'no-extra-bind': enabled, | ||
'no-fallthrough': 'off', | ||
'no-invalid-this': 'off', | ||
'no-multiple-empty-lines': [enabled, { | ||
max: 1 | ||
}], | ||
"no-new-func": enabled, | ||
"no-new-wrappers": enabled, | ||
"no-redeclare": enabled, | ||
"no-return-await": enabled, | ||
"no-sequences": enabled, | ||
"no-shadow": [enabled, { | ||
"hoist": "all" | ||
'no-new-func': enabled, | ||
'no-new-wrappers': enabled, | ||
'no-redeclare': enabled, | ||
'no-return-await': enabled, | ||
'no-sequences': enabled, | ||
'no-shadow': [enabled, { | ||
hoist: 'all' | ||
}], | ||
"no-sparse-arrays": enabled, | ||
"no-template-curly-in-string": enabled, | ||
"no-throw-literal": enabled, | ||
"no-trailing-spaces": enabled, | ||
"no-undef-init": enabled, | ||
"no-unsafe-finally": enabled, | ||
"no-unused-vars": "off", | ||
"object-shorthand": enabled, | ||
"one-var": [enabled, | ||
"never" | ||
'no-sparse-arrays': enabled, | ||
'no-template-curly-in-string': enabled, | ||
'no-throw-literal': enabled, | ||
'no-trailing-spaces': enabled, | ||
'no-undef-init': enabled, | ||
'no-unsafe-finally': enabled, | ||
'no-unused-vars': 'off', | ||
'object-shorthand': enabled, | ||
'one-var': [enabled, | ||
'never' | ||
], | ||
"prefer-arrow-callback": enabled, | ||
"prefer-object-spread": enabled, | ||
"prefer-template": enabled, | ||
"quote-props": [enabled, | ||
"consistent-as-needed" | ||
'prefer-arrow-callback': enabled, | ||
'prefer-object-spread': enabled, | ||
'prefer-template': enabled, | ||
'quote-props': [enabled, | ||
'consistent-as-needed' | ||
], | ||
"radix": enabled, | ||
"react/prop-types": "off", | ||
"space-before-function-paren": [enabled, | ||
"always" | ||
'radix': enabled, | ||
'react/prop-types': 'off', | ||
'space-before-function-paren': [enabled, | ||
'always' | ||
], | ||
"space-in-parens": enabled, | ||
"spaced-comment": enabled, | ||
"use-isnan": enabled, | ||
"valid-typeof": "off" | ||
'space-in-parens': enabled, | ||
'spaced-comment': enabled, | ||
'use-isnan': enabled, | ||
'valid-typeof': '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,46 @@ | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
deploy_source: | ||
name: Build and test | ||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
|
||
- name: Lint Typescript | ||
run: yarn lint | ||
|
||
- name: Lint CSS | ||
run: yarn stylelint | ||
|
||
- name: Run unit tests | ||
run: yarn test:cover | ||
|
||
- name: Upload code coverage | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Run e2e tests | ||
run: | | ||
yarn dev & yarn wait-on http://localhost:1337 | ||
yarn test:e2e | ||
- name: Build application | ||
run: yarn prod |
This file was deleted.
Oops, something went wrong.
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
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
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
Oops, something went wrong.