Skip to content

Commit

Permalink
Migrate to eslint-plugin-lvksh (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans authored Jan 6, 2022
1 parent 6a25f8a commit 4fbbf15
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 42 deletions.
43 changes: 3 additions & 40 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,50 +4,13 @@
"ecmaVersion": 2021
},
"extends": [
"plugin:sonarjs/recommended",
"eslint:recommended",
"eslint:recommended",
"plugin:unicorn/recommended"
"plugin:lvksh/recommended"
],
"ignorePatterns": ["!**/*"],
"plugins": ["simple-import-sort", "sonarjs", "unicorn", "jest"],
"plugins": ["lvksh"],
"env": {
"node": true,
"jest/globals": true
},
"rules": {
"quotes": ["error", "single"],
"semi": ["error", "always"],
"linebreak-style": ["error", "unix"],
"indent": ["error", 4],
"unicorn/prefer-spread": "off",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"no-unused-vars": "off",
"sonarjs/cognitive-complexity": "off",
"sonarjs/no-duplicate-string": "off",
"no-var": "error",
"prefer-destructuring": "warn",
"prefer-arrow-callback": "warn",
"prefer-const": "error",
"no-useless-return": "warn",
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "*",
"next": ["return", "if", "switch", "try", "for"]
},
{
"blankLine": "always",
"prev": ["if", "switch", "try", "const", "let"],
"next": "*"
},
{
"blankLine": "any",
"prev": ["const", "let"],
"next": ["const", "let"]
}
]
}
"rules": {}
}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
"chalk": "4.0.0",
"eslint": "^8.4.0",
"eslint-plugin-jest": "^25.2.2",
"eslint-plugin-lvksh": "^1.0.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"eslint-plugin-sonarjs": "^0.11.0",
"eslint-plugin-unicorn": "^40.0.0",
"jest": "^27.4.4",
"ts-jest": "^27.1.1",
"ts-node": "^10.4.0",
Expand Down
17 changes: 17 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1301,6 +1301,23 @@ eslint-plugin-jest@^25.2.2:
dependencies:
"@typescript-eslint/experimental-utils" "^5.0.0"

eslint-plugin-jest@^25.3.4:
version "25.3.4"
resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-25.3.4.tgz#2031dfe495be1463330f8b80096ddc91f8e6387f"
integrity sha512-CCnwG71wvabmwq/qkz0HWIqBHQxw6pXB1uqt24dxqJ9WB34pVg49bL1sjXphlJHgTMWGhBjN1PicdyxDxrfP5A==
dependencies:
"@typescript-eslint/experimental-utils" "^5.0.0"

eslint-plugin-lvksh@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-lvksh/-/eslint-plugin-lvksh-1.0.0.tgz#b7ea0059018c0d57e7ee389133982925ac8097e7"
integrity sha512-x8Aqwp4vyS+98jWJupv1aYSZMnEkzFYMMr/pdQH5CS9s6apK5mwManF1CxGZ98a/32Bsux1hPttPBeWS7c3n3w==
dependencies:
eslint-plugin-jest "^25.3.4"
eslint-plugin-simple-import-sort "^7.0.0"
eslint-plugin-sonarjs "^0.11.0"
eslint-plugin-unicorn "^40.0.0"

eslint-plugin-simple-import-sort@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-simple-import-sort/-/eslint-plugin-simple-import-sort-7.0.0.tgz#a1dad262f46d2184a90095a60c66fef74727f0f8"
Expand Down

0 comments on commit 4fbbf15

Please # to comment.