Skip to content

Commit

Permalink
chore(config): convert some to json, fix broken syntax and run pretti…
Browse files Browse the repository at this point in the history
…er (#405)

* chore: convert some config files to json

* chore(config): fix and reformat json file
  • Loading branch information
100terres authored Aug 22, 2022
1 parent d520b66 commit 25fb114
Show file tree
Hide file tree
Showing 11 changed files with 115 additions and 129 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}
84 changes: 0 additions & 84 deletions .release-it.js

This file was deleted.

82 changes: 82 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"git": {
"commitMessage": "chore: release ${version}",
"tagName": "v${version}"
},
"npm": {
"publish": true
},
"github": {
"release": true
},
"plugins": {
"@release-it/conventional-changelog": {
"infile": "CHANGELOG.md",
"preset": {
"name": "conventionalcommits",
"types": [
{
"type": "chore",
"section": "Others 🔧",
"hidden": false
},
{
"type": "revert",
"section": "Reverts ◀",
"hidden": false
},
{
"type": "feat",
"section": "Features 🔥",
"hidden": false
},
{
"type": "fix",
"section": "Bug Fixes 🛠",
"hidden": false
},
{
"type": "improvement",
"section": "Feature Improvements 🛠",
"hidden": false
},
{
"type": "docs",
"section": "Docs 📃",
"hidden": false
},
{
"type": "style",
"section": "Styling 🎨",
"hidden": false
},
{
"type": "refactor",
"section": "Code Refactoring 🖌",
"hidden": false
},
{
"type": "perf",
"section": "Performance Improvements 🏎",
"hidden": false
},
{
"type": "test",
"section": "Tests 🧪",
"hidden": false
},
{
"type": "build",
"section": "Build System 🏗",
"hidden": false
},
{
"type": "ci",
"section": "CI 🛠",
"hidden": false
}
]
}
}
}
}
21 changes: 0 additions & 21 deletions .stylelintrc.js

This file was deleted.

21 changes: 21 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"processors": [
[
"stylelint-processor-styled-components",
{
"moduleName": "@emotion/styled"
}
]
],
"extends": [
"stylelint-config-standard",
"stylelint-config-styled-components",
"stylelint-config-prettier"
],
"rules": {
"declaration-empty-line-before": null,
"comment-empty-line-before": null,
"block-no-empty": null,
"value-keyword-case": null
}
}
1 change: 0 additions & 1 deletion commitlint.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion cypress/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"extends": "../tsconfig.json",
"include": ["**/*"],
"compilerOptions": {
"types": ["cypress", "node"],
"types": ["cypress", "node"]
}
}
9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"private": false,
"description": "Beautiful and accessible drag and drop for lists with React",
"author": "Alex Reardon <[email protected]>",
"maintainers": [
"Gabriel Santerre <[email protected]>"
],
"maintainers": ["Gabriel Santerre <[email protected]>"],
"keywords": [
"drag and drop",
"dnd",
Expand All @@ -30,10 +28,7 @@
"module": "dist/dnd.esm.js",
"types": "dist/dnd.d.ts",
"sideEffects": false,
"files": [
"/dist",
"/src"
],
"files": ["/dist", "/src"],
"publishConfig": {
"access": "public"
},
Expand Down
2 changes: 1 addition & 1 deletion stories/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"paths": {
"@react-forked/dnd": ["../src/index.ts"]
}
},
}
}
2 changes: 1 addition & 1 deletion test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"include": ["**/*"],

"compilerOptions": {
"types": ["jest", "jsdom", "node"],
"types": ["jest", "jsdom", "node"]
}
}
17 changes: 4 additions & 13 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,9 @@
"strictNullChecks": true,
"strictFunctionTypes": true,
"types": [],
"lib": [
"dom",
"esnext"
]
"lib": ["dom", "esnext"]
},
"exclude": [
"node_modules"
],
"files": [
"src/global.d.ts"
],
"include": [
"src/**/*"
]
"exclude": ["node_modules"],
"files": ["src/global.d.ts"],
"include": ["src/**/*"]
}

0 comments on commit 25fb114

Please sign in to comment.