Skip to content

Commit

Permalink
build(tng-dictionary): configure formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
jbambrick committed Mar 18, 2022
1 parent 4079720 commit bd327b7
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ max_line_length = 100

[*.md]
max_line_length = off
trim_trailing_whitespace = false
trim_trailing_whitespace = true

1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"ignorePatterns": [
"**/*"
],

"plugins": [
"@nrwl/nx"
],
Expand Down
10 changes: 5 additions & 5 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"singleQuote": true,
"trailingComma": "all",
"printWidth": 100,
"tabWidth": 2
}
"trailingComma": "es5",
"tabWidth": 4,
"semi": false,
"singleQuote": true
}
7 changes: 6 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
{}
{
"trailingComma": "es5",
"tabWidth": 4,
"semi": true,
"singleQuote": true
}
1 change: 1 addition & 0 deletions apps/tng-dictionary/src/components/Carousel/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export function Carousel(props: CarouselProps) {
whileTap={{ scale: 0.9 }}>
<Button className='clicker' disableRipple={true} onClick={e => setIndex(cyclicDecrement(currentIndex, props.data.length - 1))}><ArrowBackIosNewOutlinedIcon /> Back</Button>
</motion.div>

<motion.div onClick={() => setToggle(prevValue => {
return prevValue ? 200 : 200;
})} whileHover={{ scale: 1.1, transition: { duration: 0.1 } }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import MenuBookTwoToneIcon from '@mui/icons-material/MenuBookTwoTone';
import doValuesMatchFilters from '../../utilities/doValuesMatchFilters';
import stringIncludes from '../../utilities/matchers/stringIncludes';
import { HasIdAndName } from '../../types/HasNameAndId';
import Test from '../sandbox/Test/Test';
import MiniLoading from '../MiniLoading/mini-loading';

type ComponentState = {
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"eslint-plugin-react-hooks": "4.2.0",
"jest": "27.0.3",
"jest-preset-angular": "9.0.4",
"prettier": "^2.3.1",
"prettier": "2.6.0",
"react-test-renderer": "17.0.2",
"supertest": "^6.2.2",
"ts-jest": "27.0.3",
Expand Down

0 comments on commit bd327b7

Please sign in to comment.