Skip to content

Commit

Permalink
Merge pull request #44 from 0o001/master-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
malash authored Aug 21, 2023
2 parents 83fe81b + 0d9caae commit 9fef46c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ In your `.eslintrc.js` file, include this plugin:

```js
// .eslintrc.js
module.exposts = {
module.exports = {
// you'll need vue-eslint-parser for `.mina` files
parser: "vue-eslint-parser",
plugins: [
Expand All @@ -41,7 +41,7 @@ Enable rules:

```js
// .eslintrc.js
module.exposts = {
module.exports = {
rules: {
// other rules
"miniprogram/attribute-event-name-case": ["error", "camel"],
Expand Down Expand Up @@ -194,7 +194,7 @@ Bad case:

Different Mini Program runtimes have different required fields in config (`.json`) file.

You should add `"conponent": true` if you are using `Component` function.
You should add `"component": true` if you are using `Component` function.

```ts
// comp.js
Expand All @@ -208,7 +208,7 @@ Component({});
</config>
```

You should not use `"conponent": true` in `Page` function.
You should not use `"component": true` in `Page` function.

```ts
// page.js
Expand Down

0 comments on commit 9fef46c

Please sign in to comment.