Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
chore: use alwatr-lint packages
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm committed Dec 21, 2023
1 parent f7d4492 commit 2ec2093
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 89 deletions.
87 changes: 2 additions & 85 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,87 +1,4 @@
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/strict",
"plugin:@typescript-eslint/stylistic",
// "plugin:@typescript-eslint/strict-type-checked",
// "plugin:@typescript-eslint/stylistic-type-checked",
"plugin:import/recommended",
"plugin:import/typescript"
],
"env": {
"shared-node-browser": true,
"es2023": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": true,
"ecmaVersion": 2023,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "import"],
"settings": {
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"ecmaVersion": 2023,
"project": ["**/tsconfig.json"],
"projectFolderIgnoreList": ["**/node_modules/**"]
},
"node": true
}
},
"rules": {
"max-len": ["error", {"code": 120}],
"no-eval": ["error", {"allowIndirect": true}],
"no-floating-decimal": "error",
"space-infix-ops": "error",
"new-cap": ["error", {"capIsNewExceptionPattern": "Mixin$"}],
"brace-style": ["error", "stroustrup", {"allowSingleLine": true}],
"indent": "off",
"@typescript-eslint/indent": [
"error",
2,
{
"SwitchCase": 1,
"VariableDeclarator": 1,
"outerIIFEBody": 1,
"MemberExpression": 1,
"FunctionDeclaration": {"parameters": 1, "body": 1},
"FunctionExpression": {"parameters": 1, "body": 1},
"CallExpression": {"arguments": 1},
"ArrayExpression": 1,
"ObjectExpression": 1,
"ImportDeclaration": 1,
"flatTernaryExpressions": false,
"ignoreComments": false,
"ignoredNodes": [
"TemplateLiteral *",
"TSTypeParameterInstantiation",
"FunctionExpression > .params[decorators.length > 0]",
"FunctionExpression > .params > :matches(Decorator, :not(:first-child))",
"ClassBody.body > PropertyDefinition[decorators.length > 0] > .key"
]
}
],
"operator-linebreak": ["error", "after", {"overrides": {"?": "before", ":": "before"}}],
"import/order": [
"error",
{
"groups": ["builtin", "external", "internal", ["parent", "sibling", "index"], "object", "unknown", "type"],
"newlines-between": "always",
"warnOnUnassignedImports": true,
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"@typescript-eslint/prefer-string-starts-ends-with": "off",
"@typescript-eslint/no-dynamic-delete": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"no-throw-literal": "off",
"require-jsdoc": "off",
"valid-jsdoc": "off"
}
"extends": "@alwatr/eslint-config",
"rules": {}
}
4 changes: 0 additions & 4 deletions .prettierrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"license": "MIT",
"type": "module",
"private": true,
"prettier": "@alwatr/prettier-config",
"engines": {
"node": ">=18.16.0",
"yarn": ">=4.0.0"
Expand Down Expand Up @@ -45,6 +46,8 @@
"publish": "lerna publish from-package"
},
"devDependencies": {
"@alwatr/eslint-config": "^1.0.1",
"@alwatr/prettier-config": "^1.0.1",
"@lerna-lite/changed": "^3.1.0",
"@lerna-lite/cli": "^3.1.0",
"@lerna-lite/diff": "^3.1.0",
Expand Down
24 changes: 24 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,21 @@ __metadata:
languageName: unknown
linkType: soft

"@alwatr/eslint-config@npm:^1.0.1":
version: 1.0.1
resolution: "@alwatr/eslint-config@npm:1.0.1"
dependencies:
esbuild: "npm:^0.19.10"
peerDependencies:
"@typescript-eslint/eslint-plugin": ">6.0.0"
"@typescript-eslint/parser": ">6.0.0"
eslint: ">8.0.0"
eslint-import-resolver-typescript: ">3.0.0"
eslint-plugin-import: ">2.0.0"
checksum: 8e8be335a13ffbf5ffb6535ee1649e424f5b4412434f2a880dda018a8f50bfc4121f7f169944bf8d8b76bb22c2c056ee29a5fb942d2b3ba7b63595060860f7bf
languageName: node
linkType: hard

"@alwatr/fetch@workspace:^, @alwatr/fetch@workspace:packages/fetch":
version: 0.0.0-use.local
resolution: "@alwatr/fetch@workspace:packages/fetch"
Expand Down Expand Up @@ -130,6 +145,13 @@ __metadata:
languageName: unknown
linkType: soft

"@alwatr/prettier-config@npm:^1.0.1":
version: 1.0.1
resolution: "@alwatr/prettier-config@npm:1.0.1"
checksum: 6c0953470862aab28c8438d4cf7aa6831cf470125e91f1aa20401082f839342395de0558a08c8c6fe33dfa09b94ae4720d76f7690b46dda4cbd621118f00b0cc
languageName: node
linkType: hard

"@alwatr/tsconfig-base@npm:^1.0.0":
version: 1.0.0
resolution: "@alwatr/tsconfig-base@npm:1.0.0"
Expand Down Expand Up @@ -1893,6 +1915,8 @@ __metadata:
version: 0.0.0-use.local
resolution: "alwatr-es-sdk@workspace:."
dependencies:
"@alwatr/eslint-config": "npm:^1.0.1"
"@alwatr/prettier-config": "npm:^1.0.1"
"@lerna-lite/changed": "npm:^3.1.0"
"@lerna-lite/cli": "npm:^3.1.0"
"@lerna-lite/diff": "npm:^3.1.0"
Expand Down

0 comments on commit 2ec2093

Please sign in to comment.