Skip to content

Commit

Permalink
tsconfig, eslintrc and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
SAINIAbhishek committed Nov 29, 2024
1 parent 322cfd8 commit 33e5090
Show file tree
Hide file tree
Showing 7 changed files with 264 additions and 98 deletions.
8 changes: 0 additions & 8 deletions .eslintignore

This file was deleted.

23 changes: 14 additions & 9 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
{
"rules": {
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-function-return-types": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
"env": {
"node": true,
"jest": true
},
"extends": [
"plugin:@typescript-eslint/recommended" // Uses the recommended rules from the @typescript-eslint/eslint-plugin
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:prettier/recommended"
],
"ignorePatterns": [".eslintrc.json", "build", "node_modules"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest", // Allows for the parsing of modern ECMAScript features
"sourceType": "module" // Allows for the use of imports
},
"env": {
"node": true
"rules": {
"no-console": "warn",
"no-undef": "error",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-explicit-any": "warn",
"prefer-const": "error"
}
}
10 changes: 5 additions & 5 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"bracketSameLine": true,
"bracketSameLine": false,
"useTabs": false,
"trailingComma": "all",
"endOfLine": "auto",
"trailingComma": "es5",
"endOfLine": "lf",
"singleQuote": true,
"printWidth": 80,
"printWidth": 100,
"tabWidth": 2,
"arrowParens": "always",
"quoteProps": "as-needed",
"quoteProps": "consistent",
"semi": true
}
Loading

0 comments on commit 33e5090

Please sign in to comment.