-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: commitlint & husky
- Loading branch information
Showing
7 changed files
with
73 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
package-lock.json | ||
node_modules/ | ||
.idea/ | ||
.eslintcache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
npx --no -- commitlint --edit $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
'*.{js,ts,mjs,cjs}': | ||
- 'eslint -c ./configs/.eslintrc.js --cache --fix' | ||
- 'prettier --write' | ||
'*,!*.{js,ts,mjs,cjs},!package*.json': | ||
- 'prettier --write' | ||
'package*.json': | ||
- 'prettier --write --parser json' | ||
- 'npx sort-package-json' | ||
- 'npm dedupe' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
plugins: | ||
- "@semantic-release/commit-analyzer" | ||
- "@semantic-release/release-notes-generator" | ||
- "@semantic-release/npm" | ||
- "@semantic-release/github" | ||
- - "@semantic-release/changelog" | ||
- assets: | ||
- CHANGELOG.md | ||
- - "@semantic-release/git" | ||
- assets: | ||
- package.json | ||
- CHANGELOG.md | ||
branches: main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'body-max-line-length': [0], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,27 +2,22 @@ | |
"name": "@wfcd/eslint-config", | ||
"version": "1.6.1", | ||
"description": "Shared eslint configuration for Warframe Community Developers", | ||
"scripts": { | ||
"test": "npm run lint", | ||
"lint": "eslint -c ./configs/.eslintrc.js .", | ||
"lint:fix": "eslint -c ./configs/.eslintrc.js . --fix" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/WFCD/eslint-config.git" | ||
}, | ||
"keywords": [ | ||
"eslint", | ||
"eslintconfig", | ||
"javascript", | ||
"styleguide" | ||
], | ||
"author": "TobiTenno <[email protected]>", | ||
"license": "MIT", | ||
"homepage": "https://github.com/WFCD/eslint-config#readme", | ||
"bugs": { | ||
"url": "https://github.com/WFCD/eslint-config/issues" | ||
}, | ||
"homepage": "https://github.com/WFCD/eslint-config#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/WFCD/eslint-config.git" | ||
}, | ||
"license": "MIT", | ||
"author": "TobiTenno <[email protected]>", | ||
"exports": { | ||
".": "./configs/.eslintrc.js", | ||
"./esm": "./configs/esm.js", | ||
|
@@ -31,62 +26,51 @@ | |
"./strict-jsdoc": "./configs/strict-jsdoc.js", | ||
"./strict-esm-jsdoc": "./configs/strict-esm-jsdoc.js" | ||
}, | ||
"scripts": { | ||
"lint": "eslint .", | ||
"lint:fix": "eslint . --fix", | ||
"prepare": "husky", | ||
"test": "npm run lint" | ||
}, | ||
"babel": { | ||
"plugins": [ | ||
"@babel/plugin-transform-class-properties", | ||
"@babel/plugin-transform-private-methods" | ||
], | ||
"presets": [ | ||
"@babel/preset-env" | ||
] | ||
}, | ||
"prettier": "./configs/prettier.config.js", | ||
"devDependencies": { | ||
"@commitlint/cli": "^19.3.0", | ||
"@commitlint/config-conventional": "^19.2.2", | ||
"husky": "^9.0.11", | ||
"lint-staged": "^15.2.2" | ||
}, | ||
"peerDependencies": { | ||
"@babel/core": "^7.23.9", | ||
"@babel/eslint-parser": "^7.23.10", | ||
"@babel/plugin-transform-class-properties": "^7.23.3", | ||
"@babel/plugin-transform-private-methods": "^7.23.3", | ||
"@babel/plugin-syntax-import-assertions": "^7.23.3", | ||
"@babel/preset-env": "^7.23.9", | ||
"@typescript-eslint/eslint-plugin": "^6.21.0", | ||
"@typescript-eslint/parser": "^6.21.0", | ||
"@babel/core": "^7.24.5", | ||
"@babel/eslint-parser": "^7.24.5", | ||
"@babel/plugin-syntax-import-assertions": "^7.24.1", | ||
"@babel/plugin-transform-class-properties": "^7.24.1", | ||
"@babel/plugin-transform-private-methods": "^7.24.1", | ||
"@babel/preset-env": "^7.24.5", | ||
"@typescript-eslint/eslint-plugin": "^7.8.0", | ||
"@typescript-eslint/parser": "^7.8.0", | ||
"eslint": "^8.56.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-config-airbnb-typescript": "18.0.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-config-airbnb-typescript": "17.1.0", | ||
"eslint-plugin-import": "^2.29.1", | ||
"eslint-plugin-jsdoc": "^48.1.0", | ||
"eslint-plugin-jsdoc": "^48.2.3", | ||
"eslint-plugin-no-null": "^1.0.2", | ||
"eslint-plugin-prettier": "^5.1.3", | ||
"prettier": "^3.2.5" | ||
}, | ||
"engines": { | ||
"npm": ">=7" | ||
}, | ||
"babel": { | ||
"presets": [ | ||
"@babel/preset-env" | ||
], | ||
"plugins": [ | ||
"@babel/plugin-transform-class-properties", | ||
"@babel/plugin-transform-private-methods" | ||
] | ||
}, | ||
"release": { | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/npm", | ||
"@semantic-release/github", | ||
[ | ||
"@semantic-release/changelog", | ||
{ | ||
"assets": [ | ||
"CHANGELOG.md" | ||
] | ||
} | ||
], | ||
[ | ||
"@semantic-release/git", | ||
{ | ||
"assets": [ | ||
"package.json", | ||
"CHANGELOG.md" | ||
] | ||
} | ||
] | ||
], | ||
"branches": "main" | ||
}, | ||
"prettier": "./configs/prettier.config.js" | ||
"eslint": { | ||
"extends": "./configs/.eslintrc.js" | ||
} | ||
} |