-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #131 from makebrainwaves/dano/boilerplate
Project "Jiffy Lube": TypeScript, Continuous Integration, React 16.13, etc.
- Loading branch information
Showing
208 changed files
with
27,729 additions
and
34,507 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,84 +1,51 @@ | ||
module.exports = { | ||
parser: 'babel-eslint', | ||
parserOptions: { | ||
sourceType: 'module', | ||
allowImportExportEverywhere: true, | ||
}, | ||
extends: ['airbnb', 'prettier'], | ||
env: { | ||
browser: true, | ||
node: true, | ||
}, | ||
extends: 'erb/typescript', | ||
rules: { | ||
'arrow-parens': ['off'], | ||
'compat/compat': 'error', | ||
'consistent-return': 'off', | ||
'comma-dangle': 'off', | ||
'generator-star-spacing': 'off', | ||
'flowtype/object-type-delimiter': 'off', | ||
'flowtype/no-weak-types': 'warn', | ||
'import/no-unresolved': 'error', | ||
'@typescript-eslint/ban-ts-comment': 'warn', | ||
'@typescript-eslint/no-use-before-define': 'off', | ||
'@typescript-eslint/naming-convention': 'off', | ||
'consistent-return': 'warn', | ||
'dot-notation': 'off', | ||
'import/no-extraneous-dependencies': 'off', | ||
'jsx-a11y/anchor-is-valid': 'off', | ||
'no-console': 'off', | ||
'no-use-before-define': 'off', | ||
'no-multi-assign': 'off', | ||
'import/prefer-default-export': 'off', | ||
'jsx-a11y/anchor-is-valid': 'warn', | ||
'jsx-a11y/click-events-have-key-events': 'warn', | ||
'lines-between-class-members': 'off', | ||
'max-classes-per-file': 'off', | ||
'no-param-reassign': 'off', | ||
'no-plusplus': 'off', | ||
'no-param-reassign': 'warn', | ||
'promise/param-names': 'error', | ||
'promise/always-return': 'error', | ||
'promise/catch-or-return': 'error', | ||
'promise/no-native': 'off', | ||
'prefer-destructuring': 'off', | ||
'react/no-will-update-set-state': 'warn', | ||
'react/no-did-mount-set-state': 'warn', | ||
'react/no-did-update-set-state': 'warn', | ||
'react/sort-comp': [ | ||
'error', | ||
{ | ||
order: ['type-annotations', 'static-methods', 'lifecycle', 'everything-else', 'render'], | ||
}, | ||
], | ||
'react/jsx-no-bind': 'off', | ||
'react/jsx-filename-extension': ['error', { extensions: ['.js', '.jsx'] }], | ||
'react/prefer-stateless-function': 'off', | ||
'linebreak-style': 'off', | ||
'jsx-a11y/click-events-have-key-events': 'off', | ||
'flowtype/boolean-style': ['error', 'boolean'], | ||
'flowtype/define-flow-type': 'warn', | ||
'flowtype/delimiter-dangle': 'off', | ||
'flowtype/generic-spacing': ['error', 'never'], | ||
'flowtype/no-primitive-constructor-types': 'error', | ||
'flowtype/no-weak-types': 'warn', | ||
'flowtype/object-type-delimiter': ['off'], | ||
'flowtype/require-parameter-type': 'off', | ||
'flowtype/require-return-type': 'off', | ||
'flowtype/require-valid-file-annotation': 'off', | ||
'flowtype/semi': ['error', 'always'], | ||
'flowtype/space-after-type-colon': ['error', 'always'], | ||
'flowtype/space-before-generic-bracket': ['error', 'never'], | ||
'flowtype/space-before-type-colon': ['error', 'never'], | ||
'flowtype/union-intersection-spacing': ['error', 'always'], | ||
'flowtype/use-flow-type': 'error', | ||
'flowtype/valid-syntax': 'error', | ||
'react/no-will-update-set-state': 'warn', | ||
'no-restricted-syntax': 'off', | ||
'prefer-destructuring': 'warn', | ||
'promise/no-return-wrap': 'warn', | ||
'react/destructuring-assignment': 'off', | ||
'react/jsx-props-no-spreading': 'warn', | ||
'react/jsx-wrap-multilines': 'off', | ||
'react/jsx-curly-newline': 'off', | ||
'react/jsx-one-expression-per-line': 'off', | ||
'import/order': 'off', | ||
'max-classes-per-file': 'off', | ||
'dot-notation': 'off', | ||
'linebreak-style': 0, | ||
'import/prefer-default-export': 0, | ||
'react/jsx-props-no-spreading': 'off', | ||
'react/jsx-wrap-multilines': 'off', | ||
'react/no-access-state-in-setstate': 'warn', | ||
'react/no-array-index-key': 'off', | ||
'react/no-did-update-set-state': 'warn', | ||
'react/no-will-update-set-state': 'warn', | ||
'react/prop-types': 'off', | ||
'react/static-property-placement': 'off', | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: 'module', | ||
project: './tsconfig.json', | ||
tsconfigRootDir: __dirname, | ||
createDefaultProgram: true, | ||
}, | ||
plugins: ['flowtype', 'import', 'promise', 'compat', 'react'], | ||
settings: { | ||
'import/resolver': { | ||
// See https://github.com/benmosher/eslint-plugin-import/issues/1396#issuecomment-575727774 for line below | ||
node: {}, | ||
webpack: { | ||
config: require.resolve('./webpack.config.eslint.js'), | ||
config: require.resolve('./configs/webpack.config.eslint.js'), | ||
}, | ||
}, | ||
'import/parsers': { | ||
'@typescript-eslint/parser': ['.ts', '.tsx'], | ||
}, | ||
}, | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
requiredHeaders: | ||
- Prerequisites | ||
- Expected Behavior | ||
- Current Behavior | ||
- Possible Solution | ||
- Your Environment |
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,36 @@ | ||
name: Test | ||
|
||
on: push | ||
|
||
jobs: | ||
release: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [macos-latest, windows-2019, ubuntu-18.04] | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v1 | ||
|
||
- name: Install Node.js, NPM and Yarn | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 13 | ||
|
||
- name: yarn install | ||
run: | | ||
yarn install | ||
- name: yarn test | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
yarn package-ci | ||
yarn lint | ||
yarn tsc | ||
# Failing because virtual framebuffer not installed | ||
# yarn build-e2e | ||
# yarn test-e2e |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.