Skip to content

Commit

Permalink
v0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
aMarCruz committed Feb 18, 2021
1 parent dee9977 commit 487fd24
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ ESLint preset for QuITS apps
### Changed

- Minor fixes to the Readme
- Add missing `"spaceBeforeFunctionParen": true` to .prettierrc.json
- Now `quits-eslint-init` creates a '.vscode/settings.json' file with basic VS Code settings to apply '@quitsmx/eslint-config' to JavaScript files, with automatic format on save.
- Update dependencies.

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ You can overwrite whatever you want (`rules`, `env`, etc), only "extends" is req

### PrettierX

Configure PrettierX with a `.prettierrc.json` file in the root of your project, for example:
Configure PrettierX with a `.prettierrc.json` file in the root of your project.
For example, this config used by QuITS.mx, is almost the same as StandardJS:

```json
{
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/generator-start.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const anonymous = function * () {
}

const shorthand = {
* generator() {
* generator () {
/* */
},
}
2 changes: 1 addition & 1 deletion test/fixtures/react2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type Props = { foo: typeof Foo; bar: readonly string[][] }
type Dict = { [k: string]: React.Ref<any> }

class Test1 extends React.Component<Props> {
render() {
render () {
// no-unused-vars must be off. Comment next line to show the TS warning
/* eslint-disable @typescript-eslint/no-require-imports */
// @ts-expect-error
Expand Down

0 comments on commit 487fd24

Please sign in to comment.