Skip to content

Commit

Permalink
feat(svg-config): initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
benedfit committed Mar 28, 2022
1 parent d34089c commit 6460ca2
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ New High Score shareable configs:
- :package: :speech_balloon: [`commitlint-config`](packages/commitlint-config) [![NPM version](https://img.shields.io/npm/v/@newhighsco/commitlint-config.svg)](https://www.npmjs.com/package/@newhighsco/commitlint-config)
- :package: :writing_hand: [`editor-config`](packages/editor-config) [![NPM version](https://img.shields.io/npm/v/@newhighsco/editor-config.svg)](https://www.npmjs.com/package/@newhighsco/editor-config)
- :package: :recycle: [`renovate-config`](packages/renovate-config) [![NPM version](https://img.shields.io/npm/v/@newhighsco/renovate-config.svg)](https://www.npmjs.com/package/@newhighsco/renovate-config)
- :package: :gear: [`svgo-config`](packages/svgo-config) [![NPM version](https://img.shields.io/npm/v/@newhighsco/svgo-config.svg)](https://www.npmjs.com/package/@newhighsco/svgo-config)
21 changes: 21 additions & 0 deletions packages/svgo-config/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# svgo-config [![NPM version](https://img.shields.io/npm/v/@newhighsco/svgo-config.svg)](https://www.npmjs.com/package/@newhighsco/svgo-config)

New High Score [shareable config](https://github.com/svg/svgo#configuration) for [SVGO](https://github.com/svg/svgo)

## Installation

Install `@newhighsco/svgo-config`:

```
yarn add -D @newhighsco/svgo-config
```

## Usage
New High Score SVGO rules come bundled in `@newhighsco/svgo-config`. To enable these rules, add a `svgo.config.js` at the root of your project. See the [SVGO configuration docs](https://github.com/svg/svgo#configuration) for more details.

```javascript
// `svgo.config.js`
module.exports = require('@newhighsco/svgo-config');
```

## [CHANGELOG](CHANGELOG.md)
12 changes: 12 additions & 0 deletions packages/svgo-config/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
plugins: [
{
name: 'preset-default',
params: {
overrides: {
prefixIds: false
}
}
}
]
}
21 changes: 21 additions & 0 deletions packages/svgo-config/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "@newhighsco/svgo-config",
"description": "New High Score shareable config for SVGO",
"version": "3.4.73",
"author": "New High Score <hello@newhighsco.re>",
"license": "ISC",
"private": false,
"repository": {
"type": "git",
"url": "https://github.com/newhighsco/config.git",
"directory": "packages/svgo-config"
},
"homepage": "https://github.com/newhighsco/config/tree/main/packages/svgo-config#readme",
"bugs": {
"url": "https://github.com/newhighsco/config/issues"
},
"main": "index.js",
"scripts": {
"test": "echo 'No test specified'"
}
}

0 comments on commit 6460ca2

Please sign in to comment.