Skip to content

Commit

Permalink
fix: temporarily disable eslint until it can behave
Browse files Browse the repository at this point in the history
  • Loading branch information
HoodieRocks committed May 17, 2024
1 parent 9b23f08 commit 050a1ed
Show file tree
Hide file tree
Showing 4 changed files with 426 additions and 1,991 deletions.
174 changes: 87 additions & 87 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,94 +1,94 @@
// export default {
// root: true,
// parser: "@typescript-eslint/parser",
// extends: [
// "plugin:@typescript-eslint/recommended",
// "plugin:svelte/recommended",
// "plugin:unicorn/recommended"
// ],
// plugins: ["@typescript-eslint"],
// ignorePatterns: ["*.cjs", "node_modules"],
// overrides: [
// {
// files: ["*.svelte"],
// // export default {
// // root: true,
// // parser: "@typescript-eslint/parser",
// // extends: [
// // "plugin:@typescript-eslint/recommended",
// // "plugin:svelte/recommended",
// // "plugin:unicorn/recommended"
// // ],
// // plugins: ["@typescript-eslint"],
// // ignorePatterns: ["*.cjs", "node_modules"],
// // overrides: [
// // {
// // files: ["*.svelte"],
// // parser: "svelte-eslint-parser",
// // parserOptions: {
// // parser: "@typescript-eslint/parser"
// // }
// // },
// // { files: ["*.ts", "*.svelte"], rules: { "no-undef": "off" } }
// // ],
// // settings: {
// // "svelte3/typescript": import("typescript")
// // },
// // parserOptions: {
// // project: "tsconfig.json",
// // sourceType: "module",
// // ecmaVersion: 2020,
// // extraFileExtensions: [".svelte"]
// // },
// // rules: {
// // // "@typescript-eslint/no-floating-promises": "error",
// // "@typescript-eslint/await-thenable": "error",
// // // "@typescript-eslint/indent": ["off"] // You can enable this rule if you want
// // "unicorn/filename-case": ["warn"], // You can disable this rule if you want
// // "unicorn/no-document-cookie": "error",
// // "unicorn/prefer-top-level-await": ["off"] // You can enable this rule if you want
// // },
// // env: {
// // browser: true,
// // es2020: true,
// // es6: true,
// // node: true
// // }
// // };

// import tsEslintPlugin from "@typescript-eslint/eslint-plugin";
// import tsEslintParser from "@typescript-eslint/parser";
// import svelteEslintPlugin from "eslint-plugin-svelte";
// import unicornPlugin from "eslint-plugin-unicorn";
// import typescript from "typescript";
// import eslintIgnoresAsJs from "./eslint-ignores-as-js.js";

// export default [
// {
// plugins: {
// "@typescript-eslint": tsEslintPlugin,
// unicorn: unicornPlugin,
// svelte: svelteEslintPlugin
// },

// languageOptions: {
// parser: "svelte-eslint-parser",
// parserOptions: {
// parser: "@typescript-eslint/parser"
// parser: tsEslintParser
// }
// },
// { files: ["*.ts", "*.svelte"], rules: { "no-undef": "off" } }
// ],
// settings: {
// "svelte3/typescript": import("typescript")
// },
// parserOptions: {
// project: "tsconfig.json",
// sourceType: "module",
// ecmaVersion: 2020,
// extraFileExtensions: [".svelte"]
// ignores: eslintIgnoresAsJs,
// settings: {
// "svelte3/typescript": typescript
// },
// rules: {
// // "@typescript-eslint/no-floating-promises": "error",
// // "@typescript-eslint/indent": ["off"] // You can enable this rule if you want
// "unicorn/no-document-cookie": "error",
// "unicorn/prefer-top-level-await": ["off"] // You can enable this rule if you want
// },
// languageOptions: {
// globals: {}
// }
// },
// rules: {
// // "@typescript-eslint/no-floating-promises": "error",
// "@typescript-eslint/await-thenable": "error",
// // "@typescript-eslint/indent": ["off"] // You can enable this rule if you want
// "unicorn/filename-case": ["warn"], // You can disable this rule if you want
// "unicorn/no-document-cookie": "error",
// "unicorn/prefer-top-level-await": ["off"] // You can enable this rule if you want
// {
// files: ["*.svelte"],
// parser: "svelte-eslint-parser",
// ignores: eslintIgnoresAsJs,
// parserOptions: {
// parser: "@typescript-eslint/parser"
// }
// },
// env: {
// browser: true,
// es2020: true,
// es6: true,
// node: true
// {
// files: ["*.ts", "*.svelte"],
// ignores: eslintIgnoresAsJs,
// rules: { "no-undef": "off" }
// }
// };

import tsEslintPlugin from "@typescript-eslint/eslint-plugin";
import tsEslintParser from "@typescript-eslint/parser";
import svelteEslintPlugin from "eslint-plugin-svelte";
import unicornPlugin from "eslint-plugin-unicorn";
import typescript from "typescript";
import eslintIgnoresAsJs from "./eslint-ignores-as-js.js";

export default [
{
plugins: {
"@typescript-eslint": tsEslintPlugin,
unicorn: unicornPlugin,
svelte: svelteEslintPlugin
},

languageOptions: {
parser: "svelte-eslint-parser",
parserOptions: {
parser: tsEslintParser
}
},
ignores: eslintIgnoresAsJs,
settings: {
"svelte3/typescript": typescript
},
rules: {
// "@typescript-eslint/no-floating-promises": "error",
// "@typescript-eslint/indent": ["off"] // You can enable this rule if you want
"unicorn/no-document-cookie": "error",
"unicorn/prefer-top-level-await": ["off"] // You can enable this rule if you want
},
languageOptions: {
globals: {}
}
},
{
files: ["*.svelte"],
parser: "svelte-eslint-parser",
ignores: eslintIgnoresAsJs,
parserOptions: {
parser: "@typescript-eslint/parser"
}
},
{
files: ["*.ts", "*.svelte"],
ignores: eslintIgnoresAsJs,
rules: { "no-undef": "off" }
}
];
// ];
Loading

0 comments on commit 050a1ed

Please sign in to comment.