Skip to content

Commit

Permalink
chore: add prettier present to remark
Browse files Browse the repository at this point in the history
  • Loading branch information
techfg committed Mar 23, 2024
1 parent bcadf24 commit cc89b2c
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ Please do not create a Pull Request without creating an issue first.

## What is this change for?

- [ ] Feature / enhancement - *Any change should be discussed in the associated Issue before proceeding. Failure to do so may result in the rejection of the pull request.*
- [ ] Feature / enhancement - _Any change should be discussed in the associated Issue before proceeding. Failure to do so may result in the rejection of the pull request._
- [ ] Bug
- [ ] Docs
- [ ] Tests

## Description (required)

***Please provide enough information so that others can review your pull request.***
_**Please provide enough information so that others can review your pull request.**_
Explain the **details** for making this change. What existing problem does the pull request solve and/or what capability does it add?
Example: When "Adding a function to do X", explain why it is necessary to have a way to do X.

Expand Down
8 changes: 7 additions & 1 deletion .remarkrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
settings: {
bullet: '-',
emphasis: '*',
emphasis: '_',
listItemIndent: 'one',
quote: "'",
rule: '-',
Expand All @@ -12,11 +12,17 @@ module.exports = {
'remark-preset-lint-consistent',
'remark-preset-lint-markdown-style-guide',
'remark-preset-lint-recommended',
'remark-preset-prettier',
['remark-lint-list-item-indent', 'space'],
['remark-lint-maximum-line-length', false],
['remark-lint-list-item-spacing', { checkBlanks: true }],
['remark-lint-no-file-name-irregular-characters', false],
['remark-lint-ordered-list-marker-value', 'ordered'],
['remark-lint-emphasis-marker', '_'],
['remark-lint-unordered-list-marker-style', '-'],
['remark-lint-link-title-style', "'"],
['remark-lint-rule-style', '---'],
['remark-lint-strong-marker', '*'],
'remark-frontmatter',
'remark-gfm'
]
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
- [Issue 324](https://github.com/jamietre/ImageMapster/issues/324) Improve project health
- [Issue 325](https://github.com/jamietre/ImageMapster/issues/325) Add badges & CDN info to readme
- [Issue 327](https://github.com/jamietre/ImageMapster/issues/327) Add linter & format files
- [Issue 328](https://github.com/jamietre/ImageMapster/issues/328) Fix tracking internal map\_cache on unbind
- [Issue 328](https://github.com/jamietre/ImageMapster/issues/328) Fix tracking internal map_cache on unbind
- [Issue 330](https://github.com/jamietre/ImageMapster/issues/330) Fix shapes example rectangle responds to mouseevents
- [Issue 332](https://github.com/jamietre/ImageMapster/issues/332) Fix programmatic area highlight to single area at a time
- [Issue 333](https://github.com/jamietre/ImageMapster/issues/333) Fix USA example area highlight & select
Expand Down Expand Up @@ -254,7 +254,7 @@ Notes
- added tests for tooltip external & event bound invocation
- added invoking tooltip from area, e.g. $('some-area').mapster('tooltip')
- added invoking tooltip from key, e.g. .mapster('tooltip',key);
- Bug fix for get\_options, showToolTip (related)
- Bug fix for get_options, showToolTip (related)
- Bug fix - area id 0 on VML rendereding deselection causes all selections to disappear (introduced in beta 2)
- Changed "get" to return true "selected" state and not "isSelected()" which includes staticState items in selected.
- Bug fix - stroke sometimes rendered improperly when using render-specific options
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The [issue tracker](https://github.com/jamietre/ImageMapster/issues) is the pref

## Bug reports

A bug is a *demonstrable problem* that is caused by the code in the repository. Good bug reports are extremely helpful, so thank you!
A bug is a _demonstrable problem_ that is caused by the code in the repository. Good bug reports are extremely helpful, so thank you!

Guidelines for bug reports:

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# ImageMapster: A jQuery Plugin to make image maps useful

[![license](https://img.shields.io/github/license/jamietre/ImageMapster)](LICENSE)
[![gh stable](https://img.shields.io/github/v/release/jamietre/imagemapster?sort=semver\&label=stable)](https://GitHub.com/jamietre/ImageMapster/releases/)
[![gh latest](https://img.shields.io/github/v/release/jamietre/imagemapster?include_prereleases\&sort=semver\&label=latest)](https://GitHub.com/jamietre/ImageMapster/releases/)
[![gh stable](https://img.shields.io/github/v/release/jamietre/imagemapster?sort=semver&label=stable)](https://GitHub.com/jamietre/ImageMapster/releases/)
[![gh latest](https://img.shields.io/github/v/release/jamietre/imagemapster?include_prereleases&sort=semver&label=latest)](https://GitHub.com/jamietre/ImageMapster/releases/)
[![npm downloads](https://img.shields.io/npm/dm/imagemapster?label=npm)](https://www.npmjs.com/package/imagemapster)
[![jsDelivr downloads](https://data.jsdelivr.com/v1/package/npm/imagemapster/badge?style=rounded)](https://www.jsdelivr.com/package/npm/imagemapster)
[![cdnjs version](https://img.shields.io/cdnjs/v/imagemapster.svg?color=orange)](https://cdnjs.com/libraries/imagemapster)
Expand Down Expand Up @@ -143,7 +143,7 @@ $('#usamap').mapster('set', true, 'new-england');
$('#usamap').mapster('set', true, 'really-cold');
```

Groups created this way are *independent* of the primary group. If you select "new-england" from code, you can't unselect just "MA" by clicking on it. You would have to unselect "new-england" from code.
Groups created this way are _independent_ of the primary group. If you select "new-england" from code, you can't unselect just "MA" by clicking on it. You would have to unselect "new-england" from code.

To simply indentify a set of areas to turn on or off, but not treat them as a logical group, you can use CSS classes and select areas directly, or use the `keys` option to identify the primary keys associated with a group (see documentation).

Expand Down
15 changes: 14 additions & 1 deletion package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"remark-gfm": "^4.0.0",
"remark-preset-lint-consistent": "^5.1.2",
"remark-preset-lint-markdown-style-guide": "^5.1.3",
"remark-preset-lint-recommended": "^6.1.3"
"remark-preset-lint-recommended": "^6.1.3",
"remark-preset-prettier": "^2.0.1"
}
}

0 comments on commit cc89b2c

Please sign in to comment.