-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(*): format properly (4 spaces best)
- Loading branch information
Showing
10 changed files
with
156 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"node": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:import/recommended", | ||
"plugin:import/electron", | ||
"plugin:import/typescript" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"ignorePatterns": "/*.js" | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"node": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:import/recommended", | ||
"plugin:import/electron", | ||
"plugin:import/typescript" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"ignorePatterns": "/*.js" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Electron Main", | ||
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron-forge-vscode-nix", | ||
"windows": { | ||
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron-forge-vscode-win.cmd" | ||
}, | ||
"runtimeArgs": [], | ||
"cwd": "${workspaceFolder}" | ||
} | ||
] | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Electron Main", | ||
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron-forge-vscode-nix", | ||
"windows": { | ||
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron-forge-vscode-win.cmd" | ||
}, | ||
"runtimeArgs": [], | ||
"cwd": "${workspaceFolder}" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = { | ||
plugins: [require("tailwindcss"), require("autoprefixer")], | ||
plugins: [require("tailwindcss"), require("autoprefixer")], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
const colors = require("tailwindcss/colors"); | ||
|
||
module.exports = { | ||
purge: [], | ||
darkMode: false, // or 'media' or 'class' | ||
theme: { | ||
extend: { | ||
colors: { | ||
sky: colors.sky, | ||
cyan: colors.cyan, | ||
}, | ||
purge: [], | ||
darkMode: false, // or 'media' or 'class' | ||
theme: { | ||
extend: { | ||
colors: { | ||
sky: colors.sky, | ||
cyan: colors.cyan, | ||
}, | ||
}, | ||
}, | ||
}, | ||
variants: { | ||
extend: {}, | ||
}, | ||
plugins: [], | ||
variants: { | ||
extend: {}, | ||
}, | ||
plugins: [], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"module": "commonjs", | ||
"skipLibCheck": true, | ||
"esModuleInterop": true, | ||
"noImplicitAny": true, | ||
"sourceMap": true, | ||
"baseUrl": ".", | ||
"outDir": "dist", | ||
"moduleResolution": "node", | ||
"resolveJsonModule": true, | ||
"jsx": "react", | ||
"paths": { | ||
"*": ["node_modules/*"] | ||
} | ||
}, | ||
"include": ["src/**/*"] | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"module": "commonjs", | ||
"skipLibCheck": true, | ||
"esModuleInterop": true, | ||
"noImplicitAny": true, | ||
"sourceMap": true, | ||
"baseUrl": ".", | ||
"outDir": "dist", | ||
"moduleResolution": "node", | ||
"resolveJsonModule": true, | ||
"jsx": "react", | ||
"paths": { | ||
"*": ["node_modules/*"] | ||
} | ||
}, | ||
"include": ["src/**/*"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
module.exports = { | ||
/** | ||
* This is the main entry point for your application, it's the first file | ||
* that runs in the main process. | ||
*/ | ||
entry: "./src/index.ts", | ||
// Put your normal webpack config below here | ||
module: { | ||
rules: require("./webpack.rules"), | ||
}, | ||
resolve: { | ||
extensions: [".js", ".ts", ".jsx", ".tsx", ".css", ".json"], | ||
}, | ||
/** | ||
* This is the main entry point for your application, it's the first file | ||
* that runs in the main process. | ||
*/ | ||
entry: "./src/index.ts", | ||
// Put your normal webpack config below here | ||
module: { | ||
rules: require("./webpack.rules"), | ||
}, | ||
resolve: { | ||
extensions: [".js", ".ts", ".jsx", ".tsx", ".css", ".json"], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,72 @@ | ||
module.exports = [ | ||
// Add support for native node modules | ||
{ | ||
// We're specifying native_modules in the test because the asset relocator loader generates a | ||
// "fake" .node file which is really a cjs file. | ||
test: /native_modules\/.+\.node$/, | ||
use: "node-loader", | ||
}, | ||
{ | ||
test: /\.(m?js|node)$/, | ||
parser: { amd: false }, | ||
use: { | ||
loader: "@vercel/webpack-asset-relocator-loader", | ||
options: { | ||
outputAssetBase: "native_modules", | ||
}, | ||
// Add support for native node modules | ||
{ | ||
// We're specifying native_modules in the test because the asset relocator loader generates a | ||
// "fake" .node file which is really a cjs file. | ||
test: /native_modules\/.+\.node$/, | ||
use: "node-loader", | ||
}, | ||
}, | ||
{ | ||
test: /\.tsx?$/, | ||
exclude: /(node_modules|\.webpack)/, | ||
use: { | ||
loader: "ts-loader", | ||
options: { | ||
transpileOnly: true, | ||
}, | ||
}, | ||
}, | ||
{ | ||
test: /\.global\.css$/, | ||
use: [ | ||
{ | ||
loader: "style-loader", | ||
}, | ||
{ | ||
loader: "css-loader", | ||
options: { | ||
sourceMap: true, | ||
}, | ||
}, | ||
{ | ||
loader: "postcss-loader", | ||
options: { | ||
postcssOptions: { | ||
plugins: [require("tailwindcss"), require("autoprefixer")], | ||
}, | ||
{ | ||
test: /\.(m?js|node)$/, | ||
parser: { amd: false }, | ||
use: { | ||
loader: "@vercel/webpack-asset-relocator-loader", | ||
options: { | ||
outputAssetBase: "native_modules", | ||
}, | ||
}, | ||
}, | ||
], | ||
}, | ||
{ | ||
test: /^((?!\.global).)*\.css$/, | ||
use: [ | ||
{ | ||
loader: "style-loader", | ||
}, | ||
{ | ||
loader: "css-loader", | ||
options: { | ||
modules: { | ||
localIdentName: "[name]__[local]__[hash:base64:5]", | ||
}, | ||
sourceMap: true, | ||
importLoaders: 1, | ||
}, | ||
{ | ||
test: /\.tsx?$/, | ||
exclude: /(node_modules|\.webpack)/, | ||
use: { | ||
loader: "ts-loader", | ||
options: { | ||
transpileOnly: true, | ||
}, | ||
}, | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
test: /\.global\.css$/, | ||
use: [ | ||
{ | ||
loader: "style-loader", | ||
}, | ||
{ | ||
loader: "css-loader", | ||
options: { | ||
sourceMap: true, | ||
}, | ||
}, | ||
{ | ||
loader: "postcss-loader", | ||
options: { | ||
postcssOptions: { | ||
plugins: [ | ||
require("tailwindcss"), | ||
require("autoprefixer"), | ||
], | ||
}, | ||
}, | ||
}, | ||
], | ||
}, | ||
{ | ||
test: /^((?!\.global).)*\.css$/, | ||
use: [ | ||
{ | ||
loader: "style-loader", | ||
}, | ||
{ | ||
loader: "css-loader", | ||
options: { | ||
modules: { | ||
localIdentName: "[name]__[local]__[hash:base64:5]", | ||
}, | ||
sourceMap: true, | ||
importLoaders: 1, | ||
}, | ||
}, | ||
], | ||
}, | ||
]; |