2022-01-25 04:23:30 +00:00
|
|
|
require("@rushstack/eslint-patch/modern-module-resolution");
|
|
|
|
|
First pass at typescript support
Oh man did this end up requiring a *ton* of other work as well.
There's still a few typing issues I still can't quite work out,
and others I'd like to improve when I have time. In fact, this version
doesn't even really work, it has a stack overflow error caused by
a tooltip for some reason have a tree inside it, which in turn has
another tooltip, etc. There's also 17 errors that I *really* feel like
shouldn't be there, but they are, and 113 warnings - mostly using !
to assert that things are non-null. Lots of work left to do, to sum up.
The reason I'm committing this now is because I really need to get to
work on my game jam, and since it won't use a tree or really many of
TMT-X's features, I can get away with using a broken engine :)
2021-08-17 04:30:54 +00:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
env: {
|
2022-01-25 04:23:30 +00:00
|
|
|
node: true
|
First pass at typescript support
Oh man did this end up requiring a *ton* of other work as well.
There's still a few typing issues I still can't quite work out,
and others I'd like to improve when I have time. In fact, this version
doesn't even really work, it has a stack overflow error caused by
a tooltip for some reason have a tree inside it, which in turn has
another tooltip, etc. There's also 17 errors that I *really* feel like
shouldn't be there, but they are, and 113 warnings - mostly using !
to assert that things are non-null. Lots of work left to do, to sum up.
The reason I'm committing this now is because I really need to get to
work on my game jam, and since it won't use a tree or really many of
TMT-X's features, I can get away with using a broken engine :)
2021-08-17 04:30:54 +00:00
|
|
|
},
|
2024-03-18 05:27:57 +00:00
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
plugins: ["@typescript-eslint"],
|
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: ['*.ts', '*.tsx'],
|
|
|
|
extends: [
|
|
|
|
"plugin:vue/vue3-essential",
|
|
|
|
"@vue/eslint-config-typescript/recommended",
|
|
|
|
"@vue/eslint-config-prettier"
|
|
|
|
],
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2020,
|
|
|
|
project: "./tsconfig.json"
|
|
|
|
},
|
|
|
|
}
|
First pass at typescript support
Oh man did this end up requiring a *ton* of other work as well.
There's still a few typing issues I still can't quite work out,
and others I'd like to improve when I have time. In fact, this version
doesn't even really work, it has a stack overflow error caused by
a tooltip for some reason have a tree inside it, which in turn has
another tooltip, etc. There's also 17 errors that I *really* feel like
shouldn't be there, but they are, and 113 warnings - mostly using !
to assert that things are non-null. Lots of work left to do, to sum up.
The reason I'm committing this now is because I really need to get to
work on my game jam, and since it won't use a tree or really many of
TMT-X's features, I can get away with using a broken engine :)
2021-08-17 04:30:54 +00:00
|
|
|
],
|
2022-01-25 04:23:30 +00:00
|
|
|
ignorePatterns: ["src/lib"],
|
First pass at typescript support
Oh man did this end up requiring a *ton* of other work as well.
There's still a few typing issues I still can't quite work out,
and others I'd like to improve when I have time. In fact, this version
doesn't even really work, it has a stack overflow error caused by
a tooltip for some reason have a tree inside it, which in turn has
another tooltip, etc. There's also 17 errors that I *really* feel like
shouldn't be there, but they are, and 113 warnings - mostly using !
to assert that things are non-null. Lots of work left to do, to sum up.
The reason I'm committing this now is because I really need to get to
work on my game jam, and since it won't use a tree or really many of
TMT-X's features, I can get away with using a broken engine :)
2021-08-17 04:30:54 +00:00
|
|
|
rules: {
|
|
|
|
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
2022-01-14 04:25:47 +00:00
|
|
|
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
2022-01-25 04:23:30 +00:00
|
|
|
"vue/script-setup-uses-vars": "warn",
|
2022-01-25 04:25:34 +00:00
|
|
|
"vue/no-mutating-props": "off",
|
2022-12-21 03:26:25 +00:00
|
|
|
"vue/multi-word-component-names": "off",
|
|
|
|
"@typescript-eslint/strict-boolean-expressions": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
allowNullableObject: true,
|
|
|
|
allowNullableBoolean: true
|
|
|
|
}
|
2024-03-04 01:24:24 +00:00
|
|
|
],
|
|
|
|
"eqeqeq": [
|
|
|
|
"error",
|
|
|
|
"always",
|
|
|
|
{
|
|
|
|
"null": "never"
|
|
|
|
}
|
2022-12-21 03:26:25 +00:00
|
|
|
]
|
2022-01-25 04:23:30 +00:00
|
|
|
},
|
|
|
|
globals: {
|
|
|
|
defineProps: "readonly",
|
|
|
|
defineEmits: "readonly"
|
First pass at typescript support
Oh man did this end up requiring a *ton* of other work as well.
There's still a few typing issues I still can't quite work out,
and others I'd like to improve when I have time. In fact, this version
doesn't even really work, it has a stack overflow error caused by
a tooltip for some reason have a tree inside it, which in turn has
another tooltip, etc. There's also 17 errors that I *really* feel like
shouldn't be there, but they are, and 113 warnings - mostly using !
to assert that things are non-null. Lots of work left to do, to sum up.
The reason I'm committing this now is because I really need to get to
work on my game jam, and since it won't use a tree or really many of
TMT-X's features, I can get away with using a broken engine :)
2021-08-17 04:30:54 +00:00
|
|
|
}
|
|
|
|
};
|