Skip to content

Commit

Permalink
fix(*): bump production and development deps (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
derevnjuk authored Feb 9, 2022
1 parent cadb706 commit dd2afd3
Show file tree
Hide file tree
Showing 34 changed files with 7,932 additions and 10,021 deletions.
63 changes: 0 additions & 63 deletions .circleci/config.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tmp
**/.*
**/*.js
**/node_modules
226 changes: 226 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,226 @@
{
"root": true,
"ignorePatterns": ["tmp", "node_modules", "dist"],
"plugins": ["@typescript-eslint", "import", "jest"],
"extends": ["prettier", "eslint:recommended"],
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"extends": [
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended"
],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": ["*.ts", "*.tsx"]
},
"import/resolver": {
"typescript": {
"project": "tsconfig.json"
}
}
},
"parserOptions": { "project": "tsconfig.json" },
"rules": {
"@typescript-eslint/explicit-member-accessibility": [
"error",
{
"accessibility": "explicit",
"overrides": {
"accessors": "no-public",
"constructors": "no-public"
}
}
],
"@typescript-eslint/consistent-indexed-object-style": [
"error",
"record"
],
"@typescript-eslint/member-ordering": [
"error",
{
"default": [
"public-static-field",
"protected-static-field",
"private-static-field",
"public-instance-field",
"protected-instance-field",
"private-instance-field",
"constructor",
"public-static-method",
"protected-static-method",
"private-static-method",
"public-abstract-method",
"protected-abstract-method",
"private-abstract-method",
"public-instance-method",
"protected-instance-method",
"private-instance-method"
]
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "default",
"format": ["camelCase"],
"leadingUnderscore": "forbid",
"trailingUnderscore": "forbid"
},
{
"selector": "enumMember",
"format": ["UPPER_CASE"]
},
{
"selector": "typeLike",
"format": ["PascalCase"]
},
{
"selector": "function",
"format": ["PascalCase", "camelCase"]
},
{
"selector": "variable",
"format": ["camelCase", "UPPER_CASE", "PascalCase", "snake_case"]
},
{
"selector": "method",
"format": ["camelCase", "PascalCase"],
"modifiers": ["static"]
},
{
"selector": "property",
"format": ["camelCase", "UPPER_CASE", "PascalCase", "snake_case"],
"leadingUnderscore": "allow"
},
// https://github.com/typescript-eslint/typescript-eslint/issues/1510#issuecomment-580593245
{
"selector": "parameter",
"format": ["camelCase"],
"leadingUnderscore": "allow"
}
],
"@typescript-eslint/no-inferrable-types": [
"error",
{
"ignoreParameters": true,
"ignoreProperties": true
}
],
"@typescript-eslint/default-param-last": ["error"],
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/no-duplicate-imports": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/unified-signatures": "error",
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/typedef": [
"error",
{
"arrayDestructuring": true,
"arrowParameter": false,
"memberVariableDeclaration": false,
"variableDeclarationIgnoreFunction": true
}
],
"@typescript-eslint/no-shadow": [
"error",
{
"hoist": "all"
}
],
"arrow-body-style": "error",
"camelcase": "off",
"complexity": [
"error",
{
"max": 10
}
],
"eqeqeq": ["error", "smart"],
"guard-for-in": "error",
"import/no-self-import": "error",
"import/no-absolute-path": "error",
"import/no-duplicates": "error",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": false,
"optionalDependencies": false,
"peerDependencies": false
}
],
"import/no-useless-path-segments": [
"error",
{
"noUselessIndex": true
}
],
"import/order": [
"error",
{
"groups": [
"index",
["sibling", "parent"],
"internal",
"external",
"builtin"
]
}
],
"max-classes-per-file": ["error", 1],
"max-depth": [
"error",
{
"max": 2
}
],
"default-param-last": "off",
"no-bitwise": "error",
"no-caller": "error",
"no-console": "error",
"no-eval": "error",
"no-restricted-syntax": ["error", "ForInStatement"],
"no-throw-literal": "error",
"no-undef-init": "error",
"object-shorthand": "error",
"one-var": ["error", "never"],
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"next": "return",
"prev": "*"
}
],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"no-new-func": "error",
"no-new-wrappers": "error",
"radix": "error"
}
},
{
"env": {
"jest": true
},
"extends": ["plugin:jest/recommended"],
"files": ["*.spec.ts", "*.spec.tsx"],
"rules": {
"jest/prefer-expect-resolves": "error",
"jest/prefer-todo": "error",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
]
}
}
]
}
68 changes: 68 additions & 0 deletions .github/workflows/auto-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: CI / Automated testing

on:
pull_request:
branches:
- '**'

env:
DEPENDENCIES_CACHE: npm-cache

jobs:
install-deps:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set Node.js
uses: actions/setup-node@v1
with:
node-version: 14
registry-url: 'https://registry.npmjs.org'

- name: Cache npm modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ inputs.cache }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ inputs.cache }}-
- name: Install deps in quiet mode
run: npm ci -q

build-and-test:
runs-on: ubuntu-latest
needs: install-deps
strategy:
fail-fast: false
matrix:
target: ['lint', 'format', 'build', 'test']
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set Node.js
uses: actions/setup-node@v1
with:
node-version: 14
registry-url: 'https://registry.npmjs.org'

- name: Cache npm modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ inputs.cache }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ inputs.cache }}-
- name: Install deps in quiet mode
run: npm ci -q

- name: Execute ${{ matrix.target }} npm script
run: npm run ${{ matrix.target }}
Loading

0 comments on commit dd2afd3

Please sign in to comment.