Skip to content

Commit

Permalink
fix: update linter deps
Browse files Browse the repository at this point in the history
ci: commitlint & husky
  • Loading branch information
TobiTenno committed Apr 30, 2024
1 parent 4020d1d commit d59cbe6
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 58 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package-lock.json
node_modules/
.idea/
.eslintcache
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no -- commitlint --edit $1
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
9 changes: 9 additions & 0 deletions .lintstagedrc.yml
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'
13 changes: 13 additions & 0 deletions .releaserc.yml
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
6 changes: 6 additions & 0 deletions commitlint.config.mjs
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],
},
};
100 changes: 42 additions & 58 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <tobiah@pm.me>",
"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 <tobiah@pm.me>",
"exports": {
".": "./configs/.eslintrc.js",
"./esm": "./configs/esm.js",
Expand All @@ -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"
}
}

0 comments on commit d59cbe6

Please sign in to comment.