Skip to content

Commit

Permalink
chore(NPM): package updates, ESLINT + PRETTIER
Browse files Browse the repository at this point in the history
  • Loading branch information
danielweck committed Jul 12, 2023
1 parent 0375a80 commit 8cf571e
Show file tree
Hide file tree
Showing 4 changed files with 425 additions and 394 deletions.
55 changes: 39 additions & 16 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ module.exports = {
es2020: true,
},
parserOptions: {
project: true,
tsconfigRootDir: __dirname,
ecmaVersion: 2020,
sourceType: "module",
ecmaFeatures: {
Expand All @@ -20,32 +22,41 @@ module.exports = {
},
extends: [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-type-checked",
"prettier",
"plugin:prettier/recommended",
],
plugins: ["unused-imports", "prettier", "eslint-plugin-local-rules"],
plugins: [
// "unused-imports",
"prettier",
"eslint-plugin-local-rules",
],
rules: {
quotes: ["error", "double"],
"comma-dangle": ["error", "always-multiline"],
"eol-last": ["error", "always"],
semi: ["error", "always"],

"@typescript-eslint/no-unsafe-member-access": 0,
"@typescript-eslint/no-unsafe-return": 0,
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-unsafe-call": 0,
"@typescript-eslint/no-unsafe-argument": 0,
"@typescript-eslint/no-unnecessary-type-assertion": 0,
"@typescript-eslint/restrict-template-expressions": 0,
"@typescript-eslint/no-redundant-type-constituents": 0,
"@typescript-eslint/no-base-to-string": 0,
"@typescript-eslint/no-misused-promises": 0,
"@typescript-eslint/require-await": 0,
"@typescript-eslint/no-floating-promises": 0,
"@typescript-eslint/unbound-method": 0,

"@typescript-eslint/no-unsafe-enum-comparison": 0,
"@typescript-eslint/restrict-plus-operands": 0,

"no-unused-vars": 0,
"@typescript-eslint/no-unused-vars": 0,
// "@typescript-eslint/no-unused-vars": [
// "error",
// {
// vars: "all",
// args: "all",
// argsIgnorePattern: "^_",
// varsIgnorePattern: "^_",
// caughtErrorsIgnorePattern: "^_",
// caughtErrors: "all",
// },
// ],
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
// "@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/no-unused-vars": [
"error",
{
vars: "all",
Expand All @@ -56,6 +67,18 @@ module.exports = {
caughtErrors: "all",
},
],
// "unused-imports/no-unused-imports": "error",
// "unused-imports/no-unused-vars": [
// "error",
// {
// vars: "all",
// args: "all",
// argsIgnorePattern: "^_",
// varsIgnorePattern: "^_",
// caughtErrorsIgnorePattern: "^_",
// caughtErrors: "all",
// },
// ],

// react/jsx-uses-react
// react/jsx-uses-vars
Expand Down
Loading

0 comments on commit 8cf571e

Please sign in to comment.