Skip to content

Commit

Permalink
use custom webpack stack for sanity
Browse files Browse the repository at this point in the history
  • Loading branch information
mostthingsweb committed May 11, 2024
1 parent 8c46af1 commit 5ebf095
Show file tree
Hide file tree
Showing 10 changed files with 10,696 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:you-dont-need-lodash-underscore/compatible"
],
"overrides": [
{
"env": {
"node": true
},
"files": [
".eslintrc.{js,cjs}"
],
"parserOptions": {
"sourceType": "script"
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"react",
"lodash"
],

"settings": {
"react": {
"version": "detect",
},
},
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
webpack-stats.json

# Logs
logs
*.log
Expand Down
15 changes: 15 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use strict';

module.exports = {
presets: [
[
'@babel/preset-env',
{
useBuiltIns: 'usage', // or 'entry'
corejs: 3, // or 2, but 3 is recommended
targets: "> 0.25%, not dead", // Example: browsers with >0.25% market share and not end-of-life
},
],
["@babel/preset-react", {"runtime": "automatic"}],
"@babel/preset-typescript"],
};
Loading

0 comments on commit 5ebf095

Please sign in to comment.