mirror of
https://github.com/gapmiss/iconoir-icons.git
synced 2026-07-22 04:40:01 +00:00
- Update ESLint to flat config - Add GitHub release workflow - Fix CSS conflicts and suggester icons - Update release scripts - Add package-lock.json Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
30 lines
1 KiB
JavaScript
30 lines
1 KiB
JavaScript
import tsParser from "@typescript-eslint/parser";
|
|
import tseslint from "typescript-eslint";
|
|
import obsidianmd from "eslint-plugin-obsidianmd";
|
|
|
|
export default [
|
|
{ ignores: ["node_modules/**", "main.js", "*.mjs", "scripts/**", "dist/**", "package.json", "package-lock.json", "versions.json", "tsconfig.json"] },
|
|
...tseslint.configs.recommendedTypeChecked.map(config => ({
|
|
...config,
|
|
files: ["src/**/*.ts"],
|
|
})),
|
|
...obsidianmd.configs.recommended,
|
|
{
|
|
files: ["src/**/*.ts"],
|
|
languageOptions: {
|
|
parser: tsParser,
|
|
parserOptions: {
|
|
project: "./tsconfig.json",
|
|
sourceType: "module",
|
|
},
|
|
},
|
|
rules: {
|
|
"obsidianmd/prefer-active-doc": "error",
|
|
"no-console": ["error", { allow: ["warn", "error", "debug"] }],
|
|
"@typescript-eslint/no-unused-vars": ["error", {
|
|
argsIgnorePattern: "^_",
|
|
varsIgnorePattern: "^_",
|
|
}],
|
|
},
|
|
},
|
|
];
|