Skip to content

Commit

Permalink
Remove duplicate prettier config
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraGeowerkstatt committed Jul 16, 2024
1 parent 1d82352 commit 26db782
Showing 1 changed file with 22 additions and 31 deletions.
53 changes: 22 additions & 31 deletions src/client/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,34 +1,25 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "react-refresh", "prettier"],
ignorePatterns: ["dist", ".eslintrc.cjs"],
parserOptions: { ecmaVersion: "latest", sourceType: "module" },
settings: { react: { version: "detect" } },
rules: {
"prettier/prettier": [
"error",
{
bracketSameLine: true,
trailingComma: "all",
arrowParens: "avoid",
printWidth: 120,
endOfLine: "auto",
},
root: true,
env: {browser: true, es2020: true},
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
],
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"react/display-name": "off",
},
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "react-refresh", "prettier"],
ignorePatterns: ["dist", ".eslintrc.cjs"],
parserOptions: {ecmaVersion: "latest", sourceType: "module"},
settings: {react: {version: "detect"}},
rules: {
"prettier/prettier": "error",
"react-refresh/only-export-components": ["warn", {allowConstantExport: true}],
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"react/display-name": "off",
},
};

0 comments on commit 26db782

Please sign in to comment.