Skip to content

Commit

Permalink
update prettier config
Browse files Browse the repository at this point in the history
  • Loading branch information
zuies committed Feb 20, 2024
1 parent 990244d commit 8cb283c
Show file tree
Hide file tree
Showing 147 changed files with 1,444 additions and 1,373 deletions.
21 changes: 7 additions & 14 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
module.exports = {
env: {
browser: true,
es2021: true
es2021: true,
},
extends: [
'plugin:react/recommended',
'standard-with-typescript'
],
overrides: [
],
extends: ['plugin:react/recommended', 'standard-with-typescript'],
overrides: [],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
sourceType: 'module',
},
plugins: [
'react'
],
rules: {
}
}
plugins: ['react'],
rules: {},
};
8 changes: 2 additions & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,11 @@
"plugin:prettier/react",
"plugin:prettier/@typescript-eslint"
],
"plugins": [
"@typescript-eslint",
"react",
"prettier"
],
"plugins": ["@typescript-eslint", "react", "prettier"],
"rules": {
"react/react-in-jsx-scope": "off"
},
"globals": {
"React": "writable"
}
}
}
10 changes: 7 additions & 3 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"semi": true,
"singleQuote": true
}
"trailingComma": "es5",
"semi": true,
"tabWidth": 2,
"singleQuote": true,
"jsxSingleQuote": true,
"plugins": ["prettier-plugin-tailwindcss"]
}
4 changes: 2 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ module.exports = {
'/node_modules/',
'^.+\\.module\\.(css|sass|scss)$',
],
setupFilesAfterEnv: ['<rootDir>/jest.setup.js']
}
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
};
2 changes: 1 addition & 1 deletion jest.setup.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// jest.setup.js

import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom/extend-expect';
10 changes: 3 additions & 7 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
/** @type {import('next').NextConfig} */


const nextConfig = {
reactStrictMode: false,
swcMinify: true,
trailingSlash: true,
images: {
unoptimized: true
unoptimized: true,
},
}

module.exports = nextConfig


};

module.exports = nextConfig;
95 changes: 86 additions & 9 deletions package-lock.json

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

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"lint": "eslint --ext .ts,.tsx",
"test": "jest",
"coverage": "jest --coverage",
"export": "next export"
"export": "next export",
"format": "prettier --check --ignore-path .gitignore .",
"format:fix": "prettier --write --ignore-path .gitignore ."
},
"dependencies": {
"@amplitude/analytics-browser": "^1.9.4",
Expand Down Expand Up @@ -50,7 +52,6 @@
"next": "13.0.2",
"next-router-mock": "^0.9.9",
"papaparse": "^5.4.1",
"prettier": "^2.8.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-force-graph": "^1.43.0",
Expand Down Expand Up @@ -80,6 +81,8 @@
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"postcss": "^8.4.18",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.11",
"react-test-renderer": "^18.2.0",
"tailwindcss": "^3.2.2"
}
Expand Down
2 changes: 1 addition & 1 deletion postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ module.exports = {
tailwindcss: {},
autoprefixer: {},
},
}
};
8 changes: 4 additions & 4 deletions src/components/announcements/TcAnnouncementsAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function TcAnnouncementsAlert() {
}}
>
<TcAlert
variant="filled"
variant='filled'
className={'bg-error-500'}
icon={false}
sx={{
Expand All @@ -47,7 +47,7 @@ function TcAnnouncementsAlert() {
paddingY: 0,
}}
>
<div className="md:space-x-3 flex flex-col md:flex-row items-center justify-center p-0">
<div className='flex flex-col items-center justify-center p-0 md:flex-row md:space-x-3'>
<TcText
text={
'Announcements needs write access at the server-level (i.e. Send Message, Send Messages in Threads, Create Public Threads, Create Private Threads, etc)'
Expand All @@ -56,9 +56,9 @@ function TcAnnouncementsAlert() {
variant={'subtitle1'}
/>
<TcButton
text="Update Permissions"
text='Update Permissions'
onClick={handleGrantAccess}
className="text-white"
className='text-white'
/>
</div>
</TcAlert>
Expand Down
Loading

0 comments on commit 8cb283c

Please sign in to comment.