-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add biome * Format files * Fix lint errors
- Loading branch information
Jacob Lamb
authored
Jan 2, 2024
1 parent
11998a9
commit 5bd5cb6
Showing
18 changed files
with
1,691 additions
and
1,474 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
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,12 +1,12 @@ | ||
// Place your settings in this file to overwrite default and user settings. | ||
{ | ||
"files.exclude": { | ||
"out": false // set this to true to hide the "out" folder with the compiled JS files | ||
}, | ||
"search.exclude": { | ||
"out": true // set this to false to include "out" folder in search results | ||
}, | ||
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts | ||
"typescript.tsc.autoDetect": "off", | ||
"window.title": "${activeEditorShort}${separator}${rootName}" | ||
} | ||
"files.exclude": { | ||
"out": false // set this to true to hide the "out" folder with the compiled JS files | ||
}, | ||
"search.exclude": { | ||
"out": true // set this to false to include "out" folder in search results | ||
}, | ||
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts | ||
"typescript.tsc.autoDetect": "off", | ||
"window.title": "${activeEditorShort}${separator}${rootName}" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.3.3/schema.json", | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"files": { | ||
"ignoreUnknown": true, | ||
"ignore": ["./file-types/**"] | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true | ||
} | ||
}, | ||
"overrides": [ | ||
{ | ||
"include": [".vscode"], | ||
"json": { | ||
"parser": { | ||
"allowComments": true | ||
} | ||
} | ||
} | ||
] | ||
} |
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 @@ | ||
{ | ||
"presets": ["es2015-rollup"] | ||
"presets": ["es2015-rollup"] | ||
} |
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,7 +1,7 @@ | ||
{ | ||
"esversion": 6, | ||
"node": true, | ||
"globals": { | ||
"atom": true | ||
} | ||
"esversion": 6, | ||
"node": true, | ||
"globals": { | ||
"atom": true | ||
} | ||
} |
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,38 +1,36 @@ | ||
import babel from 'rollup-plugin-babel'; | ||
import commonjs from 'rollup-plugin-commonjs'; | ||
import eslint from 'rollup-plugin-eslint'; | ||
import json from 'rollup-plugin-json'; | ||
import resolve from 'rollup-plugin-node-resolve'; | ||
import replace from 'rollup-plugin-replace'; | ||
import config from './shared/config.js'; | ||
import uglify from 'rollup-plugin-uglify'; | ||
import babel from "rollup-plugin-babel"; | ||
import commonjs from "rollup-plugin-commonjs"; | ||
import eslint from "rollup-plugin-eslint"; | ||
import json from "rollup-plugin-json"; | ||
import resolve from "rollup-plugin-node-resolve"; | ||
import replace from "rollup-plugin-replace"; | ||
import config from "./shared/config.js"; | ||
import uglify from "rollup-plugin-uglify"; | ||
|
||
export default { | ||
entry: './client/app.js', | ||
dest: '_dist/js/app.min.js', | ||
format: 'iife', | ||
moduleName: config.shared.name, | ||
plugins: [ | ||
eslint({ | ||
exclude: [ | ||
'public/**' | ||
] | ||
}), | ||
commonjs(), | ||
json(), | ||
replace({ | ||
exclude: 'node_modules/**', | ||
ENV: JSON.stringify(process.env.NODE_ENV) | ||
}), | ||
resolve({ | ||
jsnext: true, | ||
main: true, | ||
browser: true | ||
}), | ||
babel({ | ||
exclude: 'node_modules/**' | ||
}), | ||
(process.env.NODE_ENV === 'production' && uglify()) | ||
], | ||
sourceMap: 'inline' | ||
entry: "./client/app.js", | ||
dest: "_dist/js/app.min.js", | ||
format: "iife", | ||
moduleName: config.shared.name, | ||
plugins: [ | ||
eslint({ | ||
exclude: ["public/**"], | ||
}), | ||
commonjs(), | ||
json(), | ||
replace({ | ||
exclude: "node_modules/**", | ||
ENV: JSON.stringify(process.env.NODE_ENV), | ||
}), | ||
resolve({ | ||
jsnext: true, | ||
main: true, | ||
browser: true, | ||
}), | ||
babel({ | ||
exclude: "node_modules/**", | ||
}), | ||
process.env.NODE_ENV === "production" && uglify(), | ||
], | ||
sourceMap: "inline", | ||
}; |
Oops, something went wrong.