Skip to content

Commit

Permalink
chore: update package
Browse files Browse the repository at this point in the history
Delete unnecessary codes
  • Loading branch information
zorro901 committed Sep 23, 2023
1 parent 86163c8 commit 8b558d6
Show file tree
Hide file tree
Showing 10 changed files with 10,224 additions and 7,480 deletions.
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

0 comments on commit 8b558d6

Please sign in to comment.