Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update package #163

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions .eslintrc.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import PluginGenerator from "../plugin/index.js";
import { fileURLToPath } from "node:url";
import path from "node:path";

const __dirname = path.dirname(fileURLToPath(import.meta.url)); // eslint-disable-line no-underscore-dangle
const __dirname = path.dirname(fileURLToPath(import.meta.url));

const RULE_GENERATOR_PATH = path.join(__dirname, "..", "rule", "index.js");
const PLUGIN_GENERATOR_PATH = path.join(__dirname, "..", "plugin", "index.js");
Expand Down
18 changes: 18 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import globals from "globals";

/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
{
files: ["tests/**/*.js"],
languageOptions: {
globals: globals.mocha,
ecmaVersion: 2020
}
},
{
ignores: [
"plugin/**/*.js",
"rule/**/*.js",
]
}
];
2 changes: 1 addition & 1 deletion lib/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Regex for valid IDs
* @type {RegExp}
*/
const rValidId = /^(?:[a-z0-9]+(?:-[a-z0-9]+)*)$/u;
const rValidId = /^[a-z\d]+(?:-[a-z\d]+)*$/u

/**
* Determines if a given pluginId is valid. This is used by the prompt system.
Expand Down
Loading
Loading