aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2023-03-24 23:41:52 +0100
committerDaniel Schadt <kingdread@gmx.de>2023-03-24 23:41:52 +0100
commitc05da87ec1039278ae77d3e3b53432614398d8a8 (patch)
tree452c60b09eb00b9738f4673833c5e88215c9539e /.eslintrc.js
parent4425cb797baf29c106922f4d46e9a154f95d3050 (diff)
downloadfietsboek-c05da87ec1039278ae77d3e3b53432614398d8a8.tar.gz
fietsboek-c05da87ec1039278ae77d3e3b53432614398d8a8.tar.bz2
fietsboek-c05da87ec1039278ae77d3e3b53432614398d8a8.zip
move (most of the) JavaScript code to TypeScript
Yay, types! (And a lot of escape hatches)
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
new file mode 100644
index 0000000..f78dc92
--- /dev/null
+++ b/.eslintrc.js
@@ -0,0 +1,17 @@
+module.exports = {
+ extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
+ parser: '@typescript-eslint/parser',
+ plugins: ['@typescript-eslint'],
+ rules: {
+ "@typescript-eslint/no-non-null-assertion": "off",
+ "@typescript-eslint/no-unused-vars": [1, {
+ varsIgnorePattern: "^_",
+ argsIgnorePattern: "^_",
+ }],
+ "@typescript-eslint/no-explicit-any": "off",
+ "max-len": [2, 100],
+ "semi": [2, "always"],
+ "comma-dangle": [2, "always-multiline"],
+ },
+ root: true,
+};