gitignore
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
import typescriptEslint from '@typescript-eslint/eslint-plugin';
|
||||
import typescriptParser from '@typescript-eslint/parser';
|
||||
|
||||
export default [
|
||||
{
|
||||
files: ["**/*.js"],
|
||||
@@ -5,7 +8,6 @@ export default [
|
||||
ecmaVersion: 2022,
|
||||
sourceType: "commonjs",
|
||||
globals: {
|
||||
// Node.js globals
|
||||
console: "readonly",
|
||||
process: "readonly",
|
||||
Buffer: "readonly",
|
||||
@@ -20,7 +22,6 @@ export default [
|
||||
setInterval: "readonly",
|
||||
clearInterval: "readonly",
|
||||
URLSearchParams: "readonly",
|
||||
// Browser globals (for public/ files)
|
||||
window: "readonly",
|
||||
document: "readonly",
|
||||
fetch: "readonly",
|
||||
@@ -35,5 +36,46 @@ export default [
|
||||
"no-console": "off",
|
||||
"no-undef": "error"
|
||||
}
|
||||
},
|
||||
{
|
||||
files: ["**/*.ts"],
|
||||
languageOptions: {
|
||||
parser: typescriptParser,
|
||||
parserOptions: {
|
||||
ecmaVersion: 2022,
|
||||
sourceType: "module",
|
||||
project: ["./tsconfig.json", "./tsconfig.frontend.json"]
|
||||
},
|
||||
globals: {
|
||||
console: "readonly",
|
||||
process: "readonly",
|
||||
Buffer: "readonly",
|
||||
__dirname: "readonly",
|
||||
__filename: "readonly",
|
||||
module: "readonly",
|
||||
require: "readonly",
|
||||
exports: "readonly",
|
||||
global: "readonly",
|
||||
setTimeout: "readonly",
|
||||
clearTimeout: "readonly",
|
||||
setInterval: "readonly",
|
||||
clearInterval: "readonly",
|
||||
URLSearchParams: "readonly",
|
||||
window: "readonly",
|
||||
document: "readonly",
|
||||
fetch: "readonly",
|
||||
event: "readonly"
|
||||
}
|
||||
},
|
||||
plugins: {
|
||||
"@typescript-eslint": typescriptEslint
|
||||
},
|
||||
rules: {
|
||||
"indent": ["error", 4],
|
||||
"quotes": ["error", "single"],
|
||||
"semi": ["error", "always"],
|
||||
"@typescript-eslint/no-unused-vars": "warn",
|
||||
"no-console": "off"
|
||||
}
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user