Compare commits

..

42 Commits

Author SHA1 Message Date
ivuorinen
48856d9c71 chore(release): publish
- @ivuorinen/base-configs@2.0.0
 - @ivuorinen/browserslist-config@0.3.0
 - @ivuorinen/commitlint-config@0.3.0
 - @ivuorinen/config-checker@1.1.5
 - @ivuorinen/eslint-config@0.5.0
 - @ivuorinen/markdownlint-config@0.3.0
 - @ivuorinen/prettier-config@0.3.0
 - @ivuorinen/semantic-release-config@0.3.0
 - @ivuorinen/stylelint-config@0.3.0
2024-08-21 14:51:07 +00:00
Ismo Vuorinen
12ea3688ad feat!: module & commonjs in prettier
BREAKING CHANGE: support module, and commonjs types
2024-08-21 17:50:05 +03:00
Ismo Vuorinen
02e4f4779c feat!: module & commonjs in base-configs
BREAKING CHANGE: support module, and commonjs types
2024-08-21 17:45:12 +03:00
Ismo Vuorinen
ad9ed820d6 feat!: upgrade to eslint 9, update configs
BREAKING CHANGE: this changes the configuration format,
also adds support for module, and commonjs types
2024-08-21 17:44:50 +03:00
Ismo Vuorinen
93ea840406 feat!: module & commonjs in browserslist
BREAKING CHANGE: support module, and commonjs types
2024-08-21 17:38:30 +03:00
Ismo Vuorinen
2de156e2c0 feat!: module & commonjs in commitlint
BREAKING CHANGE: support module, and commonjs types
2024-08-21 17:37:06 +03:00
Ismo Vuorinen
ca479deb20 feat!: module & commonjs in markdownlint
BREAKING CHANGE: support module, and commonjs types
2024-08-21 17:36:22 +03:00
Ismo Vuorinen
8d3dbd89e8 feat!: module & commonjs in prettier
BREAKING CHANGE: support module, and commonjs types
2024-08-21 17:36:04 +03:00
Ismo Vuorinen
57fbf1fd1f feat!: module & commonjs in semantic-release
BREAKING CHANGE: support module, and commonjs types
2024-08-21 17:35:36 +03:00
Ismo Vuorinen
e4aed31ef9 feat!: module & commonjs in stylelint
BREAKING CHANGE: support module, and commonjs types
2024-08-21 17:35:13 +03:00
Ismo Vuorinen
ce9de621f6 chore: tweaks and cleanup 2024-08-21 17:23:59 +03:00
ivuorinen
cc63a2d1d7 chore(release): publish
- @ivuorinen/base-configs@1.1.106
 - @ivuorinen/semantic-release-config@0.2.24
