Skip to content

Commit

Permalink
chore: Fix .prettierignore (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
bicstone authored Oct 16, 2024
1 parent 969c96a commit 4bde9a6
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
8 changes: 0 additions & 8 deletions .deepsource.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,3 @@ enabled = true

[analyzers.meta]
plugins = ["react"]

[[transformers]]
name = "prettier"
enabled = true

[[transformers]]
name = "standardjs"
enabled = true
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/.yarn

/coverage

/*.js
/*.d.ts

/e2e
14 changes: 7 additions & 7 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import eslintConfigLove from 'eslint-config-love'
import eslintConfigLove from "eslint-config-love";

/** @type { import("eslint").Linter.Config[] } */
export default [
{
...eslintConfigLove,
files: ['**/*.ts', '**/*.tsx'],
files: ["**/*.ts", "**/*.tsx"],
rules: {
...eslintConfigLove.rules,
// Tentatively changed from error to warn due to migration
'@typescript-eslint/no-magic-numbers': 'warn'
}
"@typescript-eslint/no-magic-numbers": "warn",
},
},
{
ignores: ['.yarn/', 'coverage/', 'e2e/', '*.js', '*.d.ts']
}
]
ignores: [".yarn/", "coverage/", "e2e/", "*.js", "*.d.ts"],
},
];
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gatsby-plugin-fix-fouc",
"version": "1.1.0",
"version": "1.1.1",
"description": "Gatsby Plugin Fix FOUC is a plugin that solves flicker of unstyled content",
"main": "index.js",
"types": "index.d.ts",
Expand All @@ -20,7 +20,7 @@
"build:emit": "tsc -p tsconfig.emitDeclarations.json",
"lint": "eslint --cache",
"lint:fix": "yarn lint --fix",
"format": "prettier --cache --ignore-path .eslintignore --write .",
"format": "prettier --cache --write .",
"typecheck": "tsc -p . --noEmit && tsc -p ./e2e/tsconfig.json --noEmit",
"test": "jest",
"preinstall": "npx only-allow yarn",
Expand Down

0 comments on commit 4bde9a6

Please sign in to comment.