Skip to content

Commit

Permalink
🚨 Add eslint config and fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hpoepping committed Nov 29, 2021
1 parent 7c212fe commit 0a4d42d
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "./eslint",
"extends": "@chayns-toolkit",
"globals": {
"__PKG_VERSION__": true
},
Expand Down
53 changes: 53 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
"webpack-dev-server": "^4.6.0"
},
"devDependencies": {
"@chayns-toolkit/eslint-config": "^2.0.0",
"@types/cli-table": "^0.3.0",
"@types/cssnano": "^4.0.1",
"@types/dotenv-webpack": "^7.0.3",
Expand All @@ -112,6 +113,7 @@
"@types/tcp-port-used": "^1.0.0",
"@types/webpack-bundle-analyzer": "^4.4.1",
"@types/webpack-dev-server": "^4.5.0",
"@typescript-eslint/parser": "^5.4.0",
"chalk": "^5.0.0",
"cli-table": "^0.3.9",
"commander": "^8.3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/devCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function devCommand({
overlay: false,
},
server: {
type: Boolean(cert && key) ? "https" : "http",
type: cert && key ? "https" : "http",
options: {
key,
cert,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/testCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function testCommand({
watch,
setupFile,
}: TestOptions): (stepParams: StepParams) => Promise<void> {
return async ({ config, packageJson, packageManager }) => {
return async ({ config, packageJson }) => {
const babelConfig = createBabelPresetOptions({
packageJson,
transpileModules: "commonjs",
Expand Down

0 comments on commit 0a4d42d

Please sign in to comment.