Skip to content

Commit

Permalink
final pass
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Jan 22, 2024
1 parent 79d861e commit 8338a03
Showing 1 changed file with 14 additions and 60 deletions.
74 changes: 14 additions & 60 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ module.exports = {
{ enforceForIfStatements: true },
],
"new-cap": ["error", { capIsNew: false }],
"no-alert": "warn",
"no-array-constructor": "error",
"no-alert": "error",
"no-array-constructor": "warn",
"no-await-in-loop": "warn",
"no-console": "warn",
"no-continue": "off",
"no-div-regex": "off",
"no-else-return": ["error", { allowElseIf: false }],
"no-empty": "off",
"no-empty": ["error", { allowEmptyCatch: true }],
"no-empty-function": "off",
"no-eq-null": "off",
"no-extend-native": "error",
Expand All @@ -102,12 +102,12 @@ module.exports = {
"no-negated-condition": "off",
"no-nested-ternary": "off",
"no-new": "off",
"no-new-func": "off",
"no-object-constructor": "error",
"no-new-func": "warn",
"no-object-constructor": "warn",
"no-plusplus": "off",
"no-promise-executor-return": "error",
"no-promise-executor-return": "off",
"no-return-assign": "off",
"no-self-compare": "off",
"no-self-compare": "off", // NaN
"no-template-curly-in-string": "off",
"no-unmodified-loop-condition": "error",
"no-unneeded-ternary": "error",
Expand All @@ -119,10 +119,8 @@ module.exports = {
"no-useless-constructor": "error",
"no-useless-rename": "error",
"no-useless-return": "error",

"object-shorthand": "error",
"operator-assignment": ["error", "always"],

"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-destructuring": ["error", { object: true }],
Expand All @@ -136,17 +134,15 @@ module.exports = {
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",

radix: ["error", "as-needed"],
"require-atomic-updates": ["warn", { allowProperties: true }],
"require-await": "warn",
"require-unicode-regexp": "warn",

"sort-imports": "off",
"sort-keys": "off",
"sort-vars": "off",
strict: "off",
"symbol-description": "off",
"symbol-description": "error",

"grules/no-charAt": "error",
"grules/prefer-arrow-functions": "error",
Expand All @@ -160,50 +156,25 @@ module.exports = {
// Third-Party Rules

"unicorn/better-regex": "error",
"unicorn/catch-error-name": "off",
"unicorn/consistent-destructuring": "warn",
"unicorn/consistent-destructuring": "error",
"unicorn/consistent-function-scoping": "error",
"unicorn/custom-error-definition": "error",
"unicorn/empty-brace-spaces": "off",
"unicorn/error-message": "error",
"unicorn/escape-case": "error",
"unicorn/expiring-todo-comments": "off",
"unicorn/explicit-length-check": "off",
"unicorn/filename-case": "off",
"unicorn/import-style": "off",
"unicorn/new-for-builtins": "error",
"unicorn/no-abusive-eslint-disable": "off",
"unicorn/no-array-callback-reference": "off",
"unicorn/no-array-for-each": "error",
"unicorn/no-array-method-this-argument": "error",
"unicorn/no-array-push-push": "error",
"unicorn/no-array-reduce": "off",
"unicorn/no-await-expression-member": "off",
"unicorn/no-console-spaces": "error",
"unicorn/no-document-cookie": "off",
"unicorn/no-empty-file": "off",
"unicorn/no-for-loop": "off",
"unicorn/no-hex-escape": "off",
"unicorn/no-instanceof-array": "error",
"unicorn/no-invalid-remove-event-listener": "error",
"unicorn/no-keyword-prefix": "error",
"unicorn/no-lonely-if": "error",
"unicorn/no-negated-condition": "off",
"unicorn/no-nested-ternary": "off",
"unicorn/no-new-array": "error",
"unicorn/no-new-buffer": "error",
"unicorn/no-null": "off",
"unicorn/no-object-as-default-parameter": "off",
"unicorn/no-process-exit": "off",
"unicorn/no-static-only-class": "error",
"unicorn/no-thenable": "error",
"unicorn/no-this-assignment": "off",
"unicorn/no-typeof-undefined": "error",
"unicorn/no-unnecessary-await": "error",
"unicorn/no-unnecessary-polyfills": "error",
"unicorn/no-unreadable-array-destructuring": "error",
"unicorn/no-unreadable-iife": "error",
"unicorn/no-unused-properties": "off",
"unicorn/no-useless-fallback-in-spread": "error",
"unicorn/no-useless-length-check": "error",
"unicorn/no-useless-promise-resolve-reject": "error",
Expand All @@ -212,60 +183,43 @@ module.exports = {
"unicorn/no-useless-undefined": "error",
"unicorn/no-zero-fractions": "error",
"unicorn/number-literal-case": "error",
"unicorn/numeric-separators-style": "off",
"unicorn/prefer-add-event-listener": "error",
"unicorn/prefer-array-find": "error",
"unicorn/prefer-array-flat": "error",
"unicorn/prefer-array-flat-map": "error",
"unicorn/prefer-array-index-of": "error",
"unicorn/prefer-array-some": "error",
"unicorn/prefer-at": "off",
"unicorn/prefer-blob-reading-methods": "off",
"unicorn/prefer-code-point": "off",
"unicorn/prefer-date-now": "error",
"unicorn/prefer-default-parameters": "error",
"unicorn/prefer-dom-node-append": "error",
"unicorn/prefer-dom-node-dataset": "error",
"unicorn/prefer-dom-node-remove": "error",
"unicorn/prefer-dom-node-text-content": "off",
"unicorn/prefer-event-target": "off",
"unicorn/prefer-dom-node-text-content": "error",
"unicorn/prefer-export-from": "error",
"unicorn/prefer-includes": "off",
"unicorn/prefer-json-parse-buffer": "off",
"unicorn/prefer-includes": "error",
"unicorn/prefer-keyboard-event-key": "error",
"unicorn/prefer-logical-operator-over-ternary": "error",
"unicorn/prefer-math-trunc": "off",
"unicorn/prefer-modern-dom-apis": "error",
"unicorn/prefer-modern-math-apis": "error",
"unicorn/prefer-module": "off",
"unicorn/prefer-native-coercion-functions": "error",
"unicorn/prefer-negative-index": "error",
"unicorn/prefer-node-protocol": "error",
"unicorn/prefer-number-properties": "error",
"unicorn/prefer-object-from-entries": "error",
"unicorn/prefer-optional-catch-binding": "error",
"unicorn/prefer-prototype-methods": "error",
"unicorn/prefer-query-selector": "off",
"unicorn/prefer-reflect-apply": "off",
"unicorn/prefer-query-selector": "error",
"unicorn/prefer-regexp-test": "error",
"unicorn/prefer-set-has": "error",
"unicorn/prefer-set-size": "error",
"unicorn/prefer-spread": "error",
"unicorn/prefer-string-replace-all": "off",
"unicorn/prefer-string-slice": "off",
"unicorn/prefer-string-slice": "error",
"unicorn/prefer-string-starts-ends-with": "error",
"unicorn/prefer-switch": "error",
"unicorn/prefer-ternary": "error",
"unicorn/prefer-top-level-await": "off",
"unicorn/prefer-type-error": "error",
"unicorn/prevent-abbreviations": "off",
"unicorn/relative-url-style": "off",
"unicorn/require-array-join-separator": "warn",
"unicorn/require-array-join-separator": "error",
"unicorn/require-number-to-fixed-digits-argument": "warn",
"unicorn/require-post-message-target-origin": "warn",
"unicorn/string-content": "off",
"unicorn/switch-case-braces": "off",
"unicorn/template-indent": "off",
"unicorn/text-encoding-identifier-case": "error",
"unicorn/throw-new-error": "error",

Expand Down

0 comments on commit 8338a03

Please sign in to comment.