From abd4b42ab4492e9a8619e3fc9c010d597d3d53ae Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Sun, 12 Nov 2023 04:22:46 +0900 Subject: [PATCH] chore: reflect lint(cspell) (#344) # Overview I reflected lint(cspell) ## PR Checklist - [x] I did below actions if need 1. I read the [Contributing Guide](https://github.com/suspensive/react/blob/main/CONTRIBUTING.md) 2. I added documents and tests. --- configs/eslint-config-js/.eslintrc.cjs | 2 +- .../eslint-config-js/{javascript.js => index.js} | 2 +- .../eslint-config-js/{noimport.js => no-import.js} | 0 configs/eslint-config-js/package.json | 4 ++-- .../eslint-config-ts/{typescript.js => index.js} | 2 +- .../eslint-config-ts/{noimport.js => no-import.js} | 2 +- configs/eslint-config-ts/package.json | 4 ++-- configs/eslint-config/package.json | 2 +- .../{react-ts-noimport.js => react-ts-no-import.js} | 2 +- .../{logo_notcropped.png => logo_not_cropped.png} | Bin packages/react/src/hooks/useTimeout.spec.tsx | 2 +- .../{logo_notcropped.png => logo_not_cropped.png} | Bin websites/visualization/src/app/CommonLayout.tsx | 2 +- websites/visualization/src/components/uis/index.tsx | 4 ++-- 14 files changed, 14 insertions(+), 14 deletions(-) rename configs/eslint-config-js/{javascript.js => index.js} (87%) rename configs/eslint-config-js/{noimport.js => no-import.js} (100%) rename configs/eslint-config-ts/{typescript.js => index.js} (91%) rename configs/eslint-config-ts/{noimport.js => no-import.js} (93%) rename configs/eslint-config/{react-ts-noimport.js => react-ts-no-import.js} (73%) rename docs/public/img/{logo_notcropped.png => logo_not_cropped.png} (100%) rename websites/visualization/public/{logo_notcropped.png => logo_not_cropped.png} (100%) diff --git a/configs/eslint-config-js/.eslintrc.cjs b/configs/eslint-config-js/.eslintrc.cjs index 3a1c2b890..df393cab9 100644 --- a/configs/eslint-config-js/.eslintrc.cjs +++ b/configs/eslint-config-js/.eslintrc.cjs @@ -1,5 +1,5 @@ /** @type {import('eslint').Linter.Config} */ module.exports = { root: true, - extends: ['./javascript.js'], + extends: ['./index.js'], } diff --git a/configs/eslint-config-js/javascript.js b/configs/eslint-config-js/index.js similarity index 87% rename from configs/eslint-config-js/javascript.js rename to configs/eslint-config-js/index.js index f3791e5cc..d53ec1971 100644 --- a/configs/eslint-config-js/javascript.js +++ b/configs/eslint-config-js/index.js @@ -1,7 +1,7 @@ /** @type {import('eslint').Linter.Config} */ module.exports = { root: true, - extends: ['plugin:import/recommended', './noimport.js'], + extends: ['plugin:import/recommended', './no-import.js'], plugins: ['import'], rules: { 'sort-imports': ['error', { ignoreDeclarationSort: true }], diff --git a/configs/eslint-config-js/noimport.js b/configs/eslint-config-js/no-import.js similarity index 100% rename from configs/eslint-config-js/noimport.js rename to configs/eslint-config-js/no-import.js diff --git a/configs/eslint-config-js/package.json b/configs/eslint-config-js/package.json index f07e8fe2e..5dee275ec 100644 --- a/configs/eslint-config-js/package.json +++ b/configs/eslint-config-js/package.json @@ -2,9 +2,9 @@ "name": "@suspensive/eslint-config-js", "version": "0.0.0", "private": true, - "main": "javascript.js", + "main": "index.js", "files": [ - "noimport.js" + "no-import.js" ], "scripts": { "lint": "eslint ." diff --git a/configs/eslint-config-ts/typescript.js b/configs/eslint-config-ts/index.js similarity index 91% rename from configs/eslint-config-ts/typescript.js rename to configs/eslint-config-ts/index.js index 73ebaddae..4a3acf60e 100644 --- a/configs/eslint-config-ts/typescript.js +++ b/configs/eslint-config-ts/index.js @@ -1,7 +1,7 @@ /** @type {import('eslint').Linter.Config} */ module.exports = { root: true, - extends: ['plugin:import/typescript', './noimport.js'], + extends: ['plugin:import/typescript', './no-import.js'], plugins: ['import'], settings: { 'import/resolver': { diff --git a/configs/eslint-config-ts/noimport.js b/configs/eslint-config-ts/no-import.js similarity index 93% rename from configs/eslint-config-ts/noimport.js rename to configs/eslint-config-ts/no-import.js index 55e67269b..f442f902d 100644 --- a/configs/eslint-config-ts/noimport.js +++ b/configs/eslint-config-ts/no-import.js @@ -4,7 +4,7 @@ module.exports = { parser: '@typescript-eslint/parser', plugins: ['jsdoc', '@typescript-eslint'], extends: [ - '@suspensive/eslint-config-js/noimport', + '@suspensive/eslint-config-js/no-import', 'plugin:jsdoc/recommended-typescript', 'plugin:@typescript-eslint/recommended', ], diff --git a/configs/eslint-config-ts/package.json b/configs/eslint-config-ts/package.json index 295640629..14926dcf9 100644 --- a/configs/eslint-config-ts/package.json +++ b/configs/eslint-config-ts/package.json @@ -2,9 +2,9 @@ "name": "@suspensive/eslint-config-ts", "version": "0.0.0", "private": true, - "main": "typescript.js", + "main": "index.js", "files": [ - "./noimport.js" + "./no-import.js" ], "scripts": { "lint": "eslint ." diff --git a/configs/eslint-config/package.json b/configs/eslint-config/package.json index 4fe020303..4e22cfd04 100644 --- a/configs/eslint-config/package.json +++ b/configs/eslint-config/package.json @@ -5,7 +5,7 @@ "files": [ "react-js.js", "react-ts.js", - "react-ts-noimport.js" + "react-ts-no-import.js" ], "scripts": { "lint": "eslint ." diff --git a/configs/eslint-config/react-ts-noimport.js b/configs/eslint-config/react-ts-no-import.js similarity index 73% rename from configs/eslint-config/react-ts-noimport.js rename to configs/eslint-config/react-ts-no-import.js index 8f902fce0..ed5294d4e 100644 --- a/configs/eslint-config/react-ts-noimport.js +++ b/configs/eslint-config/react-ts-no-import.js @@ -1,7 +1,7 @@ /** @type {import('eslint').Linter.Config} */ module.exports = { root: true, - extends: ['./react.js', '@suspensive/eslint-config-ts/noimport'], + extends: ['./react.js', '@suspensive/eslint-config-ts/no-import'], rules: { 'jsdoc/check-tag-names': ['warn', { jsxTags: true }], 'jsdoc/require-param': ['off'], diff --git a/docs/public/img/logo_notcropped.png b/docs/public/img/logo_not_cropped.png similarity index 100% rename from docs/public/img/logo_notcropped.png rename to docs/public/img/logo_not_cropped.png diff --git a/packages/react/src/hooks/useTimeout.spec.tsx b/packages/react/src/hooks/useTimeout.spec.tsx index 139a7c0f7..7772a6f93 100644 --- a/packages/react/src/hooks/useTimeout.spec.tsx +++ b/packages/react/src/hooks/useTimeout.spec.tsx @@ -31,7 +31,7 @@ describe('useTimeout', () => { expect(fn).toHaveBeenCalledTimes(1) }) - it('should not re-call callback reveived as argument even if component using this hook is rerendered', () => { + it('should not re-call callback received as argument even if component using this hook is rerendered', () => { const { rerender } = render() expect(screen.getByText('0')).toBeInTheDocument() diff --git a/websites/visualization/public/logo_notcropped.png b/websites/visualization/public/logo_not_cropped.png similarity index 100% rename from websites/visualization/public/logo_notcropped.png rename to websites/visualization/public/logo_not_cropped.png diff --git a/websites/visualization/src/app/CommonLayout.tsx b/websites/visualization/src/app/CommonLayout.tsx index 0aad2586f..25d6df2db 100644 --- a/websites/visualization/src/app/CommonLayout.tsx +++ b/websites/visualization/src/app/CommonLayout.tsx @@ -19,7 +19,7 @@ const TopNavigation = () => ( - logo + logo Visualization diff --git a/websites/visualization/src/components/uis/index.tsx b/websites/visualization/src/components/uis/index.tsx index 5bed012a0..63e731bb3 100644 --- a/websites/visualization/src/components/uis/index.tsx +++ b/websites/visualization/src/components/uis/index.tsx @@ -66,14 +66,14 @@ export const BaseBox = styled.div` gap: 8px; color: black; transition: all 200ms; - animation: fadein 200ms; + animation: fadeIn 200ms; font-size: 12px; :hover { opacity: 0.8; } - @keyframes fadein { + @keyframes fadeIn { from { opacity: 0; }