Skip to content

Commit

Permalink
chore: fixed assignment to variable before exporting in config
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbrusegard committed Jan 27, 2024
1 parent bca86c8 commit 286efe4
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
const config = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: true,
Expand Down Expand Up @@ -34,3 +34,5 @@ module.exports = {
],
},
};

module.exports = config;
4 changes: 3 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ await import('./src/env.js');
const withNextIntl = nextIntl('./src/i18n.ts');

/** @type {import("next").NextConfig} */
export default withNextIntl({});
const config = {};

export default withNextIntl(config);
4 changes: 3 additions & 1 deletion postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module.exports = {
const config = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};

module.exports = config;
4 changes: 3 additions & 1 deletion prettier.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @type {import('prettier').Config & import('prettier-plugin-tailwindcss').PluginOptions & import("@trivago/prettier-plugin-sort-imports").PluginConfig} */
export default {
const config = {
semi: true,
singleQuote: true,
tabWidth: 2,
Expand All @@ -19,3 +19,5 @@ export default {
'prettier-plugin-tailwindcss',
],
};

export default config;
4 changes: 3 additions & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { type Config } from 'tailwindcss';
import { fontFamily } from 'tailwindcss/defaultTheme';

export default {
const config = {
content: ['./src/**/*.tsx'],
darkMode: 'class',
theme: {
Expand Down Expand Up @@ -75,3 +75,5 @@ export default {
require('tailwind-scrollbar')({ nocompatible: true }),
],
} satisfies Config;

export default config;

0 comments on commit 286efe4

Please sign in to comment.