Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5cdc98afbc | |||
| 0dbe1f995e | |||
| e74f4d8bba | |||
| 1be7c94d78 | |||
| 50f6c9f24b | |||
| 4e38a6fef6 | |||
| a738e8c415 |
3
.commitlintrc
Normal file
3
.commitlintrc
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": ["@commitlint/config-conventional"]
|
||||
}
|
||||
10
.editorconfig
Normal file
10
.editorconfig
Normal file
@ -0,0 +1,10 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
|
||||
[*.{js,json,yml}]
|
||||
charset = utf-8
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
20
.github/workflows/publishing.yml
vendored
Normal file
20
.github/workflows/publishing.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
name: Publish Package
|
||||
run-name: Publishing Package to npmjs registry
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
jobs:
|
||||
publishing:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
cache: 'yarn'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- run: yarn
|
||||
- run: yarn npm publish
|
||||
1
.husky/commit-msg
Normal file
1
.husky/commit-msg
Normal file
@ -0,0 +1 @@
|
||||
npx --no -- commitlint --edit $1
|
||||
8
.versionrc
Normal file
8
.versionrc
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"header": "# ksv741 Eslint Config",
|
||||
"releaseCommitMessageFormat": "build: v{{currentTag}}",
|
||||
"types": [
|
||||
{"type": "feat", "section": "🚀 New Features"},
|
||||
{"type": "fix", "section": "\uD83D\uDEE0\uFE0F Bug Fixes"}
|
||||
]
|
||||
}
|
||||
BIN
.yarn/install-state.gz
Normal file
BIN
.yarn/install-state.gz
Normal file
Binary file not shown.
893
.yarn/releases/yarn-4.1.1.cjs
vendored
Executable file
893
.yarn/releases/yarn-4.1.1.cjs
vendored
Executable file
File diff suppressed because one or more lines are too long
7
.yarnrc.yml
Normal file
7
.yarnrc.yml
Normal file
@ -0,0 +1,7 @@
|
||||
nodeLinker: node-modules
|
||||
|
||||
npmAuthToken: "${NODE_AUTH_TOKEN-fallback}"
|
||||
|
||||
npmPublishRegistry: "https://registry.npmjs.org"
|
||||
|
||||
yarnPath: .yarn/releases/yarn-4.1.1.cjs
|
||||
26
CHANGELOG.md
Normal file
26
CHANGELOG.md
Normal file
@ -0,0 +1,26 @@
|
||||
# ksv741 Eslint Config
|
||||
### [0.0.4](https://github.com/ksv741/eslint-config-ksv741/compare/v0.0.3...v0.0.4) (2024-07-05)
|
||||
|
||||
|
||||
### 🛠️ Bug Fixes
|
||||
|
||||
* remove ts from dev deps ([0dbe1f9](https://github.com/ksv741/eslint-config-ksv741/commit/0dbe1f995ee0856da7f1589e89dc3b5260954aa2))
|
||||
|
||||
### 0.0.3 (2024-07-05)
|
||||
|
||||
|
||||
### 🚀 New Features
|
||||
|
||||
* add github actions ([4e38a6f](https://github.com/ksv741/eslint-config-ksv741/commit/4e38a6fef61144b8a8afc3d70c66d2ed82edc80b))
|
||||
* add jest ruleset ([139a4a6](https://github.com/ksv741/eslint-config-ksv741/commit/139a4a6766a593d9fbc27a504c24bc9e4b5c6e5a))
|
||||
* update packages ([1be7c94](https://github.com/ksv741/eslint-config-ksv741/commit/1be7c94d783bdcb88bf79bf5b303fdf791d2d4ca))
|
||||
* upgrade yarn, add linting packages ([a738e8c](https://github.com/ksv741/eslint-config-ksv741/commit/a738e8c415c6b91610128e04dd591bf4a1bbd43e))
|
||||
|
||||
### 0.0.2 (2024-04-08)
|
||||
|
||||
|
||||
### 🚀 New Features
|
||||
|
||||
* add github actions ([a50fd66](https://github.com/ksv741/eslint-config-ksv741/commit/a50fd664e17ccfaaa9d853f1c09b63a217570bac))
|
||||
* add jest ruleset ([ca0bbac](https://github.com/ksv741/eslint-config-ksv741/commit/ca0bbac5c0b4a79a1c47411cc986130e9c914566))
|
||||
* upgrade yarn, add linting packages ([a8e08f8](https://github.com/ksv741/eslint-config-ksv741/commit/a8e08f88794c17ec5ab3001538dabf49f9d93863))
|
||||
28
package.json
28
package.json
@ -22,27 +22,31 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/ksv741/eslint-config-ksv741"
|
||||
},
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.4",
|
||||
"devDependencies": {
|
||||
"eslint": "8.56.0"
|
||||
"@commitlint/cli": "19.2.1",
|
||||
"@commitlint/config-conventional": "19.1.0",
|
||||
"eslint": "8.56.0",
|
||||
"husky": "9.0.11",
|
||||
"standard-version": "9.5.0"
|
||||
},
|
||||
"main": "index.js",
|
||||
"engines": {
|
||||
"node": ">=16.13.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@stylistic/eslint-plugin": "1.5.4",
|
||||
"@typescript-eslint/eslint-plugin": "6.20.0",
|
||||
"@typescript-eslint/parser": "6.20.0",
|
||||
"@stylistic/eslint-plugin": "2.3.0",
|
||||
"@typescript-eslint/eslint-plugin": "7.15.0",
|
||||
"@typescript-eslint/parser": "7.15.0",
|
||||
"eslint-import-resolver-typescript": "3.6.1",
|
||||
"eslint-plugin-import": "2.29.1",
|
||||
"eslint-plugin-jest": "27.9.0",
|
||||
"eslint-plugin-jest-dom": "5.2.0",
|
||||
"eslint-plugin-jest": "28.6.0",
|
||||
"eslint-plugin-jest-dom": "5.4.0",
|
||||
"eslint-plugin-jest-formatting": "3.1.0",
|
||||
"eslint-plugin-jsx-a11y": "6.8.0",
|
||||
"eslint-plugin-react": "7.33.2",
|
||||
"eslint-plugin-react-hooks": "4.6.0",
|
||||
"eslint-plugin-testing-library": "6.2.0"
|
||||
"eslint-plugin-jsx-a11y": "6.9.0",
|
||||
"eslint-plugin-react": "7.34.3",
|
||||
"eslint-plugin-react-hooks": "4.6.2",
|
||||
"eslint-plugin-testing-library": "6.2.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": ">=8.56.0",
|
||||
@ -62,6 +66,8 @@
|
||||
"./jest": "./js-ts-jest.js"
|
||||
},
|
||||
"scripts": {
|
||||
"release": "standard-version",
|
||||
"release:rc": "standard-version --prerelease rc",
|
||||
"prepare": "husky"
|
||||
}
|
||||
}
|
||||
|
||||
@ -121,6 +121,9 @@ module.exports = {
|
||||
'require-await': 'off',
|
||||
'@typescript-eslint/require-await': baseRules['require-await'],
|
||||
|
||||
"consistent-return": "off",
|
||||
"@typescript-eslint/consistent-return": baseRules['consistent-return'],
|
||||
|
||||
'@typescript-eslint/return-await': ['error', 'in-try-catch'],
|
||||
|
||||
'import/extensions': [
|
||||
@ -268,5 +271,6 @@ module.exports = {
|
||||
'@typescript-eslint/typedef': 'error',
|
||||
'@typescript-eslint/unbound-method': 'error',
|
||||
'@typescript-eslint/unified-signatures': 'error',
|
||||
"@typescript-eslint/prefer-find": "error"
|
||||
},
|
||||
}
|
||||
|
||||
@ -55,6 +55,10 @@ module.exports = {
|
||||
'submit': true,
|
||||
'reset': false,
|
||||
}],
|
||||
"react/checked-requires-onchange-or-readonly": ['error', {
|
||||
"ignoreMissingProperties": false,
|
||||
"ignoreExclusiveCheckedAttribute": false,
|
||||
}],
|
||||
'react/default-props-match-prop-types': ['error', {
|
||||
'allowRequiredDefaults': false,
|
||||
}],
|
||||
@ -111,7 +115,7 @@ module.exports = {
|
||||
],
|
||||
}],
|
||||
'react/jsx-first-prop-new-line': 'off',
|
||||
'react/jsx-fragments': ['error', 'syntax' ],
|
||||
'react/jsx-fragments': ['error', 'syntax'],
|
||||
'react/jsx-handler-names': ['off', {
|
||||
'eventHandlerPrefix': 'handle',
|
||||
'eventHandlerPropPrefix': 'on',
|
||||
|
||||
@ -56,5 +56,6 @@ module.exports = {
|
||||
'logical': 'parens-new-line',
|
||||
'prop': 'parens-new-line',
|
||||
}],
|
||||
"@stylistic/jsx-function-call-newline": ["error", "multiline"]
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user