diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 196f07b..0000000 --- a/.eslintignore +++ /dev/null @@ -1,5 +0,0 @@ -# don't ever lint node_modules -node_modules -# don't lint build output (make sure it's set to your correct build folder name) -dist - diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 80e08d5..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1,11 +0,0 @@ -module.exports = { - root: true, - parser: '@typescript-eslint/parser', - plugins: [ - '@typescript-eslint', - ], - extends: [ - 'eslint:recommended', - 'plugin:@typescript-eslint/recommended', - ], -}; diff --git a/.yarnclean b/.yarnclean new file mode 100644 index 0000000..b591611 --- /dev/null +++ b/.yarnclean @@ -0,0 +1,45 @@ +# test directories +__tests__ +test +tests +powered-test + +# asset directories +docs +doc +website +images +assets + +# examples +example +examples + +# code coverage directories +coverage +.nyc_output + +# build scripts +Makefile +Gulpfile.js +Gruntfile.js + +# configs +appveyor.yml +circle.yml +codeship-services.yml +codeship-steps.yml +wercker.yml +.tern-project +.gitattributes +.editorconfig +.*ignore +.eslintrc +.jshintrc +.flowconfig +.documentup.json +.yarn-metadata.json +.travis.yml + +# misc +*.md diff --git a/package.json b/package.json index 708bf22..8dcd9d1 100644 --- a/package.json +++ b/package.json @@ -12,15 +12,13 @@ }, "devDependencies": { "@types/node": "^16.6.1", - "@typescript-eslint/eslint-plugin": "^4.29.1", - "@typescript-eslint/parser": "^4.29.1", - "eslint": "^7.32.0", - "eslint-webpack-plugin": "^3.0.1", + "cardinal": "^2.1.1", "mysql2": "^2.3.0", "ts-loader": "^9.2.5", "ts-node": "^10.2.0", "typescript": "^4.3.5", "webpack": "^5.50.0", "webpack-cli": "^4.7.2" - } + }, + "dependencies": {} } diff --git a/src/index.ts b/src/index.ts index e69de29..6812a64 100644 --- a/src/index.ts +++ b/src/index.ts @@ -0,0 +1,7 @@ +const mysql2 = require("mysql2"); + +const pool = mysql2.createPool({ + host: "localhost", + user: "root", + database: "es_extended", +}); diff --git a/webpack.config.js b/webpack.config.js index 02f044c..de10dfc 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,5 +1,4 @@ const path = require('path'); -const ESLintPlugin = require('eslint-webpack-plugin'); module.exports = { mode: "production", @@ -16,11 +15,10 @@ module.exports = { ], }, resolve: { - extensions: ['.ts'], + extensions: ['.ts', '.js'], }, output: { filename: 'oxmysql.js', path: path.resolve(__dirname, 'dist'), }, - plugins: [new ESLintPlugin()], }; \ No newline at end of file