-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: scss preset * chore: format code * chore: changeset
- Loading branch information
1 parent
914bc47
commit c46191b
Showing
46 changed files
with
165 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@virtual-live-lab/stylelint-config": patch | ||
--- | ||
|
||
fix at rule for scss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
# How to contribute | ||
|
||
## Did you find a bug? | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
//@ts-check | ||
export { default } from "@virtual-live-lab/eslint-config/presets/ts" | ||
export { default } from "@virtual-live-lab/eslint-config/presets/ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
//@ts-check | ||
export { default } from "@virtual-live-lab/eslint-config/presets/ts" | ||
export { default } from "@virtual-live-lab/eslint-config/presets/ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { compat } from "../lib/compat" | ||
import { compat } from "../lib/compat"; | ||
|
||
const jsxA11y = compat.extends("plugin:jsx-a11y/strict") | ||
const jsxA11y = compat.extends("plugin:jsx-a11y/strict"); | ||
|
||
export default jsxA11y | ||
export default jsxA11y; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import type { Linter } from "eslint" | ||
import type { Linter } from "eslint"; | ||
|
||
import eslintPluginAstro from "eslint-plugin-astro" | ||
import eslintPluginAstro from "eslint-plugin-astro"; | ||
|
||
const astroConfig: Linter.FlatConfig[] = [ | ||
...eslintPluginAstro.configs["flat/recommended"], | ||
// flat/jsx-a11y-strictは、eslint-plugin-jsx-a11yの設定をベースにしているので、 | ||
// インストールされていないとエラーになるが、このパッケージはdependenciesに含まれているので問題ない | ||
...eslintPluginAstro.configs["flat/jsx-a11y-strict"], | ||
] | ||
]; | ||
|
||
export { astroConfig } | ||
export { astroConfig }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import type { Linter } from "eslint" | ||
import type { Linter } from "eslint"; | ||
|
||
import js from "@eslint/js" | ||
import gitignore from "eslint-config-flat-gitignore" | ||
import js from "@eslint/js"; | ||
import gitignore from "eslint-config-flat-gitignore"; | ||
|
||
const jsConfig: Linter.FlatConfig[] = [gitignore(), js.configs.recommended] | ||
const jsConfig: Linter.FlatConfig[] = [gitignore(), js.configs.recommended]; | ||
|
||
export { jsConfig } | ||
export { jsConfig }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { compat } from "./lib/compat" | ||
export { compat } from "./lib/compat"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { FlatCompat } from "@eslint/eslintrc" | ||
import { FlatCompat } from "@eslint/eslintrc"; | ||
|
||
import { __dirname } from "./dir" | ||
import { __dirname } from "./dir"; | ||
|
||
// 最も近いpackage.jsonを探索して、そのディレクトリをbaseDirectoryとして設定 | ||
const compat = new FlatCompat({ baseDirectory: __dirname }) | ||
const compat = new FlatCompat({ baseDirectory: __dirname }); | ||
|
||
export { compat } | ||
export { compat }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { packageDirectorySync } from "pkg-dir" | ||
import { packageDirectorySync } from "pkg-dir"; | ||
|
||
export const __dirname = packageDirectorySync() | ||
export const __dirname = packageDirectorySync(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import type { TSESLint } from "@typescript-eslint/utils" | ||
import type { TSESLint } from "@typescript-eslint/utils"; | ||
|
||
import tseslint from "typescript-eslint" | ||
import tseslint from "typescript-eslint"; | ||
|
||
import { astroConfig } from "../base/astro" | ||
import { reactConfig } from "../base/react" | ||
import ts from "./ts" | ||
import { astroConfig } from "../base/astro"; | ||
import { reactConfig } from "../base/react"; | ||
import ts from "./ts"; | ||
|
||
const astro: TSESLint.FlatConfig.ConfigArray = tseslint.config( | ||
...ts, | ||
...astroConfig, | ||
...reactConfig, | ||
) | ||
); | ||
|
||
export default astro | ||
export default astro; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import astro from "./astro" | ||
import js from "./js" | ||
import react from "./react" | ||
import ts from "./ts" | ||
import astro from "./astro"; | ||
import js from "./js"; | ||
import react from "./react"; | ||
import ts from "./ts"; | ||
|
||
const presets = { | ||
astro, | ||
js, | ||
react, | ||
ts, | ||
} | ||
}; | ||
|
||
export default presets | ||
export default presets; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { jsConfig } from "../base/js" | ||
import { stylisticConfig } from "../base/stylistic" | ||
import { jsConfig } from "../base/js"; | ||
import { stylisticConfig } from "../base/stylistic"; | ||
|
||
const js = [...jsConfig, ...stylisticConfig] | ||
const js = [...jsConfig, ...stylisticConfig]; | ||
|
||
export default js | ||
export default js; |
Oops, something went wrong.