Skip to content

Commit

Permalink
WIP Monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Apr 27, 2023
1 parent 88b1991 commit b3f4ccc
Show file tree
Hide file tree
Showing 171 changed files with 49,966 additions and 3,231 deletions.
100 changes: 15 additions & 85 deletions .eslintrc.js
@@ -1,86 +1,16 @@
module.exports = {
'extends': [
'airbnb',
'prettier'
],
'parser': '@typescript-eslint/parser',
'parserOptions': {
'ecmaVersion': 2018,
'sourceType': 'module',
'modules': true
},
'plugins': [
'@typescript-eslint'
],
'settings': {
'import/resolver': {
'typescript': {
}
}
},
'rules': {
'quotes': [
2,
'single',
{
'allowTemplateLiterals': true
}
],
'class-methods-use-this': 0,
'consistent-return': 0,
'func-names': 0,
'global-require': 0,
'guard-for-in': 0,
'import/no-duplicates': 0,
'import/no-dynamic-require': 0,
'import/no-extraneous-dependencies': 0,
'import/prefer-default-export': 0,
'lines-between-class-members': 0,
'no-await-in-loop': 0,
'no-bitwise': 0,
'no-console': 0,
'no-continue': 0,
'no-control-regex': 0,
'no-empty': 0,
'no-loop-func': 0,
'no-nested-ternary': 0,
'no-param-reassign': 0,
'no-plusplus': 0,
'no-restricted-globals': 0,
'no-restricted-syntax': 0,
'no-shadow': 0,
'no-underscore-dangle': 0,
'no-use-before-define': 0,
'prefer-const': 0,
'prefer-destructuring': 0,
'camelcase': 0,
'no-unused-vars': 0, // in favor of '@typescript-eslint/no-unused-vars'
// 'indent': 0 // in favor of '@typescript-eslint/indent'
'@typescript-eslint/no-unused-vars': 'warn',
// '@typescript-eslint/indent': ['error', 2] // this might conflict with a lot ongoing changes
'@typescript-eslint/no-array-constructor': 'error',
'@typescript-eslint/adjacent-overload-signatures': 'error',
'@typescript-eslint/class-name-casing': 'error',
'@typescript-eslint/interface-name-prefix': 'error',
'@typescript-eslint/no-empty-interface': 'error',
'@typescript-eslint/no-inferrable-types': 'error',
'@typescript-eslint/no-misused-new': 'error',
'@typescript-eslint/no-namespace': 'error',
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/no-parameter-properties': 'error',
'@typescript-eslint/no-triple-slash-reference': 'error',
'@typescript-eslint/prefer-namespace-keyword': 'error',
'@typescript-eslint/type-annotation-spacing': 'error',
// '@typescript-eslint/array-type': 'error',
// '@typescript-eslint/ban-types': 'error',
// '@typescript-eslint/explicit-function-return-type': 'warn',
// '@typescript-eslint/explicit-member-accessibility': 'error',
// '@typescript-eslint/member-delimiter-style': 'error',
// '@typescript-eslint/no-angle-bracket-type-assertion': 'error',
// '@typescript-eslint/no-explicit-any': 'warn',
// '@typescript-eslint/no-object-literal-type-assertion': 'error',
// '@typescript-eslint/no-use-before-define': 'error',
// '@typescript-eslint/no-var-requires': 'error',
// '@typescript-eslint/prefer-interface': 'error'
}
}
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
env: {
node: true,
},
// This tells ESLint to load the config from the package `eslint-config-custom`
extends: [
'turbo',
'prettier',
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
};
40 changes: 11 additions & 29 deletions .github/workflows/test.yml
@@ -1,12 +1,6 @@
name: Node CI

on:
push:
branches:
- master
tags:
- '!*'
pull_request:
on: [push]

jobs:
build:
Expand All @@ -15,32 +9,20 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [6.x, 8.x, 10.x, 12.x, 14.x]
node-version: [14.x, 16.x, 18.x, 20.x]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v1

- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7.32.2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Print Node.js Version
run: node --version

- name: Install Dependencies
run: npm install
env:
CI: true

- name: Run "build" step
run: npm run build --if-present
env:
CI: true

- name: Run tests
run: npm test
env:
CI: true
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm test
30 changes: 26 additions & 4 deletions .gitignore
@@ -1,4 +1,26 @@
/node_modules
/yarn.lock
/?.?s
/dist
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

?.?s
dist

# dependencies
node_modules
.pnp
.pnp.js

# testing
coverage

# misc
.DS_Store

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# turbo
.turbo

# vercel
.vercel
3 changes: 0 additions & 3 deletions .npmignore

This file was deleted.

10 changes: 0 additions & 10 deletions my-turborepo/.eslintrc.js

This file was deleted.

36 changes: 0 additions & 36 deletions my-turborepo/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion my-turborepo/.npmrc

This file was deleted.

81 changes: 0 additions & 81 deletions my-turborepo/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions my-turborepo/apps/docs/.eslintrc.js

This file was deleted.

34 changes: 0 additions & 34 deletions my-turborepo/apps/docs/.gitignore

This file was deleted.

30 changes: 0 additions & 30 deletions my-turborepo/apps/docs/README.md

This file was deleted.

0 comments on commit b3f4ccc

Please sign in to comment.