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

Commit

Permalink
Add linting tools (eslint / prettier) (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
JForsaken authored Mar 24, 2022
1 parent 9494f01 commit 7a6e4f7
Show file tree
Hide file tree
Showing 7 changed files with 435 additions and 47 deletions.
61 changes: 61 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "import", "unused-imports", "prettier"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"env": {
"es6": true,
"browser": true,
"jest": true,
"node": true
},
"rules": {
"prettier/prettier": "error",
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/indent": 0,
"@typescript-eslint/member-delimiter-style": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-use-before-define": 0,
"unused-imports/no-unused-imports-ts": 2,
"import/order": [
2,
{
"alphabetize": {
"order": "asc",
"caseInsensitive": true
},
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
"pathGroups": [
{
"pattern": "react",
"group": "external",
"position": "before"
},
{
"pattern": "{~*,~*/**}",
"group": "internal"
}
],
"pathGroupsExcludedImportTypes": ["builtin"],
"newlines-between": "always"
}
],
"@typescript-eslint/no-unused-vars": [
2,
{
"argsIgnorePattern": "^_"
}
],
"no-console": [
2,
{
"allow": ["warn", "error"]
}
]
}
}
24 changes: 0 additions & 24 deletions .eslintrc.js

This file was deleted.

13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,17 @@
"@nestjs/cli": "8.2.4",
"@types/express": "^4.17.13",
"@types/node": "^16.0.0",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^8.0.1",
"eslint-config-prettier": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^5.16.0",
"@typescript-eslint/parser": "^5.16.0",
"eslint": "^8.11.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-prettier": "^4.0.0",
"prettier": "^2.3.2",
"eslint-plugin-unused-imports": "^2.0.0",
"prettier": "^2.6.0",
"source-map-support": "^0.5.20",
"ts-loader": "^9.2.3",
"ts-node": "^10.0.0",
"tsconfig-paths": "^3.10.1",
"typescript": "^4.3.5"
"typescript": "^4.6.2"
}
}
Loading

0 comments on commit 7a6e4f7

Please sign in to comment.