Skip to content

Commit

Permalink
Support special files if placed not in the root (#12)
Browse files Browse the repository at this point in the history
# Support special files if placed not in the root

## ♻️ Current situation & Problem
Sometimes, special files like Tailwind config, ESLint config or
Playwright config might not be placed in the root of file directory.
This change enables ESLint to handle that.


## ⚙️ Release Notes 
* Support special files if placed not in the root


## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md).
  • Loading branch information
arkadiuszbachorski authored Feb 3, 2025
1 parent b77bf2c commit 3916331
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/eslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ export const getEslintConfig = ({
},
{
files: [
"eslint.config.?(c)js",
".prettierrc.?(c)js",
"postcss.config.?(c)js",
"tailwind.config.?(c)js",
"**/eslint.config.?(c)js",
"**/.prettierrc.?(c)js",
"**/postcss.config.?(c)js",
"**/tailwind.config.?(c)js",
],
languageOptions: {
globals: globals.node,
Expand Down Expand Up @@ -164,12 +164,12 @@ export const getEslintConfig = ({
eslintPluginPrettierRecommended,
{
files: [
"playwright.config.ts",
"tailwind.config.ts",
"vite.config.ts",
"{app,pages}/**/*.ts?(x)",
"{app,pages}/**/*.ts?(x)", // app or pages directories for Next codebases
"**/playwright.config.ts",
"**/tailwind.config.ts",
"**/vite.config.ts",
"**/*.stories.ts?(x)",
".storybook/**/*.ts?(x)",
"**/.storybook/**/*.ts?(x)",
],
rules: {
"import/no-default-export": "off",
Expand Down

0 comments on commit 3916331

Please # to comment.