mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-26 17:48:30 -04:00
more eslint/prettier cleanup
This commit is contained in:
parent
a73f6a9c30
commit
69a0a25063
28
.eslintrc.js
28
.eslintrc.js
@ -12,34 +12,34 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
plugins: ["@typescript-eslint", "prettier"],
|
plugins: ["@typescript-eslint", "prettier"],
|
||||||
rules: {
|
rules: {
|
||||||
|
camelcase: "off",
|
||||||
"@typescript-eslint/ban-ts-comment": "off",
|
"@typescript-eslint/ban-ts-comment": "off",
|
||||||
"@typescript-eslint/no-explicit-any": "warn",
|
"@typescript-eslint/no-explicit-any": "warn",
|
||||||
"react/no-unescaped-entities": "off",
|
"react/no-unescaped-entities": "off",
|
||||||
"prettier/prettier": [
|
"react/jsx-boolean-value": "error",
|
||||||
|
"react/jsx-wrap-multilines": [
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
// normal .prettierrc config:
|
// https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/jsx-wrap-multilines.md#rule-details
|
||||||
singleQuote: false,
|
arrow: "parens-new-line",
|
||||||
tabWidth: 2,
|
assignment: "parens-new-line",
|
||||||
printWidth: 120,
|
condition: "parens-new-line",
|
||||||
|
declaration: "parens-new-line",
|
||||||
|
logical: "parens-new-line",
|
||||||
|
prop: "ignore",
|
||||||
|
return: "parens-new-line",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
"prettier/prettier": ["error", {}, { usePrettierrc: true }],
|
||||||
},
|
},
|
||||||
overrides: [
|
overrides: [
|
||||||
{
|
{
|
||||||
files: ["*.md", "*.mdx"],
|
files: ["*.md", "*.mdx"],
|
||||||
extends: ["plugin:mdx/recommended"],
|
extends: ["plugin:mdx/recommended"],
|
||||||
rules: {
|
rules: {
|
||||||
|
"import/no-unresolved": "off",
|
||||||
"react/jsx-no-undef": "off",
|
"react/jsx-no-undef": "off",
|
||||||
"prettier/prettier": [
|
"react/jsx-boolean-value": "off", // TODO: causes some inconsistent parser errors in mdx
|
||||||
"error",
|
|
||||||
{
|
|
||||||
// normal .prettierrc config:
|
|
||||||
singleQuote: false,
|
|
||||||
tabWidth: 2,
|
|
||||||
printWidth: 120,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
10
.prettierrc.js
Normal file
10
.prettierrc.js
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
// https://prettier.io/docs/en/options.html
|
||||||
|
module.exports = {
|
||||||
|
singleQuote: false,
|
||||||
|
jsxSingleQuote: false,
|
||||||
|
printWidth: 120,
|
||||||
|
tabWidth: 2,
|
||||||
|
useTabs: false,
|
||||||
|
quoteProps: "as-needed",
|
||||||
|
trailingComma: "es5",
|
||||||
|
};
|
14
package-lock.json
generated
14
package-lock.json
generated
@ -56,7 +56,7 @@
|
|||||||
"remark-smartypants": "^2.0.0",
|
"remark-smartypants": "^2.0.0",
|
||||||
"remark-unwrap-images": "^3.0.1",
|
"remark-unwrap-images": "^3.0.1",
|
||||||
"remove-markdown": "^0.5.0",
|
"remove-markdown": "^0.5.0",
|
||||||
"simple-icons": "^7.8.0",
|
"simple-icons": "^7.9.0",
|
||||||
"sitemap": "^7.1.1",
|
"sitemap": "^7.1.1",
|
||||||
"swr": "^1.3.0"
|
"swr": "^1.3.0"
|
||||||
},
|
},
|
||||||
@ -10287,9 +10287,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/simple-icons": {
|
"node_modules/simple-icons": {
|
||||||
"version": "7.8.0",
|
"version": "7.9.0",
|
||||||
"resolved": "https://registry.npmjs.org/simple-icons/-/simple-icons-7.8.0.tgz",
|
"resolved": "https://registry.npmjs.org/simple-icons/-/simple-icons-7.9.0.tgz",
|
||||||
"integrity": "sha512-OBg/5e+HRphOS3R/YmJI5tvMssot2DXwNlLoN1yWiVM23BzurDBprkLgIgHn7pG2PXE5zPZujT3QVPLQYdUGDQ==",
|
"integrity": "sha512-9QhI6CVcEaIqv7dnxEIsX2k80n4hdCGa++8E6XRktv7ir/W7Cq8r+wfE+FDNpAH0mFJ7qiOz/nTL7VYEI5jhTw==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.12.18"
|
"node": ">=0.12.18"
|
||||||
},
|
},
|
||||||
@ -18648,9 +18648,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"simple-icons": {
|
"simple-icons": {
|
||||||
"version": "7.8.0",
|
"version": "7.9.0",
|
||||||
"resolved": "https://registry.npmjs.org/simple-icons/-/simple-icons-7.8.0.tgz",
|
"resolved": "https://registry.npmjs.org/simple-icons/-/simple-icons-7.9.0.tgz",
|
||||||
"integrity": "sha512-OBg/5e+HRphOS3R/YmJI5tvMssot2DXwNlLoN1yWiVM23BzurDBprkLgIgHn7pG2PXE5zPZujT3QVPLQYdUGDQ=="
|
"integrity": "sha512-9QhI6CVcEaIqv7dnxEIsX2k80n4hdCGa++8E6XRktv7ir/W7Cq8r+wfE+FDNpAH0mFJ7qiOz/nTL7VYEI5jhTw=="
|
||||||
},
|
},
|
||||||
"simple-swizzle": {
|
"simple-swizzle": {
|
||||||
"version": "0.2.2",
|
"version": "0.2.2",
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
"remark-smartypants": "^2.0.0",
|
"remark-smartypants": "^2.0.0",
|
||||||
"remark-unwrap-images": "^3.0.1",
|
"remark-unwrap-images": "^3.0.1",
|
||||||
"remove-markdown": "^0.5.0",
|
"remove-markdown": "^0.5.0",
|
||||||
"simple-icons": "^7.8.0",
|
"simple-icons": "^7.9.0",
|
||||||
"sitemap": "^7.1.1",
|
"sitemap": "^7.1.1",
|
||||||
"swr": "^1.3.0"
|
"swr": "^1.3.0"
|
||||||
},
|
},
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable camelcase */
|
|
||||||
import { NextSeo } from "next-seo";
|
import { NextSeo } from "next-seo";
|
||||||
import Layout from "../components/Layout";
|
import Layout from "../components/Layout";
|
||||||
import Content from "../components/Content";
|
import Content from "../components/Content";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user