Skip to content

Commit

Permalink
refactor(*): update all packages to latest practices and conventions
Browse files Browse the repository at this point in the history
Signed-off-by: Will Soto <[email protected]>
  • Loading branch information
willsoto committed Oct 6, 2020
1 parent fdf7da7 commit 70bc066
Show file tree
Hide file tree
Showing 32 changed files with 15,673 additions and 10,042 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
dist
coverage
typings
39 changes: 39 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
project: "./tsconfig.lint.json",
},
plugins: ["@typescript-eslint"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier",
"prettier/@typescript-eslint",
],
env: {
node: true,
},
globals: {
Reflect: true,
},
rules: {
"new-cap": "off",
},
overrides: [
{
files: ["test/**/*.ts"],
env: {
mocha: true,
},
rules: {
"@typescript-eslint/explicit-function-return-type": "off",
"no-unused-expressions": "off",
"no-magic-numbers": "off",
"@typescript-eslint/unbound-method": "off",
},
},
],
};
34 changes: 0 additions & 34 deletions .eslintrc.json

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
- uses: actions/checkout@v1
- uses: volta-cli/action@v1

- run: yarn install
- run: yarn run docs
- run: npm ci
- run: npm run docs

- name: Deploy to GitHub pages
uses: peaceiris/[email protected]
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ jobs:
- uses: volta-cli/action@v1
with:
node-version: ${{ matrix.node-version }}

- name: install, build and test
run: |
yarn install
yarn lint
yarn build
yarn test:cov
- run: npm ci
- run: npm run lint
- run: npm run build
- run: npm run test:cov
6 changes: 0 additions & 6 deletions .prettierrc

This file was deleted.

10 changes: 10 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
singleQuote: false,
trailingComma: "all",
arrowParens: "always",
semi: true,
plugins: [
require.resolve("prettier-plugin-organize-imports"),
require.resolve("prettier-plugin-packagejson"),
],
};
2 changes: 0 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"eslint.autoFixOnSave": true,
"eslint.validate": ["javascript", "typescript"],
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.organizeImports": true
Expand Down
1 change: 0 additions & 1 deletion .yarnrc

This file was deleted.

6 changes: 3 additions & 3 deletions ad-hocs/mocha/plugins.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as chai from "chai";
import * as chaiAsPromised from "chai-as-promised";
import * as sinonChai from "sinon-chai";
import chai from "chai";
import chaiAsPromised from "chai-as-promised";
import sinonChai from "sinon-chai";

chai.use(chaiAsPromised);
chai.use(sinonChai);
Loading

0 comments on commit 70bc066

Please sign in to comment.