Skip to content

Commit

Permalink
Linting changes, fixing deprecation errors, simplifying configs.
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjesski committed Nov 14, 2024
1 parent 5b17f60 commit e88015a
Show file tree
Hide file tree
Showing 32 changed files with 237 additions and 216 deletions.
31 changes: 5 additions & 26 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
// Configuration for JavaScript files
"extends": [
"airbnb-base",
"next/core-web-vitals",
Expand All @@ -9,12 +8,13 @@
"prettier/prettier": [
"error",
{
"singleQuote": true
"singleQuote": true,
"endOfLine": "lf"
}
]
],
"linebreak-style": ["error", "unix"]
},
"overrides": [
// Configuration for TypeScript files
{
"files": ["**/*.ts", "**/*.tsx"],
"plugins": ["@typescript-eslint", "unused-imports"],
Expand All @@ -28,28 +28,7 @@
},
"rules": {
"no-param-reassign": "off",
"no-plusplus": "off",
"prettier/prettier": [
"error",
{
"singleQuote": true
}
],
"react/destructuring-assignment": "off", // Vscode doesn't support automatically destructuring, it's a pain to add a new variable
"jsx-a11y/anchor-is-valid": "off", // Next.js use his own internal link system
"react/require-default-props": "off", // Allow non-defined react props as undefined
"react/jsx-props-no-spreading": "off", // _app.tsx uses spread operator and also, react-hook-form
"@next/next/no-img-element": "off", // We currently not using next/image because it isn't supported with SSG mode
"import/order": "off",
"@typescript-eslint/comma-dangle": "off", // Avoid conflict rule between Eslint and Prettier
"import/prefer-default-export": "off", // Named export is easier to refactor automatically
"class-methods-use-this": "off", // _document.tsx use render method without `this` keyword
"@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_" }
]
"no-plusplus": "off"
}
}
]
Expand Down
12 changes: 12 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ module.exports = {
};
return config;
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'images.igdb.com',
},
{
protocol: 'https',
hostname: 'jesski.com',
},
],
},
env: {
SITE_URL: process.env.SITE_URL,
TWITCH_CLIENT_ID: process.env.TWITCH_CLIENT_ID,
Expand Down
174 changes: 87 additions & 87 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e88015a

Please sign in to comment.