-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af7d3d9
commit ca412c8
Showing
35 changed files
with
551 additions
and
630 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,31 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", // Specifies the ESLint parser | ||
"parserOptions": { | ||
"ecmaVersion": 2020, // Allows for the parsing of modern ECMAScript features | ||
"sourceType": "module" // Allows for the use of imports | ||
"env": { | ||
"es6": true | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"prettier" | ||
], | ||
"extends": [ | ||
"plugin:@typescript-eslint/recommended", // Uses the recommended rules from the @typescript-eslint/eslint-plugin | ||
"prettier", // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier | ||
"plugin:prettier/recommended" // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array. | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier", | ||
"plugin:prettier/recommended" | ||
], | ||
"rules": { | ||
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs | ||
// e.g. "@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/ban-ts-comment": ["error", { "ts-ignore": "allow-with-description" } ], | ||
"prettier/prettier": ["error", { "endOfLine": "auto" }] | ||
} | ||
} | ||
"no-constant-condition": ["error", { "checkLoops": false }], | ||
"@typescript-eslint/no-explicit-any": ["warn"], | ||
"prettier/prettier": ["error", { | ||
"endOfLine": "auto" | ||
}] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": "**/*.json", | ||
"rules": { | ||
"@typescript-eslint/no-unused-expressions": "off" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.