You've already forked tf2wikipricing
27 lines
841 B
JavaScript
27 lines
841 B
JavaScript
import js from "@eslint/js";
|
|
import globals from "globals";
|
|
import tseslint from "typescript-eslint";
|
|
import css from "@eslint/css";
|
|
import { defineConfig } from "eslint/config";
|
|
|
|
|
|
export default defineConfig([
|
|
{ ignores: ["**/GM_fetch/**/*.js"] },
|
|
{ files: ["**/*.{js,mjs,cjs,ts}"], plugins: { js }, extends: ["js/recommended"] },
|
|
tseslint.configs.recommended,
|
|
{
|
|
rules: {
|
|
"@typescript-eslint/no-require-imports": "off"
|
|
},
|
|
languageOptions: { globals: globals.browser }
|
|
},
|
|
{ files: ["**/strings/*.js"], plugins: { js }, extends: ["js/recommended"] },
|
|
tseslint.configs.recommended,
|
|
{
|
|
rules: {
|
|
"@typescript-eslint/no-require-imports": "off"
|
|
},
|
|
languageOptions: { sourceType: "commonjs" }
|
|
},
|
|
{ files: ["**/*.css"], plugins: { css }, language: "css/css", extends: ["css/recommended"] },
|
|
]); |