mirror of
https://github.com/littensy/charm.git
synced 2026-10-20 17:51:37 +00:00
ci: use javascript eslint config
This commit is contained in:
parent
d58d6ffd0b
commit
69d47d580c
2 changed files with 20 additions and 20 deletions
20
eslint.config.js
Normal file
20
eslint.config.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
const eslint = require("@eslint/js");
|
||||
const { defineConfig, globalIgnores } = require("eslint/config");
|
||||
const prettierRecommended = require("eslint-plugin-prettier/recommended");
|
||||
const roblox = require("eslint-plugin-roblox-ts");
|
||||
const tseslint = require("typescript-eslint");
|
||||
|
||||
module.exports = defineConfig(
|
||||
eslint.configs.recommended,
|
||||
tseslint.configs.recommended,
|
||||
roblox.configs.tsRecommendedCompat,
|
||||
roblox.configs.recommended,
|
||||
{
|
||||
rules: {
|
||||
"@typescript-eslint/no-explicit-any": "off",
|
||||
"roblox-ts/no-any": "off",
|
||||
},
|
||||
},
|
||||
globalIgnores(["out/**", "config.js"]),
|
||||
prettierRecommended,
|
||||
);
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
import eslint from "@eslint/js";
|
||||
import { defineConfig, globalIgnores } from "eslint/config";
|
||||
import prettierRecommended from "eslint-plugin-prettier/recommended";
|
||||
import roblox from "eslint-plugin-roblox-ts";
|
||||
import tseslint from "typescript-eslint";
|
||||
|
||||
export default defineConfig(
|
||||
eslint.configs.recommended,
|
||||
tseslint.configs.recommended,
|
||||
roblox.configs.tsRecommendedCompat,
|
||||
roblox.configs.recommended,
|
||||
{
|
||||
rules: {
|
||||
"@typescript-eslint/no-explicit-any": "off",
|
||||
"roblox-ts/no-any": "off",
|
||||
},
|
||||
},
|
||||
globalIgnores(["out/**"]),
|
||||
prettierRecommended,
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue