Skip to content

Commit

Permalink
Update .eslintrc.js based on com.woltlab.wcf.conversation
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWolla committed Sep 13, 2023
1 parent d72e2f2 commit 473f0af
Showing 1 changed file with 32 additions and 35 deletions.
67 changes: 32 additions & 35 deletions snippets/typescript/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,37 +1,34 @@
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
project: ["./tsconfig.json"]
},
plugins: ["@typescript-eslint"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier",
"prettier/@typescript-eslint"
root: true,
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
project: ["./tsconfig.json"]
},
plugins: ["@typescript-eslint"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/strict",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic",
"plugin:@typescript-eslint/stylistic-type-checked",
"prettier"
],
rules: {
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/consistent-type-definitions": 0,
"@typescript-eslint/prefer-nullish-coalescing": 0,
"@typescript-eslint/no-unused-vars": [
"error", {
"argsIgnorePattern": "^_"
}
],
rules: {
"@typescript-eslint/ban-types": [
"error", {
types: {
"object": false
},
extendDefaults: true
}
],
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-unsafe-call": 0,
"@typescript-eslint/no-unsafe-member-access": 0,
"@typescript-eslint/no-unsafe-return": 0,
"@typescript-eslint/no-unused-vars": [
"error", {
"argsIgnorePattern": "^_"
}
]
}
};
"@typescript-eslint/strict-boolean-expressions": [
"error", {
"allowNullableBoolean": true
}
],
}
};

0 comments on commit 473f0af

Please sign in to comment.