Configure ESLint

This commit is contained in:
Josh Gross
2023-03-15 14:56:47 -04:00
parent 965cb981b1
commit 28a4438faf
12 changed files with 72 additions and 28 deletions
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
extends: "../.eslintrc.json",
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: __dirname,
},
}
+3 -1
View File
@@ -19,6 +19,8 @@
"clean": "rimraf dist",
"format": "prettier --write '**/*.ts'",
"format-check": "prettier --check '**/*.ts'",
"lint": "eslint src/**/*.ts",
"lint-fix": "eslint --fix src/**/*.ts",
"start": "webpack-dev-server --mode development --open",
"test": "exit 0",
"watch": "webpack --watch --mode development --env esbuild"
@@ -34,4 +36,4 @@
"webpack-cli": "^5.0.1",
"webpack-dev-server": "^4.11.1"
}
}
}