Skip to content

Commit

Permalink
fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
odanado committed May 12, 2024
1 parent b0b8b4e commit 7fd3b8e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/configs/flat/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { environments } from "../../environments/index"
let plugin: unknown
export default [
{
name: "eslint-plugin-astro/base/plugin",
name: "astro/base/plugin",
plugins: {
get astro(): ESLint.Plugin {
// eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires -- ignore
Expand All @@ -21,7 +21,7 @@ export default [
},
},
{
name: "eslint-plugin-astro/base",
name: "astro/base",
files: ["*.astro", "**/*.astro"],
languageOptions: {
globals: {
Expand All @@ -47,7 +47,7 @@ export default [
{
// Define the configuration for `<script>` tag.
// Script in `<script>` is assigned a virtual file name with the `.js` extension.
name: "eslint-plugin-astro/base/javascript",
name: "astro/base/javascript",
files: ["**/*.astro/*.js", "*.astro/*.js"],
languageOptions: {
globals: {
Expand All @@ -64,7 +64,7 @@ export default [
{
// Define the configuration for `<script>` tag when using `client-side-ts` processor.
// Script in `<script>` is assigned a virtual file name with the `.ts` extension.
name: "eslint-plugin-astro/base/typescript",
name: "astro/base/typescript",
files: ["**/*.astro/*.ts", "*.astro/*.ts"],
languageOptions: {
globals: {
Expand Down
2 changes: 1 addition & 1 deletion src/configs/flat/recommended.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import base from "./base"
export default [
...base,
{
name: "eslint-plugin-astro/recommended",
name: "astro/recommended",
rules: {
// eslint-plugin-astro rules
"astro/missing-client-only-directive-value": "error",
Expand Down
10 changes: 5 additions & 5 deletions tools/update-rulesets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ import { environments } from "../../environments/index"
let plugin: unknown
export default [
{
name: 'eslint-plugin-astro/base/plugin',
name: 'astro/base/plugin',
plugins: {
get astro(): ESLint.Plugin {
// eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires -- ignore
Expand All @@ -123,7 +123,7 @@ export default [
},
},
{
name: 'eslint-plugin-astro/base',
name: 'astro/base',
files: ["*.astro", "**/*.astro"],
languageOptions: {
globals: {
Expand Down Expand Up @@ -153,7 +153,7 @@ export default [
{
// Define the configuration for \`<script>\` tag.
// Script in \`<script>\` is assigned a virtual file name with the \`.js\` extension.
name: 'eslint-plugin-astro/base/javascript',
name: 'astro/base/javascript',
files: ["**/*.astro/*.js", "*.astro/*.js"],
languageOptions: {
globals: {
Expand All @@ -170,7 +170,7 @@ export default [
{
// Define the configuration for \`<script>\` tag when using \`client-side-ts\` processor.
// Script in \`<script>\` is assigned a virtual file name with the \`.ts\` extension.
name: 'eslint-plugin-astro/base/typescript',
name: 'astro/base/typescript',
files: ["**/*.astro/*.ts", "*.astro/*.ts"],
languageOptions: {
globals: {
Expand Down Expand Up @@ -229,7 +229,7 @@ import base from './base';
export default [
...base,
{
name: 'eslint-plugin-astro/recommended',
name: 'astro/recommended',
rules: {
// eslint-plugin-astro rules
${recommendedRules
Expand Down

0 comments on commit 7fd3b8e

Please sign in to comment.