Added babel to showcase project.

This commit is contained in:
2022-04-17 22:35:25 -05:00
parent 2c8f3a49c4
commit b5a4a7dcb4
7 changed files with 6241 additions and 26 deletions

3
showcase/.eslintignore Normal file
View File

@@ -0,0 +1,3 @@
webpack.*.js
webpack.*.cjs
**/prism.js

36
showcase/.eslintrc.json Normal file
View File

@@ -0,0 +1,36 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:import/recommended"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"import/extensions": [
"error",
"ignorePackages"
]
}
}

View File

@@ -0,0 +1,4 @@
{
"presets": [],
"plugins": []
}

File diff suppressed because it is too large Load Diff

View File

@@ -12,8 +12,15 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@babel/core": "^7.17.9",
"@babel/eslint-parser": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"babel-loader": "^8.2.4",
"copy-webpack-plugin": "^10.2.4",
"css-loader": "^6.7.1",
"eslint": "^8.13.0",
"eslint-plugin-import": "^2.26.0",
"eslint-webpack-plugin": "^3.1.1",
"html-loader": "^3.1.0",
"html-webpack-plugin": "^5.5.0",
"style-loader": "^3.3.1",

View File

@@ -1,6 +1,7 @@
const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const CopyPlugin = require("copy-webpack-plugin");
const ESLintPlugin = require("eslint-webpack-plugin");
module.exports = {
entry: {
@@ -33,6 +34,7 @@ module.exports = {
path: path.resolve("./dist")
},
plugins: [
new ESLintPlugin(),
new HtmlWebpackPlugin({
template: path.resolve("./src/index.html"),
}),