Skip to content

Commit

Permalink
Fix lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
Zerthox committed May 4, 2024
1 parent 1eff60c commit 0f5f99c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules/
**/node_modules/
dist/
47 changes: 27 additions & 20 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,10 @@ module.exports = {
version: "17.0.2" // stable Discord
}
},
parserOptions: {
project: ["./tsconfig.json"]
},
extends: [
"eslint:recommended",
"plugin:react/recommended",
"google",
"plugin:@typescript-eslint/recommended"
"google"
],
rules: {
indent: "off",
Expand All @@ -44,19 +40,30 @@ module.exports = {
"require-jsdoc": "off",
"valid-jsdoc": "off",
"react/display-name": "off",
"new-cap": "off",
"@typescript-eslint/indent": ["error", 4],
"@typescript-eslint/semi": "error",
"@typescript-eslint/quotes": ["error", "double"],
"@typescript-eslint/member-delimiter-style": ["error"],
"@typescript-eslint/no-unused-vars": ["error", {
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_"
}],
"@typescript-eslint/prefer-optional-chain": "error",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/no-explicit-any": "off"
}
"new-cap": "off"
},
overrides: [{
files: ["*.ts", "*.tsx"],
extends: [
"plugin:@typescript-eslint/recommended"
],
parserOptions: {
project: ["./tsconfig.json"]
},
rules: {
"@typescript-eslint/indent": ["error", 4],
"@typescript-eslint/semi": "error",
"@typescript-eslint/quotes": ["error", "double"],
"@typescript-eslint/member-delimiter-style": ["error"],
"@typescript-eslint/no-unused-vars": ["error", {
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_"
}],
"@typescript-eslint/prefer-optional-chain": "error",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/no-explicit-any": "off"
}
}]
};

0 comments on commit 0f5f99c

Please sign in to comment.