Skip to content

Commit

Permalink
update code style rules to use @Stylistic plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
iamnapo committed Apr 5, 2024
1 parent 4cdfe9b commit 652739f
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,52 +4,41 @@ module.exports = {
jest: true,
node: true,
},
extends: ["airbnb/base", "plugin:ava/recommended", "plugin:unicorn/recommended"],
extends: ["airbnb/base", "plugin:ava/recommended", "plugin:unicorn/recommended", "plugin:@stylistic/disable-legacy"],
plugins: ["ava", "unicorn", "@stylistic"],
reportUnusedDisableDirectives: true,
rules: {
"array-callback-return": ["error", { allowImplicit: true }],
"class-methods-use-this": "off",
"func-names": ["error", "never"],
"function-paren-newline": "off",
"global-require": "off",
"import/extensions": ["error", "ignorePackages"],
"import/no-anonymous-default-export": "error",
"import/no-duplicates": ["error", { considerQueryString: true, "prefer-inline": true }],
"import/order": ["error", { "newlines-between": "always" }],
"import/prefer-default-export": "off",
indent: "off",
"no-await-in-loop": "off",
"no-console": "off",
"no-implicit-coercion": "error",
"no-mixed-operators": "off",
"no-multiple-empty-lines": "off",
"no-negated-condition": "error",
"no-nested-ternary": "off",
"no-param-reassign": "off",
"no-plusplus": ["error", { allowForLoopAfterthoughts: true }],
"no-restricted-exports": ["error", { restrictedNamedExports: ["then"] }],
"no-restricted-syntax": "off",
"no-return-assign": ["error", "always"],
"no-tabs": "off",
"no-underscore-dangle": "off",
"no-unsafe-optional-chaining": "error",
"no-unused-vars": ["error", { args: "after-used", ignoreRestSiblings: true, vars: "all", varsIgnorePattern: "^_" }],
"no-use-before-define": ["error", { functions: false }],
"object-curly-newline": "off",
"padding-line-between-statements": "off",
"prefer-destructuring": "off",
"prefer-regex-literals": "error",
quotes: "off",
"require-await": "error",
"space-before-function-paren": "off",
"unicorn/consistent-destructuring": "error",
"unicorn/no-array-callback-reference": "off",
"unicorn/no-nested-ternary": "off",
"unicorn/no-null": "off",
"unicorn/prefer-switch": ["error", { emptyDefaultCase: "do-nothing-comment" }],
"unicorn/prevent-abbreviations": "off",
"wrap-iife": "off",
"@stylistic/function-paren-newline": ["error", "consistent"],
"@stylistic/indent": ["error", "tab", { SwitchCase: 1 }],
"@stylistic/max-len": ["error", { code: 130, tabWidth: 2, ignoreUrls: true, ignoreRegExpLiterals: true, ignoreStrings: true, ignoreTemplateLiterals: true }],
Expand Down

0 comments on commit 652739f

Please sign in to comment.