Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate project to typescript #20

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
29 changes: 26 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,30 @@
dist/
node_modules/
tmp/
config/
test/
test/scripts/worker.js
test/e2e.test.js
src/index.es5.js
src/browserify.index.js
src/browserify.index.js

# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage

#production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
dist/
13 changes: 13 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require("@rushstack/eslint-patch/modern-module-resolution");

module.exports = {
root: true,
extends: ["@toruslabs/eslint-config-typescript"],
parser: "@typescript-eslint/parser",
ignorePatterns: ["*.config.js", ".eslintrc.js"],
parserOptions: {
sourceType: "module",
ecmaVersion: 2022,
project: "./tsconfig.json",
},
};
267 changes: 0 additions & 267 deletions .eslintrc.json

This file was deleted.

21 changes: 21 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage

#production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

5 changes: 5 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# .prettierrc or .prettierrc.yaml
printWidth: 150
singleQuote: false
semi: true
trailingComma: es5
2 changes: 2 additions & 0 deletions config/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const configuration = {
basePath: '',
frameworks: [
'mocha',
'sinon',
'browserify',
'detectBrowsers'
],
Expand Down Expand Up @@ -38,6 +39,7 @@ const configuration = {
// Karma plugins loaded
plugins: [
'karma-mocha',
'karma-sinon',
'karma-browserify',
'karma-chrome-launcher',
'karma-edge-launcher',
Expand Down
Loading
Loading