2024-08-21 05:52:14 +00:00
renovate[bot]
2c5432954a fix(deps): update semantic-release to 24.1.0 (#288) 2024-08-21 08:51:37 +03:00
ivuorinen
241244169c chore(release): publish
- @ivuorinen/stylelint-config@0.2.37
2024-08-19 08:01:33 +00:00
renovate[bot]
3b552d1ae1 fix(deps): update stylelint to 16.8.2 (#287) 2024-08-19 08:19:24 +03:00
4da529746e fix(deps): update dependencies 2024-08-16 15:12:12 +03:00
ivuorinen
d515c3e499 chore(release): publish
- @ivuorinen/base-configs@1.1.105
 - @ivuorinen/eslint-config@0.4.48
2024-08-12 23:37:15 +00:00
renovate[bot]
ba3b6cc2d8 fix(deps): update eslint to 9.9.0 (#286)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-13 02:36:39 +03:00
ivuorinen
47088feff6 chore(release): publish
- @ivuorinen/base-configs@1.1.104
 - @ivuorinen/commitlint-config@0.2.24
2024-08-10 18:55:58 +00:00
renovate[bot]
4080152296 fix(deps): update @commitlint/cli to 19.4.0 (#285) 2024-08-10 21:55:21 +03:00
ivuorinen
28430ef6a7 chore(release): publish
- @ivuorinen/stylelint-config@0.2.36
2024-08-07 21:39:10 +00:00
renovate[bot]
5d6d89fdeb fix(deps): update stylelint-scss to 6.5.0 (#284) 2024-08-08 00:38:34 +03:00
ivuorinen
05b25840c1 chore(release): publish
- @ivuorinen/base-configs@1.1.103
 - @ivuorinen/browserslist-config@0.2.10
2024-08-04 14:46:53 +00:00
renovate[bot]
232225b186 fix(deps): update browserslist to 4.23.3 (#283)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-04 17:46:00 +03:00
ivuorinen
cc183f538a chore(release): publish
- @ivuorinen/stylelint-config@0.2.35
2024-08-02 11:23:31 +00:00
renovate[bot]
338e7e343d fix(deps): update stylelint to 16.8.1 (#282) 2024-08-02 14:22:55 +03:00
ivuorinen
d9090c667e chore(release): publish
- @ivuorinen/base-configs@1.1.102
 - @ivuorinen/eslint-config@0.4.47
2024-07-29 23:12:50 +00:00
renovate[bot]
72b0871beb fix(deps): update eslint to 9.8.0 (#281) 2024-07-30 02:12:14 +03:00
renovate[bot]
aa6bcc6cd4 chore(deps): update eslint-plugin-unicorn to 55.0.0 (#280)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-28 02:55:20 +03:00
ivuorinen
2b705cec7b chore(release): publish
- @ivuorinen/base-configs@1.1.101
 - @ivuorinen/eslint-config@0.4.46
2024-07-27 13:18:06 +00:00
renovate[bot]
6f7f3e9cfe fix(deps): update eslint-plugin-promise to 7.0.0 (#279) 2024-07-27 16:17:28 +03:00
Ismo Vuorinen
bc0e9dcdbc chore(meta): update renovate.json 2024-07-23 03:49:22 +03:00
ivuorinen
031f27257a chore(release): publish
- @ivuorinen/base-configs@1.1.100
 - @ivuorinen/prettier-config@0.2.16
2024-07-16 20:05:36 +00:00
renovate[bot]
03e8a97e2b fix(deps): update prettier to 3.3.3 (#277)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-16 23:04:55 +03:00
ivuorinen
951cdb5014 chore(release): publish
- @ivuorinen/stylelint-config@0.2.34
2024-07-16 15:29:27 +00:00
renovate[bot]
b5e55bf888 fix(deps): update stylelint to 16.7.0 (#275)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-16 18:28:52 +03:00
ivuorinen
b3123d3745 chore(release): publish
- @ivuorinen/base-configs@1.1.99
 - @ivuorinen/eslint-config@0.4.45
2024-07-16 07:21:08 +00:00
renovate[bot]
e1c45b82eb fix(deps): update eslint to 9.7.0 (#276)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-16 10:20:22 +03:00
ivuorinen
0b1a5dfea1 chore(release): publish
- @ivuorinen/stylelint-config@0.2.33
2024-07-13 13:43:11 +00:00
renovate[bot]
76d8d81fb8 fix(deps): update stylelint-scss to 6.4.1 (#274)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-13 16:42:37 +03:00
ivuorinen
b8da329ab8 chore(release): publish
- @ivuorinen/stylelint-config@0.2.32
2024-07-13 08:55:12 +00:00
renovate[bot]
cc414bc57f fix(deps): update stylelint-config-recommended-scss to 14.1.0 (#272)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-13 11:54:36 +03:00
63 changed files with 966 additions and 588 deletions

View File

@@ -1 +0,0 @@
node_modules/

View File

@@ -1,3 +0,0 @@
{
"extends": ["./packages/eslint-config"]
}

View File

@@ -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
View File

@@ -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

View File

@@ -1 +1,2 @@
node_modules/
/.nx/workspace-data

View File

@@ -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
View File

@@ -0,0 +1,2 @@
import config from './packages/eslint-config/wrapper.mjs'
export default config

View File

@@ -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-promise": "^7.0.0",
"eslint-plugin-sonarjs": "^1.0.0",
"eslint-plugin-unicorn": "^54.0.0",
"eslint-plugin-unicorn": "^55.0.0",
"lerna": "^8.0.0",
"lerna-update-wizard": "^1.1.2",
"markdownlint-cli": "^0.41.0",

View File

@@ -2,6 +2,46 @@
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [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

View File

@@ -1,6 +1,7 @@
{
"name": "@ivuorinen/base-configs",
"version": "1.1.98",
"version": "2.0.0",
"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.0",
"@ivuorinen/commitlint-config": "^0.3.0",
"@ivuorinen/eslint-config": "^0.5.0",
"@ivuorinen/markdownlint-config": "^0.3.0",
"@ivuorinen/prettier-config": "^0.3.0",
"@ivuorinen/semantic-release-config": "^0.3.0"
}
}

View File

@@ -2,6 +2,20 @@
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [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

View File

@@ -1,7 +1,8 @@
{
"name": "@ivuorinen/browserslist-config",
"version": "0.2.9",
"version": "0.3.0",
"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.1.5",
"browserslist": "4.23.3"
},
"gitHead": "23d15f15743fb59c1dbe658615ef2ed51c54d230"
}

View File

@@ -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')

View File

@@ -0,0 +1,2 @@
import config from './index.cjs'
export default config

View File

@@ -2,6 +2,20 @@
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [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

View File

@@ -1,6 +1,7 @@
{
"name": "@ivuorinen/commitlint-config",
"version": "0.2.23",
"version": "0.3.0",
"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/cli": "19.4.0",
"@commitlint/config-conventional": "19.2.2",
"@ivuorinen/config-checker": "^1.1.4",
"@types/node": "*",
"typescript": ">=4"
"@ivuorinen/config-checker": "^1.1.5"
},
"gitHead": "23d15f15743fb59c1dbe658615ef2ed51c54d230"
}

View File

@@ -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')

View File

@@ -0,0 +1,2 @@
import config from './index.cjs'
export default config

View File

@@ -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

View File

@@ -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

View File

@@ -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'))

View File

@@ -2,6 +2,7 @@
const fs = require('fs')
const path = require('path')
// noinspection NpmUsedModulesInstalled
const process = require('process')
const configurationPaths = require('./configuration-paths')

View File

@@ -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`,

View File

@@ -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",

View File

@@ -1,5 +0,0 @@
{
"extends": [
"@ivuorinen"
]
}

View File

@@ -2,6 +2,38 @@
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [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

View 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.

View File

@@ -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

View File

@@ -0,0 +1,2 @@
import config from './wrapper.mjs'
export default config

View 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/']
}
]

View File

@@ -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
}
}

View 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
}
}
]

View File

@@ -1,9 +0,0 @@
'use strict'
module.exports = {
env: {
'jest/globals': true
},
extends: ['plugin:jest/recommended', 'plugin:jest/style', 'prettier'],
plugins: ['jest']
}

View File

@@ -1,6 +1,6 @@
{
"name": "@ivuorinen/eslint-config",
"version": "0.4.44",
"version": "0.5.0",
"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.9.0",
"@ivuorinen/config-checker": "^1.1.5",
"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": "^1",
"globals": "^15.9.0"
},
"gitHead": "23d15f15743fb59c1dbe658615ef2ed51c54d230"
}

View File

@@ -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)
}

View File

@@ -0,0 +1,2 @@
import config from './jest.cjs'
export default config

View File

@@ -0,0 +1,2 @@
import config from './index.cjs'
export default config

View File

@@ -1,3 +1,3 @@
{
"extends": "@ivuorinen/markdownlint-config"
}
}

View File

@@ -2,6 +2,14 @@
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [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

View File

@@ -1,6 +1,7 @@
{
"name": "@ivuorinen/markdownlint-config",
"version": "0.2.9",
"version": "0.3.0",
"type": "module",
"description": "ivuorinen's shareable configuration for markdownlint.",
"author": {
"name": "Ismo Vuorinen",
@@ -33,10 +34,10 @@
"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",
"@ivuorinen/config-checker": "^1.1.5",
"markdownlint-cli": "0.41.0"
},
"gitHead": "23d15f15743fb59c1dbe658615ef2ed51c54d230"

View File

@@ -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')

View File

@@ -1 +1 @@
"@ivuorinen/prettier-config"
"@ivuorinen/prettier-config"

View File

@@ -2,6 +2,22 @@
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [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

View File

@@ -1,6 +1,7 @@
{
"name": "@ivuorinen/prettier-config",
"version": "0.2.15",
"version": "0.3.0",
"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.1.5",
"prettier": "3.3.3"
},
"gitHead": "23d15f15743fb59c1dbe658615ef2ed51c54d230"
}

View File

@@ -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')

View File

@@ -0,0 +1,2 @@
import config from './index.cjs'
export default config

View File

@@ -2,6 +2,20 @@
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [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

View File

@@ -1,6 +1,6 @@
{
"name": "@ivuorinen/semantic-release-config",
"version": "0.2.23",
"version": "0.3.0",
"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",
"@ivuorinen/config-checker": "^1.1.5",
"@semantic-release/changelog": "6.0.3",
"@semantic-release/git": "10.0.1",
"semantic-release": "24.0.0"
"semantic-release": "24.1.0"
},
"gitHead": "23d15f15743fb59c1dbe658615ef2ed51c54d230"
}

View File

@@ -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')

View File

@@ -0,0 +1,2 @@
import config from './index.cjs'
export default config

View File

@@ -1,5 +1,3 @@
{
"extends": [
"@ivuorinen/stylelint-config/css"
]
}
"extends": ["@ivuorinen/stylelint-config/css"]
}

View File

@@ -2,6 +2,50 @@
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [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

View File

@@ -1,4 +1,3 @@
/* eslint-disable sonarjs/no-duplicate-string */
'use strict'
module.exports = {

View File

@@ -0,0 +1,2 @@
import config from './index.cjs'
export default config

View File

@@ -1,6 +1,7 @@
{
"name": "@ivuorinen/stylelint-config",
"version": "0.2.31",
"version": "0.3.0",
"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",
"@ivuorinen/config-checker": "^1.1.5",
"postcss": "^8.4.2",
"stylelint": "16.6.1",
"stylelint-config-recommended-scss": "14.0.0",
"stylelint": "16.8.2",
"stylelint-config-recommended-scss": "14.1.0",
"stylelint-config-standard": "36.0.1",
"stylelint-order": "6.0.4",
"stylelint-scss": "6.4.0"
"stylelint-scss": "6.5.0"
},
"gitHead": "23d15f15743fb59c1dbe658615ef2ed51c54d230"
}

View File

@@ -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')

View File

@@ -0,0 +1,2 @@
import config from './index.cjs'
export default config

982
yarn.lock

File diff suppressed because it is too large Load Diff