mirror of
https://github.com/ivuorinen/base-configs.git
synced 2026-01-26 18:39:36 +00:00
Compare commits
46 Commits
@ivuorinen
...
@ivuorinen
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
963ff4fd63 | ||
| 085c3cedbe | |||
|
|
fe6d36c906 | ||
|
|
987baa6272 | ||
|
|
48856d9c71 | ||
|
|
12ea3688ad | ||
|
|
02e4f4779c | ||
|
|
ad9ed820d6 | ||
|
|
93ea840406 | ||
|
|
2de156e2c0 | ||
|
|
ca479deb20 | ||
|
|
8d3dbd89e8 | ||
|
|
57fbf1fd1f | ||
|
|
e4aed31ef9 | ||
|
|
ce9de621f6 | ||
|
|
cc63a2d1d7 | ||
|
|
2c5432954a | ||
|
|
241244169c | ||
|
|
3b552d1ae1 | ||
| 4da529746e | |||
|
|
d515c3e499 | ||
|
|
ba3b6cc2d8 | ||
|
|
47088feff6 | ||
|
|
4080152296 | ||
|
|
28430ef6a7 | ||
|
|
5d6d89fdeb | ||
|
|
05b25840c1 | ||
|
|
232225b186 | ||
|
|
cc183f538a | ||
|
|
338e7e343d | ||
|
|
d9090c667e | ||
|
|
72b0871beb | ||
|
|
aa6bcc6cd4 | ||
|
|
2b705cec7b | ||
|
|
6f7f3e9cfe | ||
|
|
bc0e9dcdbc | ||
|
|
031f27257a | ||
|
|
03e8a97e2b | ||
|
|
951cdb5014 | ||
|
|
b5e55bf888 | ||
|
|
b3123d3745 | ||
|
|
e1c45b82eb | ||
|
|
0b1a5dfea1 | ||
|
|
76d8d81fb8 | ||
|
|
b8da329ab8 | ||
|
|
cc414bc57f |
@@ -1 +0,0 @@
|
||||
node_modules/
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"extends": ["./packages/eslint-config"]
|
||||
}
|
||||
2
.github/renovate.json
vendored
2
.github/renovate.json
vendored
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": ["github>ivuorinen/.github:renovate-config"]
|
||||
"extends": ["github>ivuorinen/renovate-config"]
|
||||
}
|
||||
|
||||
11
.gitignore
vendored
11
.gitignore
vendored
@@ -1,15 +1,14 @@
|
||||
node_modules
|
||||
packages/**/.browserslistrc
|
||||
packages/**/.commitlintrc.json
|
||||
packages/**/.eslintrc.json
|
||||
packages/**/.*rc
|
||||
packages/**/.*rc.json
|
||||
packages/**/.markdownlint.json
|
||||
packages/**/.prettierrc.json
|
||||
packages/**/.releaserc.json
|
||||
packages/**/.stylelintrc.json
|
||||
packages/**/*.config.*
|
||||
packages/**/.*.config.*
|
||||
|
||||
!packages/browserslist-config/.browserslistrc
|
||||
!packages/commitlint-config/.commitlintrc.json
|
||||
!packages/eslint-config/.eslintrc.json
|
||||
!packages/eslint-config/eslint.config.*
|
||||
!packages/markdownlint-config/.markdownlint.json
|
||||
!packages/prettier-config/.prettierrc.json
|
||||
!packages/release-config/.releaserc.json
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
node_modules/
|
||||
/.nx/workspace-data
|
||||
|
||||
@@ -25,7 +25,7 @@ Check the _`README`_ of each package in the [`packages`][packages-link] director
|
||||
## Available Configurations
|
||||
|
||||
| Tool | Package | Version |
|
||||
| ----------------------------------------- | -------------------------------------------------- | ------------------------------------------------------------------------------------- |
|
||||
|-------------------------------------------|----------------------------------------------------|---------------------------------------------------------------------------------------|
|
||||
| [Browserslist][browserslist-link] | [@ivuorinen/browserslist-config][pkg-browserlist] | [![@ivuorinen/browserslist-config][browserslist-badge]][browserslist-npm] |
|
||||
| [CommitLint][commitlint-link] | [@ivuorinen/commitlint-config][pkg-commitlint] | [![@ivuorinen/commitlint-config][commitlint-badge]][commitlint-npm] |
|
||||
| [ESLint][eslint-link] | [@ivuorinen/eslint-config][pkg-eslint] | [![@ivuorinen/eslint-config][eslint-badge]][eslint-npm] |
|
||||
@@ -58,13 +58,12 @@ If you are interested in helping contribute, please take a look at our [contribu
|
||||
|
||||
## Changelog
|
||||
|
||||
See [CHANGELOG][changelog-link] for a human-readable history of changes.
|
||||
See CHANGELOG for a human-readable history of changes in each package own folder.
|
||||
|
||||
## License
|
||||
|
||||
Distributed under the MIT License. See [LICENSE][license-link] for more information.
|
||||
|
||||
[changelog-link]: ./CHANGELOG.md
|
||||
[contributing-link]: https://github.com/ivuorinen/.github/blob/main/CONTRIBUTING.md
|
||||
[issue-link]: https://github.com/ivuorinen/base-configs/issues
|
||||
[license-badge]: https://img.shields.io/github/license/ivuorinen/base-configs?style=flat-square&labelColor=292a44&color=663399
|
||||
|
||||
2
eslint.config.mjs
Normal file
2
eslint.config.mjs
Normal file
@@ -0,0 +1,2 @@
|
||||
import config from './packages/eslint-config/wrapper.mjs'
|
||||
export default config
|
||||
15
package.json
15
package.json
@@ -2,6 +2,7 @@
|
||||
"private": true,
|
||||
"name": "@ivuorinen/base-configs",
|
||||
"version": "1.0.0",
|
||||
"type": "module",
|
||||
"description": "A collection of base configs for code quality and linting tools.",
|
||||
"author": {
|
||||
"name": "Ismo Vuorinen",
|
||||
@@ -41,16 +42,16 @@
|
||||
"scripts": {
|
||||
"deps:dedupe": "lernaupdate --dedupe",
|
||||
"deps:update": "lernaupdate",
|
||||
"eslint:fix": "eslint --format=pretty '**/*.{js,tsx,ts}' --fix",
|
||||
"eslint:report": "eslint --format=pretty '**/*.{js,tsx,ts}'",
|
||||
"eslint:fix": "eslint --format=pretty '**/*.{js,tsx,ts,mjs,cjs}' --fix",
|
||||
"eslint:report": "eslint --format=pretty '**/*.{js,tsx,ts,mjs,cjs}'",
|
||||
"lerna:bootstrap:ci": "yarn --frozen-lockfile --ignore-engines",
|
||||
"lerna:bootstrap": "yarn",
|
||||
"lerna:publish": "lerna publish from-package",
|
||||
"lerna:version": "lerna version",
|
||||
"markdownlint:fix": "markdownlint '**/*.md' --fix",
|
||||
"markdownlint:report": "markdownlint '**/*.md'",
|
||||
"prettier:fix": "prettier '**/*.{js,tsx,ts,json}' --write",
|
||||
"prettier:report": "prettier '**/*.{js,tsx,ts,json}' --check"
|
||||
"prettier:fix": "prettier '**/*.{js,tsx,ts,json,mjs,cjs}' --write",
|
||||
"prettier:report": "prettier '**/*.{js,tsx,ts,json,mjs,cjs}' --check"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^19.0.0",
|
||||
@@ -62,9 +63,9 @@
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-n": "^17.0.0",
|
||||
"eslint-plugin-prettier": "^5.0.1",
|
||||
"eslint-plugin-promise": "^6.1.1",
|
||||
"eslint-plugin-sonarjs": "^1.0.0",
|
||||
"eslint-plugin-unicorn": "^54.0.0",
|
||||
"eslint-plugin-promise": "^7.0.0",
|
||||
"eslint-plugin-sonarjs": "^2.0.0",
|
||||
"eslint-plugin-unicorn": "^55.0.0",
|
||||
"lerna": "^8.0.0",
|
||||
"lerna-update-wizard": "^1.1.2",
|
||||
"markdownlint-cli": "^0.41.0",
|
||||
|
||||
@@ -2,6 +2,54 @@
|
||||
|
||||
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [2.0.2](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.1...@ivuorinen/base-configs@2.0.2) (2024-08-28)
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/base-configs
|
||||
|
||||
## [2.0.1](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.0...@ivuorinen/base-configs@2.0.1) (2024-08-26)
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/base-configs
|
||||
|
||||
# [2.0.0](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@1.1.106...@ivuorinen/base-configs@2.0.0) (2024-08-21)
|
||||
|
||||
- feat!: module & commonjs in base-configs ([02e4f47](https://github.com/ivuorinen/base-configs/commit/02e4f4779c79e5e179b3fb31b9a642d9ec96f862))
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
- support module, and commonjs types
|
||||
|
||||
## [1.1.106](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@1.1.105...@ivuorinen/base-configs@1.1.106) (2024-08-21)
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/base-configs
|
||||
|
||||
## [1.1.105](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@1.1.104...@ivuorinen/base-configs@1.1.105) (2024-08-12)
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/base-configs
|
||||
|
||||
## [1.1.104](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@1.1.103...@ivuorinen/base-configs@1.1.104) (2024-08-10)
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/base-configs
|
||||
|
||||
## [1.1.103](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@1.1.102...@ivuorinen/base-configs@1.1.103) (2024-08-04)
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/base-configs
|
||||
|
||||
## [1.1.102](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@1.1.101...@ivuorinen/base-configs@1.1.102) (2024-07-29)
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/base-configs
|
||||
|
||||
## [1.1.101](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@1.1.100...@ivuorinen/base-configs@1.1.101) (2024-07-27)
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/base-configs
|
||||
|
||||
## [1.1.100](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@1.1.99...@ivuorinen/base-configs@1.1.100) (2024-07-16)
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/base-configs
|
||||
|
||||
## [1.1.99](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@1.1.98...@ivuorinen/base-configs@1.1.99) (2024-07-16)
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/base-configs
|
||||
|
||||
## [1.1.98](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@1.1.97...@ivuorinen/base-configs@1.1.98) (2024-07-13)
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/base-configs
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "@ivuorinen/base-configs",
|
||||
"version": "1.1.98",
|
||||
"version": "2.0.2",
|
||||
"type": "module",
|
||||
"description": "ivuorinen's shareable configurations meta package",
|
||||
"author": {
|
||||
"name": "Ismo Vuorinen",
|
||||
@@ -27,12 +28,11 @@
|
||||
"url": "git+https://github.com/ivuorinen/base-configs.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ivuorinen/browserslist-config": "^0.2.9",
|
||||
"@ivuorinen/commitlint-config": "^0.2.23",
|
||||
"@ivuorinen/eslint-config": "^0.4.44",
|
||||
"@ivuorinen/markdownlint-config": "^0.2.9",
|
||||
"@ivuorinen/prettier-config": "^0.2.15",
|
||||
"@ivuorinen/semantic-release-config": "^0.2.23",
|
||||
"eslint-plugin-n": "^17.0.0"
|
||||
"@ivuorinen/browserslist-config": "^0.3.1",
|
||||
"@ivuorinen/commitlint-config": "^0.3.1",
|
||||
"@ivuorinen/eslint-config": "^0.5.2",
|
||||
"@ivuorinen/markdownlint-config": "^0.3.1",
|
||||
"@ivuorinen/prettier-config": "^0.3.1",
|
||||
"@ivuorinen/semantic-release-config": "^0.3.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,24 @@
|
||||
|
||||
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [0.3.1](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/browserslist-config@0.3.0...@ivuorinen/browserslist-config@0.3.1) (2024-08-28)
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/browserslist-config
|
||||
|
||||
# [0.3.0](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/browserslist-config@0.2.10...@ivuorinen/browserslist-config@0.3.0) (2024-08-21)
|
||||
|
||||
- feat!: module & commonjs in browserslist ([93ea840](https://github.com/ivuorinen/base-configs/commit/93ea8404064e62c720460b2d808fc9d39a00ec31))
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
- support module, and commonjs types
|
||||
|
||||
## [0.2.10](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/browserslist-config@0.2.9...@ivuorinen/browserslist-config@0.2.10) (2024-08-04)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- **deps:** update browserslist to 4.23.3 ([#283](https://github.com/ivuorinen/base-configs/issues/283)) ([232225b](https://github.com/ivuorinen/base-configs/commit/232225b186c3a8cf2e0f4f0d50b4c198ebdacfee))
|
||||
|
||||
## [0.2.9](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/browserslist-config@0.2.8...@ivuorinen/browserslist-config@0.2.9) (2024-07-13)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
{
|
||||
"name": "@ivuorinen/browserslist-config",
|
||||
"version": "0.2.9",
|
||||
"version": "0.3.1",
|
||||
"description": "ivuorinen's shareable configuration for Browserslist.",
|
||||
"type": "module",
|
||||
"author": {
|
||||
"name": "Ismo Vuorinen",
|
||||
"url": "https://github.com/ivuorinen"
|
||||
@@ -13,9 +14,16 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.cjs",
|
||||
"wrapper.mjs",
|
||||
"scripts/*"
|
||||
],
|
||||
"main": "index.cjs",
|
||||
"module": "wrapper.mjs",
|
||||
"exports": {
|
||||
"import": "./wrapper.mjs",
|
||||
"require": "./index.cjs"
|
||||
},
|
||||
"homepage": "https://github.com/ivuorinen/base-configs/tree/main/packages/browserslist-config#readme",
|
||||
"keywords": [
|
||||
"browserslist-config",
|
||||
@@ -24,7 +32,6 @@
|
||||
"ivuorinen"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
@@ -33,11 +40,11 @@
|
||||
"url": "https://github.com/ivuorinen/base-configs.git"
|
||||
},
|
||||
"scripts": {
|
||||
"postinstall": "node scripts/postinstall.js"
|
||||
"postinstall": "node scripts/postinstall.cjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ivuorinen/config-checker": "^1.1.4",
|
||||
"browserslist": "4.23.2"
|
||||
"@ivuorinen/config-checker": "^1",
|
||||
"browserslist": "^4"
|
||||
},
|
||||
"gitHead": "23d15f15743fb59c1dbe658615ef2ed51c54d230"
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
// noinspection NpmUsedModulesInstalled
|
||||
const process = require('process')
|
||||
const checkConfig = require('@ivuorinen/config-checker')
|
||||
const foundConfig = checkConfig('browserslist')
|
||||
2
packages/browserslist-config/wrapper.mjs
Normal file
2
packages/browserslist-config/wrapper.mjs
Normal file
@@ -0,0 +1,2 @@
|
||||
import config from './index.cjs'
|
||||
export default config
|
||||
@@ -2,6 +2,24 @@
|
||||
|
||||
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [0.3.1](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/commitlint-config@0.3.0...@ivuorinen/commitlint-config@0.3.1) (2024-08-28)
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/commitlint-config
|
||||
|
||||
# [0.3.0](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/commitlint-config@0.2.24...@ivuorinen/commitlint-config@0.3.0) (2024-08-21)
|
||||
|
||||
- feat!: module & commonjs in commitlint ([2de156e](https://github.com/ivuorinen/base-configs/commit/2de156e2c0f474fe19d23cc2b4b9b6eaba97e258))
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
- support module, and commonjs types
|
||||
|
||||
## [0.2.24](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/commitlint-config@0.2.23...@ivuorinen/commitlint-config@0.2.24) (2024-08-10)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- **deps:** update @commitlint/cli to 19.4.0 ([#285](https://github.com/ivuorinen/base-configs/issues/285)) ([4080152](https://github.com/ivuorinen/base-configs/commit/4080152296ed9febc2c6dbf4cc41183a9ce319f8))
|
||||
|
||||
## 0.2.23 (2024-07-02)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "@ivuorinen/commitlint-config",
|
||||
"version": "0.2.23",
|
||||
"version": "0.3.1",
|
||||
"type": "module",
|
||||
"description": "ivuorinen's shareable configuration for commitlint.",
|
||||
"author": {
|
||||
"name": "Ismo Vuorinen",
|
||||
@@ -12,8 +13,15 @@
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
},
|
||||
"main": "index.cjs",
|
||||
"module": "wrapper.mjs",
|
||||
"exports": {
|
||||
"import": "./wrapper.mjs",
|
||||
"require": "./index.js"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.cjs",
|
||||
"wrapper.mjs",
|
||||
"scripts/*"
|
||||
],
|
||||
"homepage": "https://github.com/ivuorinen/base-configs/tree/main/packages/commitlint-config#readme",
|
||||
@@ -23,7 +31,6 @@
|
||||
"config"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
@@ -32,14 +39,12 @@
|
||||
"url": "https://github.com/ivuorinen/base-configs.git"
|
||||
},
|
||||
"scripts": {
|
||||
"postinstall": "node scripts/postinstall.js"
|
||||
"postinstall": "node scripts/postinstall.cjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@commitlint/cli": "19.3.0",
|
||||
"@commitlint/config-conventional": "19.2.2",
|
||||
"@ivuorinen/config-checker": "^1.1.4",
|
||||
"@types/node": "*",
|
||||
"typescript": ">=4"
|
||||
"@commitlint/cli": "^19",
|
||||
"@commitlint/config-conventional": "^19",
|
||||
"@ivuorinen/config-checker": "^1"
|
||||
},
|
||||
"gitHead": "23d15f15743fb59c1dbe658615ef2ed51c54d230"
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
// noinspection NpmUsedModulesInstalled
|
||||
const process = require('process')
|
||||
const checkConfig = require('@ivuorinen/config-checker')
|
||||
const foundConfig = checkConfig('commitlint')
|
||||
2
packages/commitlint-config/wrapper.mjs
Normal file
2
packages/commitlint-config/wrapper.mjs
Normal file
@@ -0,0 +1,2 @@
|
||||
import config from './index.cjs'
|
||||
export default config
|
||||
@@ -2,6 +2,10 @@
|
||||
|
||||
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.1.5](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/config-checker@1.1.4...@ivuorinen/config-checker@1.1.5) (2024-08-21)
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/config-checker
|
||||
|
||||
## 1.1.4 (2024-07-02)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
@@ -24,7 +24,7 @@ Configuration packages located in this repository use this tool to check for exi
|
||||
|
||||
### Real world example
|
||||
|
||||
For commitlint-config you can find the usage in the [commitlint-config postinstall.js][commitlint-postinstall-link] file.
|
||||
For commitlint-config you can find the usage in the [commitlint-config postinstall.cjs][commitlint-postinstall-link] file.
|
||||
|
||||
Here's a snippet from the file:
|
||||
|
||||
@@ -44,7 +44,7 @@ if (foundConfig.length > 0) {
|
||||
### Locations scanned
|
||||
|
||||
| Searched configuration files |
|
||||
| ----------------------------------- |
|
||||
|-------------------------------------|
|
||||
| `[module name]` |
|
||||
| `[module name]`rc |
|
||||
| `[module name]`rc.json |
|
||||
@@ -122,13 +122,13 @@ See [CHANGELOG][changelog-link] for a human-readable history of changes.
|
||||
|
||||
## License
|
||||
|
||||
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.
|
||||
This project is licensed under the MIT License - see the [LICENSE.md][license-link] file for details.
|
||||
|
||||
[changelog-link]: ./CHANGELOG.md
|
||||
[contributing-link]: https://github.com/ivuorinen/.github/blob/main/CONTRIBUTING.md
|
||||
[issue-link]: https://github.com/ivuorinen/base-configs/issues
|
||||
[license-badge]: https://img.shields.io/github/license/ivuorinen/base-configs?style=flat-square&labelColor=292a44&color=663399
|
||||
[license-link]: ./LICENSE
|
||||
[license-link]: ./LICENSE.md
|
||||
[npm-badge]: https://img.shields.io/npm/v/@ivuorinen/config-checker?style=flat-square&labelColor=292a44&color=663399
|
||||
[npm-link]: https://www.npmjs.com/package/@ivuorinen/config-checker
|
||||
[pull-request-link]: https://github.com/ivuorinen/base-configs/pulls
|
||||
|
||||
@@ -13,9 +13,7 @@ const configs = configChecker('test', path.join(__dirname, 'fixtures'))
|
||||
* @param {string} file - The file to check for.
|
||||
* @returns {boolean} - True if the array contains the file.
|
||||
*/
|
||||
function arrayContains(configs = [], file = '') {
|
||||
return configs.some(config => config === file)
|
||||
}
|
||||
const arrayContains = (configs = [], file = '') => configs.some(config => config === file)
|
||||
|
||||
assert.ok(arrayContains(configs, '.testrc'))
|
||||
assert.ok(arrayContains(configs, '.config/testrc.ts'))
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
// noinspection NpmUsedModulesInstalled
|
||||
const process = require('process')
|
||||
const configurationPaths = require('./configuration-paths')
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ const path = require('path')
|
||||
* @param {string} moduleName - The name of the module to check for.
|
||||
* @returns {string[]} - The paths to the configuration files.
|
||||
*/
|
||||
function configurationPaths(moduleName) {
|
||||
const configurationPaths = moduleName => {
|
||||
const filesPlain = [
|
||||
moduleName,
|
||||
`${moduleName}rc`,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ivuorinen/config-checker",
|
||||
"version": "1.1.4",
|
||||
"version": "1.1.5",
|
||||
"description": "Checks the commonly used configuration locations for configuration files",
|
||||
"keywords": [
|
||||
"check-config",
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"extends": [
|
||||
"@ivuorinen"
|
||||
]
|
||||
}
|
||||
@@ -2,6 +2,48 @@
|
||||
|
||||
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [0.5.2](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/eslint-config@0.5.1...@ivuorinen/eslint-config@0.5.2) (2024-08-28)
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/eslint-config
|
||||
|
||||
## [0.5.1](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/eslint-config@0.5.0...@ivuorinen/eslint-config@0.5.1) (2024-08-26)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- **deps:** update eslint-plugin-sonarjs to 2.0.0 ([#289](https://github.com/ivuorinen/base-configs/issues/289)) ([987baa6](https://github.com/ivuorinen/base-configs/commit/987baa6272b68aaab4aa34ca86892c1dd06fea77))
|
||||
|
||||
# [0.5.0](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/eslint-config@0.4.48...@ivuorinen/eslint-config@0.5.0) (2024-08-21)
|
||||
|
||||
- feat!: upgrade to eslint 9, update configs ([ad9ed82](https://github.com/ivuorinen/base-configs/commit/ad9ed820d606e7fe484b7b5f553b5dc13277f037))
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
- this changes the configuration format, also adds support for module, and commonjs types
|
||||
|
||||
## [0.4.48](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/eslint-config@0.4.47...@ivuorinen/eslint-config@0.4.48) (2024-08-12)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- **deps:** update eslint to 9.9.0 ([#286](https://github.com/ivuorinen/base-configs/issues/286)) ([ba3b6cc](https://github.com/ivuorinen/base-configs/commit/ba3b6cc2d81e058e863ee3b138f7d77a6be373e4))
|
||||
|
||||
## [0.4.47](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/eslint-config@0.4.46...@ivuorinen/eslint-config@0.4.47) (2024-07-29)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- **deps:** update eslint to 9.8.0 ([#281](https://github.com/ivuorinen/base-configs/issues/281)) ([72b0871](https://github.com/ivuorinen/base-configs/commit/72b0871beb452e408b460e5d2804085affef9dc4))
|
||||
|
||||
## [0.4.46](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/eslint-config@0.4.45...@ivuorinen/eslint-config@0.4.46) (2024-07-27)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- **deps:** update eslint-plugin-promise to 7.0.0 ([#279](https://github.com/ivuorinen/base-configs/issues/279)) ([6f7f3e9](https://github.com/ivuorinen/base-configs/commit/6f7f3e9cfee3428eb723cbad79828741ecb13748))
|
||||
|
||||
## [0.4.45](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/eslint-config@0.4.44...@ivuorinen/eslint-config@0.4.45) (2024-07-16)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- **deps:** update eslint to 9.7.0 ([#276](https://github.com/ivuorinen/base-configs/issues/276)) ([e1c45b8](https://github.com/ivuorinen/base-configs/commit/e1c45b82eb617edb7edd075f9218e07504ba63c2))
|
||||
|
||||
## 0.4.44 (2024-07-02)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
9
packages/eslint-config/LICENSE.md
Normal file
9
packages/eslint-config/LICENSE.md
Normal file
@@ -0,0 +1,9 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2023 Ismo Vuorinen
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
@@ -68,7 +68,7 @@ Distributed under the MIT License. See [LICENSE][license-link] for more informat
|
||||
[contributing-link]: https://github.com/ivuorinen/.github/blob/main/CONTRIBUTING.md
|
||||
[issue-link]: https://github.com/ivuorinen/base-configs/issues
|
||||
[license-badge]: https://img.shields.io/github/license/ivuorinen/base-configs?style=flat-square&labelColor=292a44&color=663399
|
||||
[license-link]: ./LICENSE
|
||||
[license-link]: ./LICENSE.md
|
||||
[npm-badge]: https://img.shields.io/npm/v/@ivuorinen/eslint-config?style=flat-square&labelColor=292a44&color=663399
|
||||
[npm-link]: https://www.npmjs.com/package/@ivuorinen/eslint-config
|
||||
[pull-request-link]: https://github.com/ivuorinen/base-configs/pulls
|
||||
|
||||
2
packages/eslint-config/eslint.config.mjs
Normal file
2
packages/eslint-config/eslint.config.mjs
Normal file
@@ -0,0 +1,2 @@
|
||||
import config from './wrapper.mjs'
|
||||
export default config
|
||||
42
packages/eslint-config/index.cjs
Normal file
42
packages/eslint-config/index.cjs
Normal file
@@ -0,0 +1,42 @@
|
||||
const globals = require('globals')
|
||||
const pluginJs = require('@eslint/js')
|
||||
const standard = require('eslint-config-standard')
|
||||
const pluginN = require('eslint-plugin-n')
|
||||
const pluginPromise = require('eslint-plugin-promise')
|
||||
const pluginImport = require('eslint-plugin-import')
|
||||
const pluginPrettier = require('eslint-plugin-prettier')
|
||||
const pluginSonarJS = require('eslint-plugin-sonarjs')
|
||||
|
||||
/**
|
||||
* @type { import("eslint").Linter.Config[] } config eslint configuration.
|
||||
*/
|
||||
module.exports = [
|
||||
{
|
||||
files: ['**/*.{js,mjs,cjs}'],
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.browser,
|
||||
...globals.commonjs,
|
||||
...globals.es2021,
|
||||
...globals.node
|
||||
},
|
||||
parserOptions: {
|
||||
ecmaVersion: 12
|
||||
}
|
||||
}
|
||||
},
|
||||
pluginJs.configs.recommended,
|
||||
{
|
||||
plugins: {
|
||||
n: pluginN,
|
||||
import: pluginImport,
|
||||
promise: pluginPromise,
|
||||
prettier: pluginPrettier,
|
||||
sonarjs: pluginSonarJS
|
||||
},
|
||||
rules: standard.rules
|
||||
},
|
||||
{
|
||||
ignores: ['coverage/', 'dist/', 'lib/', 'node_modules/']
|
||||
}
|
||||
]
|
||||
@@ -1,14 +0,0 @@
|
||||
'use strict'
|
||||
|
||||
module.exports = {
|
||||
env: {
|
||||
browser: true,
|
||||
commonjs: true,
|
||||
es2021: true,
|
||||
node: true
|
||||
},
|
||||
extends: ['plugin:promise/recommended', 'plugin:sonarjs/recommended', 'standard', 'prettier'],
|
||||
parserOptions: {
|
||||
ecmaVersion: 12
|
||||
}
|
||||
}
|
||||
26
packages/eslint-config/jest.cjs
Normal file
26
packages/eslint-config/jest.cjs
Normal file
@@ -0,0 +1,26 @@
|
||||
const jest = require('eslint-plugin-jest')
|
||||
|
||||
/**
|
||||
* eslint configuration for jest.
|
||||
* @type { import('eslint').Linter.Config[] } config
|
||||
*/
|
||||
module.exports = [
|
||||
{
|
||||
files: ['**/*.{js,mjs,cjs}'],
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...jest.globals
|
||||
}
|
||||
}
|
||||
},
|
||||
jest.configs['flat/recommended'],
|
||||
jest.configs['flat/style'],
|
||||
{
|
||||
rules: {
|
||||
...jest.rules['flat/recommended'].rules
|
||||
},
|
||||
plugins: {
|
||||
jest
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -1,9 +0,0 @@
|
||||
'use strict'
|
||||
|
||||
module.exports = {
|
||||
env: {
|
||||
'jest/globals': true
|
||||
},
|
||||
extends: ['plugin:jest/recommended', 'plugin:jest/style', 'prettier'],
|
||||
plugins: ['jest']
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ivuorinen/eslint-config",
|
||||
"version": "0.4.44",
|
||||
"version": "0.5.2",
|
||||
"description": "ivuorinen's shareable configuration for ESLint.",
|
||||
"author": {
|
||||
"name": "Ismo Vuorinen",
|
||||
@@ -12,8 +12,24 @@
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"type": "module",
|
||||
"main": "index.cjs",
|
||||
"module": "wrapper.mjs",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./wrapper.mjs",
|
||||
"require": "./index.cjs"
|
||||
},
|
||||
"./jest": {
|
||||
"import": "./wrapper-jest.mjs",
|
||||
"require": "./jest.cjs"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.cjs",
|
||||
"jest.cjs",
|
||||
"wrapper.mjs",
|
||||
"wrapper-jest.mjs",
|
||||
"scripts/*"
|
||||
],
|
||||
"homepage": "https://github.com/ivuorinen/base-configs/tree/main/packages/eslint-config#readme",
|
||||
@@ -24,7 +40,6 @@
|
||||
"ivuorinen"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
@@ -33,18 +48,20 @@
|
||||
"url": "https://github.com/ivuorinen/base-configs.git"
|
||||
},
|
||||
"scripts": {
|
||||
"postinstall": "node scripts/postinstall.js"
|
||||
"postinstall": "node scripts/postinstall.cjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ivuorinen/config-checker": "^1.1.4",
|
||||
"eslint": "9.6.0",
|
||||
"@eslint/js": "^9",
|
||||
"@ivuorinen/config-checker": "^1",
|
||||
"eslint": "^9",
|
||||
"eslint-config-prettier": "^9",
|
||||
"eslint-config-standard": "^17",
|
||||
"eslint-plugin-import": "^2",
|
||||
"eslint-plugin-jest": "^28",
|
||||
"eslint-plugin-n": "^17",
|
||||
"eslint-plugin-promise": "^6",
|
||||
"eslint-plugin-sonarjs": "^1"
|
||||
"eslint-plugin-promise": "^7",
|
||||
"eslint-plugin-sonarjs": "^2",
|
||||
"globals": "^15"
|
||||
},
|
||||
"gitHead": "23d15f15743fb59c1dbe658615ef2ed51c54d230"
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
// noinspection NpmUsedModulesInstalled
|
||||
const process = require('process')
|
||||
const checkConfig = require('@ivuorinen/config-checker')
|
||||
const foundConfig = checkConfig('eslint')
|
||||
@@ -13,11 +14,21 @@ if (foundConfig.length > 0) {
|
||||
process.exit(0)
|
||||
}
|
||||
|
||||
const filePath = path.join(process.env.INIT_CWD, '.eslintrc.json')
|
||||
const fileConfigObject = {
|
||||
extends: ['@ivuorinen']
|
||||
}
|
||||
const filePath = path.join(process.env.INIT_CWD, 'eslint.config.mjs')
|
||||
const fileConfig = `import ivuorinenConfig from '@ivuorinen/eslint-config';
|
||||
|
||||
export default [
|
||||
...ivuorinenConfig,
|
||||
|
||||
// your modifications
|
||||
{
|
||||
rules: {
|
||||
// "no-unused-vars": "warn"
|
||||
}
|
||||
}
|
||||
];
|
||||
`
|
||||
|
||||
if (!fs.existsSync(filePath)) {
|
||||
fs.writeFileSync(filePath, JSON.stringify(fileConfigObject, undefined, 2))
|
||||
fs.writeFileSync(filePath, fileConfig)
|
||||
}
|
||||
2
packages/eslint-config/wrapper-jest.mjs
Normal file
2
packages/eslint-config/wrapper-jest.mjs
Normal file
@@ -0,0 +1,2 @@
|
||||
import config from './jest.cjs'
|
||||
export default config
|
||||
2
packages/eslint-config/wrapper.mjs
Normal file
2
packages/eslint-config/wrapper.mjs
Normal file
@@ -0,0 +1,2 @@
|
||||
import config from './index.cjs'
|
||||
export default config
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"extends": "@ivuorinen/markdownlint-config"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,18 @@
|
||||
|
||||
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [0.3.1](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/markdownlint-config@0.3.0...@ivuorinen/markdownlint-config@0.3.1) (2024-08-28)
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/markdownlint-config
|
||||
|
||||
# [0.3.0](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/markdownlint-config@0.2.9...@ivuorinen/markdownlint-config@0.3.0) (2024-08-21)
|
||||
|
||||
- feat!: module & commonjs in markdownlint ([ca479de](https://github.com/ivuorinen/base-configs/commit/ca479deb20f65f048f128b284c2f178ca9e90ea2))
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
- support module, and commonjs types
|
||||
|
||||
## 0.2.9 (2024-07-02)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "@ivuorinen/markdownlint-config",
|
||||
"version": "0.2.9",
|
||||
"version": "0.3.1",
|
||||
"type": "module",
|
||||
"description": "ivuorinen's shareable configuration for markdownlint.",
|
||||
"author": {
|
||||
"name": "Ismo Vuorinen",
|
||||
@@ -33,11 +34,11 @@
|
||||
"url": "https://github.com/ivuorinen/base-configs.git"
|
||||
},
|
||||
"scripts": {
|
||||
"postinstall": "node scripts/postinstall.js"
|
||||
"postinstall": "node scripts/postinstall.cjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ivuorinen/config-checker": "^1.1.4",
|
||||
"markdownlint-cli": "0.41.0"
|
||||
"@ivuorinen/config-checker": "^1",
|
||||
"markdownlint-cli": "^0"
|
||||
},
|
||||
"gitHead": "23d15f15743fb59c1dbe658615ef2ed51c54d230"
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
// noinspection NpmUsedModulesInstalled
|
||||
const process = require('process')
|
||||
const checkConfig = require('@ivuorinen/config-checker')
|
||||
const foundConfig = checkConfig('markdownlint')
|
||||
@@ -1 +1 @@
|
||||
"@ivuorinen/prettier-config"
|
||||
"@ivuorinen/prettier-config"
|
||||
|
||||
@@ -2,6 +2,26 @@
|
||||
|
||||
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [0.3.1](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/prettier-config@0.3.0...@ivuorinen/prettier-config@0.3.1) (2024-08-28)
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/prettier-config
|
||||
|
||||
# [0.3.0](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/prettier-config@0.2.16...@ivuorinen/prettier-config@0.3.0) (2024-08-21)
|
||||
|
||||
- feat!: module & commonjs in prettier ([12ea368](https://github.com/ivuorinen/base-configs/commit/12ea3688ad61ea5b21762225b9b41b30a1995198))
|
||||
- feat!: module & commonjs in prettier ([8d3dbd8](https://github.com/ivuorinen/base-configs/commit/8d3dbd89e8dbaaa2df12eb9900fdf0cfa566a65c))
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
- support module, and commonjs types
|
||||
- support module, and commonjs types
|
||||
|
||||
## [0.2.16](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/prettier-config@0.2.15...@ivuorinen/prettier-config@0.2.16) (2024-07-16)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- **deps:** update prettier to 3.3.3 ([#277](https://github.com/ivuorinen/base-configs/issues/277)) ([03e8a97](https://github.com/ivuorinen/base-configs/commit/03e8a97e2b0d3a35e49969d100df16b7f7aaa89d))
|
||||
|
||||
## 0.2.15 (2024-07-02)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "@ivuorinen/prettier-config",
|
||||
"version": "0.2.15",
|
||||
"version": "0.3.1",
|
||||
"type": "module",
|
||||
"description": "ivuorinen's shareable configuration for Prettier.",
|
||||
"author": {
|
||||
"name": "Ismo Vuorinen",
|
||||
@@ -12,8 +13,14 @@
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
},
|
||||
"main": "index.cjs",
|
||||
"module": "wrapper.mjs",
|
||||
"exports": {
|
||||
"import": "./wrapper.mjs",
|
||||
"require": "./index.cjs"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.cjs",
|
||||
"scripts/*"
|
||||
],
|
||||
"homepage": "https://github.com/ivuorinen/base-configs/tree/main/packages/prettier-config#readme",
|
||||
@@ -24,7 +31,6 @@
|
||||
"prettier"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
@@ -33,11 +39,11 @@
|
||||
"url": "https://github.com/ivuorinen/base-configs.git"
|
||||
},
|
||||
"scripts": {
|
||||
"postinstall": "node scripts/postinstall.js"
|
||||
"postinstall": "node scripts/postinstall.cjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ivuorinen/config-checker": "^1.1.4",
|
||||
"prettier": "3.3.2"
|
||||
"@ivuorinen/config-checker": "^1",
|
||||
"prettier": "^3"
|
||||
},
|
||||
"gitHead": "23d15f15743fb59c1dbe658615ef2ed51c54d230"
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
// noinspection NpmUsedModulesInstalled
|
||||
const process = require('process')
|
||||
const checkConfig = require('@ivuorinen/config-checker')
|
||||
const foundConfig = checkConfig('prettier')
|
||||
2
packages/prettier-config/wrapper.mjs
Normal file
2
packages/prettier-config/wrapper.mjs
Normal file
@@ -0,0 +1,2 @@
|
||||
import config from './index.cjs'
|
||||
export default config
|
||||
@@ -2,6 +2,24 @@
|
||||
|
||||
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [0.3.1](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/semantic-release-config@0.3.0...@ivuorinen/semantic-release-config@0.3.1) (2024-08-28)
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/semantic-release-config
|
||||
|
||||
# [0.3.0](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/semantic-release-config@0.2.24...@ivuorinen/semantic-release-config@0.3.0) (2024-08-21)
|
||||
|
||||
- feat!: module & commonjs in semantic-release ([57fbf1f](https://github.com/ivuorinen/base-configs/commit/57fbf1fd1f280063da2a9c2ac0e1f994836c4582))
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
- support module, and commonjs types
|
||||
|
||||
## [0.2.24](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/semantic-release-config@0.2.23...@ivuorinen/semantic-release-config@0.2.24) (2024-08-21)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- **deps:** update semantic-release to 24.1.0 ([#288](https://github.com/ivuorinen/base-configs/issues/288)) ([2c54329](https://github.com/ivuorinen/base-configs/commit/2c5432954a655a9b4b9075b61b85c6778267842d))
|
||||
|
||||
## 0.2.23 (2024-07-02)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ivuorinen/semantic-release-config",
|
||||
"version": "0.2.23",
|
||||
"version": "0.3.1",
|
||||
"description": "ivuorinen's shareable configuration for semantic-release.",
|
||||
"author": {
|
||||
"name": "Ismo Vuorinen",
|
||||
@@ -13,7 +13,7 @@
|
||||
"node": ">= 18"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.cjs",
|
||||
"scripts/*"
|
||||
],
|
||||
"homepage": "https://github.com/ivuorinen/base-configs/tree/main/packages/semantic-release-config#readme",
|
||||
@@ -24,7 +24,13 @@
|
||||
"ivuorinen"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"type": "module",
|
||||
"main": "index.cjs",
|
||||
"module": "wrapper.mjs",
|
||||
"exports": {
|
||||
"import": "./wrapper.mjs",
|
||||
"require": "./index.cjs"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
@@ -33,13 +39,13 @@
|
||||
"url": "https://github.com/ivuorinen/base-configs.git"
|
||||
},
|
||||
"scripts": {
|
||||
"postinstall": "node scripts/postinstall.js"
|
||||
"postinstall": "node scripts/postinstall.cjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ivuorinen/config-checker": "^1.1.4",
|
||||
"@semantic-release/changelog": "6.0.3",
|
||||
"@semantic-release/git": "10.0.1",
|
||||
"semantic-release": "24.0.0"
|
||||
"@ivuorinen/config-checker": "^1",
|
||||
"@semantic-release/changelog": "^6",
|
||||
"@semantic-release/git": "^10",
|
||||
"semantic-release": "^24"
|
||||
},
|
||||
"gitHead": "23d15f15743fb59c1dbe658615ef2ed51c54d230"
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
// noinspection NpmUsedModulesInstalled
|
||||
const process = require('process')
|
||||
const checkConfig = require('@ivuorinen/config-checker')
|
||||
const foundConfig = checkConfig('release')
|
||||
2
packages/semantic-release-config/wrapper.mjs
Normal file
2
packages/semantic-release-config/wrapper.mjs
Normal file
@@ -0,0 +1,2 @@
|
||||
import config from './index.cjs'
|
||||
export default config
|
||||
@@ -1,5 +1,3 @@
|
||||
{
|
||||
"extends": [
|
||||
"@ivuorinen/stylelint-config/css"
|
||||
]
|
||||
}
|
||||
"extends": ["@ivuorinen/stylelint-config/css"]
|
||||
}
|
||||
|
||||
@@ -2,6 +2,54 @@
|
||||
|
||||
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [0.3.1](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/stylelint-config@0.3.0...@ivuorinen/stylelint-config@0.3.1) (2024-08-28)
|
||||
|
||||
**Note:** Version bump only for package @ivuorinen/stylelint-config
|
||||
|
||||
# [0.3.0](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/stylelint-config@0.2.37...@ivuorinen/stylelint-config@0.3.0) (2024-08-21)
|
||||
|
||||
- feat!: module & commonjs in stylelint ([e4aed31](https://github.com/ivuorinen/base-configs/commit/e4aed31ef984188923eaedf6d8cff8ab36ecf924))
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
- support module, and commonjs types
|
||||
|
||||
## [0.2.37](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/stylelint-config@0.2.36...@ivuorinen/stylelint-config@0.2.37) (2024-08-19)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- **deps:** update stylelint to 16.8.2 ([#287](https://github.com/ivuorinen/base-configs/issues/287)) ([3b552d1](https://github.com/ivuorinen/base-configs/commit/3b552d1ae161039e65c799bae44914792632400c))
|
||||
|
||||
## [0.2.36](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/stylelint-config@0.2.35...@ivuorinen/stylelint-config@0.2.36) (2024-08-07)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- **deps:** update stylelint-scss to 6.5.0 ([#284](https://github.com/ivuorinen/base-configs/issues/284)) ([5d6d89f](https://github.com/ivuorinen/base-configs/commit/5d6d89fdeb7868e0b30e243bb0ffd554b4ea0f7d))
|
||||
|
||||
## [0.2.35](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/stylelint-config@0.2.34...@ivuorinen/stylelint-config@0.2.35) (2024-08-02)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- **deps:** update stylelint to 16.8.1 ([#282](https://github.com/ivuorinen/base-configs/issues/282)) ([338e7e3](https://github.com/ivuorinen/base-configs/commit/338e7e343d5cc025e9c911bf8b57d3b9cdb802b1))
|
||||
|
||||
## [0.2.34](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/stylelint-config@0.2.33...@ivuorinen/stylelint-config@0.2.34) (2024-07-16)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- **deps:** update stylelint to 16.7.0 ([#275](https://github.com/ivuorinen/base-configs/issues/275)) ([b5e55bf](https://github.com/ivuorinen/base-configs/commit/b5e55bf888a926efd9feb3a0a87bf18870457f3b))
|
||||
|
||||
## [0.2.33](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/stylelint-config@0.2.32...@ivuorinen/stylelint-config@0.2.33) (2024-07-13)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- **deps:** update stylelint-scss to 6.4.1 ([#274](https://github.com/ivuorinen/base-configs/issues/274)) ([76d8d81](https://github.com/ivuorinen/base-configs/commit/76d8d81fb82f58626c81335240da73d8e95ecea9))
|
||||
|
||||
## [0.2.32](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/stylelint-config@0.2.31...@ivuorinen/stylelint-config@0.2.32) (2024-07-13)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- **deps:** update stylelint-config-recommended-scss to 14.1.0 ([#272](https://github.com/ivuorinen/base-configs/issues/272)) ([cc414bc](https://github.com/ivuorinen/base-configs/commit/cc414bc57f1b4fa55aac4c8818ca6f32fe3f5896))
|
||||
|
||||
## [0.2.31](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/stylelint-config@0.2.30...@ivuorinen/stylelint-config@0.2.31) (2024-07-13)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable sonarjs/no-duplicate-string */
|
||||
'use strict'
|
||||
|
||||
module.exports = {
|
||||
2
packages/stylelint-config/css/index.mjs
Normal file
2
packages/stylelint-config/css/index.mjs
Normal file
@@ -0,0 +1,2 @@
|
||||
import config from './index.cjs'
|
||||
export default config
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "@ivuorinen/stylelint-config",
|
||||
"version": "0.2.31",
|
||||
"version": "0.3.1",
|
||||
"type": "module",
|
||||
"description": "ivuorinen's shareable configuration for stylelint.",
|
||||
"author": {
|
||||
"name": "Ismo Vuorinen",
|
||||
@@ -12,10 +13,26 @@
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
},
|
||||
"main": "css/index.cjs",
|
||||
"module": "css/index.mjs",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./css/index.mjs",
|
||||
"require": "./css/index.cjs"
|
||||
},
|
||||
"./css": {
|
||||
"import": "./scss/index.mjs",
|
||||
"require": "./scss/index.cjs"
|
||||
},
|
||||
"./scss": {
|
||||
"import": "./scss/index.mjs",
|
||||
"require": "./scss/index.cjs"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"css/index.js",
|
||||
"scripts/*",
|
||||
"scss/index.js"
|
||||
"css/*",
|
||||
"scss/*",
|
||||
"scripts/*"
|
||||
],
|
||||
"homepage": "https://github.com/ivuorinen/base-configs/tree/main/packages/stylelint-config#readme",
|
||||
"keywords": [
|
||||
@@ -25,7 +42,6 @@
|
||||
"ivuorinen"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "css/index.js",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
@@ -34,16 +50,16 @@
|
||||
"url": "https://github.com/ivuorinen/base-configs.git"
|
||||
},
|
||||
"scripts": {
|
||||
"postinstall": "node scripts/postinstall.js"
|
||||
"postinstall": "node scripts/postinstall.cjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ivuorinen/config-checker": "^1.1.4",
|
||||
"postcss": "^8.4.2",
|
||||
"stylelint": "16.6.1",
|
||||
"stylelint-config-recommended-scss": "14.0.0",
|
||||
"stylelint-config-standard": "36.0.1",
|
||||
"stylelint-order": "6.0.4",
|
||||
"stylelint-scss": "6.4.0"
|
||||
"@ivuorinen/config-checker": "^1",
|
||||
"postcss": "^8",
|
||||
"stylelint": "^16",
|
||||
"stylelint-config-recommended-scss": "^14",
|
||||
"stylelint-config-standard": "^36",
|
||||
"stylelint-order": "^6",
|
||||
"stylelint-scss": "^6"
|
||||
},
|
||||
"gitHead": "23d15f15743fb59c1dbe658615ef2ed51c54d230"
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
// noinspection NpmUsedModulesInstalled
|
||||
const process = require('process')
|
||||
const checkConfig = require('@ivuorinen/config-checker')
|
||||
const foundConfig = checkConfig('stylelint')
|
||||
2
packages/stylelint-config/scss/index.mjs
Normal file
2
packages/stylelint-config/scss/index.mjs
Normal file
@@ -0,0 +1,2 @@
|
||||
import config from './index.cjs'
|
||||
export default config
|
||||
Reference in New Issue
Block a user