@w5s/eslint-config 3.6.0 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["sourceGlob","defaultFiles","defaultFiles","sourceGlob","defaultFiles","defaultFiles","defaultFiles","defaultFiles","defaultFiles","sourceGlob"],"sources":["../src/type/StylisticConfig.ts","../src/rules/esRules/bestPractices.ts","../src/rules/esRules/errors.ts","../src/rules/esRules/es6.ts","../src/rules/esRules/overrides.ts","../src/rules/esRules/strict.ts","../src/rules/esRules/variables.ts","../src/rules/esRules.ts","../src/glob.ts","../src/config/es.ts","../src/config/ignores.ts","../src/config/jsdoc.ts","../src/config/jsonc.ts","../src/config/imports.ts","../src/config/markdown.ts","../src/config/node.ts","../src/config/stylistic.ts","../src/config/test.ts","../src/rules/tsRules.ts","../src/config/ts.ts","../src/config/unicorn.ts","../src/config/yml.ts","../src/defineConfig.ts","../src/meta.ts"],"sourcesContent":["import type { StylisticCustomizeOptions } from '@stylistic/eslint-plugin';\nimport prettierConfig from '@w5s/prettier-config';\n\nexport interface StylisticConfig {\n enabled: boolean;\n indent: NonNullable<StylisticCustomizeOptions['indent']>;\n quotes: NonNullable<StylisticCustomizeOptions['quotes']>;\n jsx: NonNullable<StylisticCustomizeOptions['jsx']>;\n semi: NonNullable<StylisticCustomizeOptions['semi']>;\n}\n\nexport interface StylisticParameters extends Partial<StylisticConfig> {}\n\nconst defaultConfig = {\n enabled: true,\n indent: prettierConfig.tabWidth ?? 2,\n quotes: prettierConfig.singleQuote ? 'single' : 'double',\n jsx: true,\n semi: prettierConfig.semi ?? true,\n} satisfies StylisticConfig;\n\n/**\n * @namespace\n */\nexport const StylisticConfig = {\n /**\n * Default config\n */\n default: defaultConfig,\n\n /**\n * Return a new StylisticConfig from input\n *\n * @param input\n */\n from(input: boolean | StylisticParameters): StylisticConfig {\n return typeof input === 'boolean' ? { ...defaultConfig, enabled: input } : { ...defaultConfig, ...input };\n },\n};\n","import type { Linter } from 'eslint';\n\nexport const bestPractices = () => ({\n // enforces getter/setter pairs in objects\n // https://eslint.org/docs/rules/accessor-pairs\n 'accessor-pairs': 'off',\n\n // enforces return statements in callbacks of array's methods\n // https://eslint.org/docs/rules/array-callback-return\n 'array-callback-return': ['error', { allowImplicit: true }],\n\n // treat var statements as if they were block scoped\n // https://eslint.org/docs/rules/block-scoped-var\n 'block-scoped-var': 'error',\n\n // specify the maximum cyclomatic complexity allowed in a program\n // https://eslint.org/docs/rules/complexity\n 'complexity': ['off', 20],\n\n // enforce that class methods use \"this\"\n // https://eslint.org/docs/rules/class-methods-use-this\n 'class-methods-use-this': ['error', {\n exceptMethods: [],\n }],\n\n // require return statements to either always or never specify values\n // https://eslint.org/docs/rules/consistent-return\n 'consistent-return': 'error',\n\n // specify curly brace conventions for all control statements\n // https://eslint.org/docs/rules/curly\n 'curly': ['error', 'multi-line'], // multiline\n\n // require default case in switch statements\n // https://eslint.org/docs/rules/default-case\n 'default-case': ['error', { commentPattern: '^no default$' }],\n\n // Enforce default clauses in switch statements to be last\n // https://eslint.org/docs/rules/default-case-last\n 'default-case-last': 'error',\n\n // https://eslint.org/docs/rules/default-param-last\n 'default-param-last': 'error',\n\n // encourages use of dot notation whenever possible\n // https://eslint.org/docs/rules/dot-notation\n 'dot-notation': ['error', { allowKeywords: true }],\n\n // enforces consistent newlines before or after dots\n // https://eslint.org/docs/rules/dot-location\n 'dot-location': ['error', 'property'],\n\n // require the use of === and !==\n // https://eslint.org/docs/rules/eqeqeq\n 'eqeqeq': ['error', 'always', { null: 'ignore' }],\n\n // Require grouped accessor pairs in object literals and classes\n // https://eslint.org/docs/rules/grouped-accessor-pairs\n 'grouped-accessor-pairs': 'error',\n\n // make sure for-in loops have an if statement\n // https://eslint.org/docs/rules/guard-for-in\n 'guard-for-in': 'error',\n\n // enforce a maximum number of classes per file\n // https://eslint.org/docs/rules/max-classes-per-file\n 'max-classes-per-file': ['error', 1],\n\n // disallow the use of alert, confirm, and prompt\n // https://eslint.org/docs/rules/no-alert\n // TODO: enable, semver-major\n 'no-alert': 'warn',\n\n // disallow use of arguments.caller or arguments.callee\n // https://eslint.org/docs/rules/no-caller\n 'no-caller': 'error',\n\n // disallow lexical declarations in case/default clauses\n // https://eslint.org/docs/rules/no-case-declarations\n 'no-case-declarations': 'error',\n\n // Disallow returning value in constructor\n // https://eslint.org/docs/rules/no-constructor-return\n 'no-constructor-return': 'error',\n\n // disallow division operators explicitly at beginning of regular expression\n // https://eslint.org/docs/rules/no-div-regex\n 'no-div-regex': 'off',\n\n // disallow else after a return in an if\n // https://eslint.org/docs/rules/no-else-return\n 'no-else-return': ['error', { allowElseIf: false }],\n\n // disallow empty functions, except for standalone funcs/arrows\n // https://eslint.org/docs/rules/no-empty-function\n 'no-empty-function': ['error', {\n allow: [\n 'arrowFunctions',\n 'functions',\n 'methods',\n ],\n }],\n\n // disallow empty destructuring patterns\n // https://eslint.org/docs/rules/no-empty-pattern\n 'no-empty-pattern': 'error',\n\n // Disallow empty static blocks\n // https://eslint.org/docs/latest/rules/no-empty-static-block\n // TODO: semver-major, enable\n 'no-empty-static-block': 'off',\n\n // disallow comparisons to null without a type-checking operator\n // https://eslint.org/docs/rules/no-eq-null\n 'no-eq-null': 'off',\n\n // disallow use of eval()\n // https://eslint.org/docs/rules/no-eval\n 'no-eval': 'error',\n\n // disallow adding to native types\n // https://eslint.org/docs/rules/no-extend-native\n 'no-extend-native': 'error',\n\n // disallow unnecessary function binding\n // https://eslint.org/docs/rules/no-extra-bind\n 'no-extra-bind': 'error',\n\n // disallow Unnecessary Labels\n // https://eslint.org/docs/rules/no-extra-label\n 'no-extra-label': 'error',\n\n // disallow fallthrough of case statements\n // https://eslint.org/docs/rules/no-fallthrough\n 'no-fallthrough': 'error',\n\n // disallow the use of leading or trailing decimal points in numeric literals\n // https://eslint.org/docs/rules/no-floating-decimal\n 'no-floating-decimal': 'error',\n\n // disallow reassignments of native objects or read-only globals\n // https://eslint.org/docs/rules/no-global-assign\n 'no-global-assign': ['error', { exceptions: [] }],\n\n // deprecated in favor of no-global-assign\n // https://eslint.org/docs/rules/no-native-reassign\n 'no-native-reassign': 'off',\n\n // disallow implicit type conversions\n // https://eslint.org/docs/rules/no-implicit-coercion\n 'no-implicit-coercion': ['off', {\n boolean: false,\n number: true,\n string: true,\n allow: [],\n }],\n\n // disallow var and named functions in global scope\n // https://eslint.org/docs/rules/no-implicit-globals\n 'no-implicit-globals': 'off',\n\n // disallow use of eval()-like methods\n // https://eslint.org/docs/rules/no-implied-eval\n 'no-implied-eval': 'error',\n\n // disallow this keywords outside of classes or class-like objects\n // https://eslint.org/docs/rules/no-invalid-this\n 'no-invalid-this': 'off',\n\n // disallow usage of __iterator__ property\n // https://eslint.org/docs/rules/no-iterator\n 'no-iterator': 'error',\n\n // disallow use of labels for anything other than loops and switches\n // https://eslint.org/docs/rules/no-labels\n 'no-labels': ['error', { allowLoop: false, allowSwitch: false }],\n\n // disallow unnecessary nested blocks\n // https://eslint.org/docs/rules/no-lone-blocks\n 'no-lone-blocks': 'error',\n\n // disallow creation of functions within loops\n // https://eslint.org/docs/rules/no-loop-func\n 'no-loop-func': 'error',\n\n // disallow magic numbers\n // https://eslint.org/docs/rules/no-magic-numbers\n 'no-magic-numbers': ['off', {\n ignore: [],\n ignoreArrayIndexes: true,\n enforceConst: true,\n detectObjects: false,\n }],\n\n // disallow use of multiple spaces\n // https://eslint.org/docs/rules/no-multi-spaces\n 'no-multi-spaces': ['error', {\n ignoreEOLComments: false,\n }],\n\n // disallow use of multiline strings\n // https://eslint.org/docs/rules/no-multi-str\n 'no-multi-str': 'error',\n\n // disallow use of new operator when not part of the assignment or comparison\n // https://eslint.org/docs/rules/no-new\n 'no-new': 'error',\n\n // disallow use of new operator for Function object\n // https://eslint.org/docs/rules/no-new-func\n 'no-new-func': 'error',\n\n // disallows creating new instances of String, Number, and Boolean\n // https://eslint.org/docs/rules/no-new-wrappers\n 'no-new-wrappers': 'error',\n\n // Disallow \\8 and \\9 escape sequences in string literals\n // https://eslint.org/docs/rules/no-nonoctal-decimal-escape\n 'no-nonoctal-decimal-escape': 'error',\n\n // Disallow calls to the Object constructor without an argument\n // https://eslint.org/docs/latest/rules/no-object-constructor\n // TODO: enable, semver-major\n 'no-object-constructor': 'off',\n\n // disallow use of (old style) octal literals\n // https://eslint.org/docs/rules/no-octal\n 'no-octal': 'error',\n\n // disallow use of octal escape sequences in string literals, such as\n // var foo = 'Copyright \\251';\n // https://eslint.org/docs/rules/no-octal-escape\n 'no-octal-escape': 'error',\n\n // disallow reassignment of function parameters\n // disallow parameter object manipulation except for specific exclusions\n // rule: https://eslint.org/docs/rules/no-param-reassign.html\n 'no-param-reassign': ['error', {\n props: true,\n ignorePropertyModificationsFor: [\n 'acc', // for reduce accumulators\n 'accumulator', // for reduce accumulators\n 'e', // for e.returnvalue\n 'ctx', // for Koa routing\n 'context', // for Koa routing\n 'req', // for Express requests\n 'request', // for Express requests\n 'res', // for Express responses\n 'response', // for Express responses\n '$scope', // for Angular 1 scopes\n 'staticContext', // for ReactRouter context\n ],\n }],\n\n // disallow usage of __proto__ property\n // https://eslint.org/docs/rules/no-proto\n 'no-proto': 'error',\n\n // disallow declaring the same variable more than once\n // https://eslint.org/docs/rules/no-redeclare\n 'no-redeclare': 'error',\n\n // disallow certain object properties\n // https://eslint.org/docs/rules/no-restricted-properties\n 'no-restricted-properties': ['error', {\n object: 'arguments',\n property: 'callee',\n message: 'arguments.callee is deprecated',\n }, {\n object: 'global',\n property: 'isFinite',\n message: 'Please use Number.isFinite instead',\n }, {\n object: 'self',\n property: 'isFinite',\n message: 'Please use Number.isFinite instead',\n }, {\n object: 'window',\n property: 'isFinite',\n message: 'Please use Number.isFinite instead',\n }, {\n object: 'global',\n property: 'isNaN',\n message: 'Please use Number.isNaN instead',\n }, {\n object: 'self',\n property: 'isNaN',\n message: 'Please use Number.isNaN instead',\n }, {\n object: 'window',\n property: 'isNaN',\n message: 'Please use Number.isNaN instead',\n }, {\n property: '__defineGetter__',\n message: 'Please use Object.defineProperty instead.',\n }, {\n property: '__defineSetter__',\n message: 'Please use Object.defineProperty instead.',\n }, {\n object: 'Math',\n property: 'pow',\n message: 'Use the exponentiation operator (**) instead.',\n }],\n\n // disallow use of assignment in return statement\n // https://eslint.org/docs/rules/no-return-assign\n 'no-return-assign': ['error', 'always'],\n\n // disallow redundant `return await`\n // https://eslint.org/docs/rules/no-return-await\n 'no-return-await': 'error',\n\n // disallow use of `javascript:` urls.\n // https://eslint.org/docs/rules/no-script-url\n 'no-script-url': 'error',\n\n // disallow self assignment\n // https://eslint.org/docs/rules/no-self-assign\n 'no-self-assign': ['error', {\n props: true,\n }],\n\n // disallow comparisons where both sides are exactly the same\n // https://eslint.org/docs/rules/no-self-compare\n 'no-self-compare': 'error',\n\n // disallow use of comma operator\n // https://eslint.org/docs/rules/no-sequences\n 'no-sequences': 'error',\n\n // restrict what can be thrown as an exception\n // https://eslint.org/docs/rules/no-throw-literal\n 'no-throw-literal': 'error',\n\n // disallow unmodified conditions of loops\n // https://eslint.org/docs/rules/no-unmodified-loop-condition\n 'no-unmodified-loop-condition': 'off',\n\n // disallow usage of expressions in statement position\n // https://eslint.org/docs/rules/no-unused-expressions\n 'no-unused-expressions': ['error', {\n allowShortCircuit: false,\n allowTernary: false,\n allowTaggedTemplates: false,\n }],\n\n // disallow unused labels\n // https://eslint.org/docs/rules/no-unused-labels\n 'no-unused-labels': 'error',\n\n // disallow unnecessary .call() and .apply()\n // https://eslint.org/docs/rules/no-useless-call\n 'no-useless-call': 'off',\n\n // Disallow unnecessary catch clauses\n // https://eslint.org/docs/rules/no-useless-catch\n 'no-useless-catch': 'error',\n\n // disallow useless string concatenation\n // https://eslint.org/docs/rules/no-useless-concat\n 'no-useless-concat': 'error',\n\n // disallow unnecessary string escaping\n // https://eslint.org/docs/rules/no-useless-escape\n 'no-useless-escape': 'error',\n\n // disallow redundant return; keywords\n // https://eslint.org/docs/rules/no-useless-return\n 'no-useless-return': 'error',\n\n // disallow use of void operator\n // https://eslint.org/docs/rules/no-void\n 'no-void': 'error',\n\n // disallow usage of configurable warning terms in comments: e.g. todo\n // https://eslint.org/docs/rules/no-warning-comments\n 'no-warning-comments': ['off', { terms: ['todo', 'fixme', 'xxx'], location: 'start' }],\n\n // disallow use of the with statement\n // https://eslint.org/docs/rules/no-with\n 'no-with': 'error',\n\n // require using Error objects as Promise rejection reasons\n // https://eslint.org/docs/rules/prefer-promise-reject-errors\n 'prefer-promise-reject-errors': ['error', { allowEmptyReject: true }],\n\n // Suggest using named capture group in regular expression\n // https://eslint.org/docs/rules/prefer-named-capture-group\n 'prefer-named-capture-group': 'off',\n\n // Prefer Object.hasOwn() over Object.prototype.hasOwnProperty.call()\n // https://eslint.org/docs/rules/prefer-object-has-own\n // TODO: semver-major: enable thus rule, once eslint v8.5.0 is required\n 'prefer-object-has-own': 'off',\n\n // https://eslint.org/docs/rules/prefer-regex-literals\n 'prefer-regex-literals': ['error', {\n disallowRedundantWrapping: true,\n }],\n\n // require use of the second argument for parseInt()\n // https://eslint.org/docs/rules/radix\n 'radix': 'error',\n\n // require `await` in `async function` (note: this is a horrible rule that should never be used)\n // https://eslint.org/docs/rules/require-await\n 'require-await': 'off',\n\n // Enforce the use of u flag on RegExp\n // https://eslint.org/docs/rules/require-unicode-regexp\n 'require-unicode-regexp': 'off',\n\n // requires to declare all vars on top of their containing scope\n // https://eslint.org/docs/rules/vars-on-top\n 'vars-on-top': 'error',\n\n // require immediate function invocation to be wrapped in parentheses\n // https://eslint.org/docs/rules/wrap-iife.html\n 'wrap-iife': ['error', 'outside', { functionPrototypeMethods: false }],\n\n // require or disallow Yoda conditions\n // https://eslint.org/docs/rules/yoda\n 'yoda': 'error',\n} satisfies Linter.RulesRecord);\n","import type { Linter } from 'eslint';\n\nexport const errors = () => ({\n // Enforce “for” loop update clause moving the counter in the right direction\n // https://eslint.org/docs/rules/for-direction\n 'for-direction': 'error',\n\n // Enforces that a return statement is present in property getters\n // https://eslint.org/docs/rules/getter-return\n 'getter-return': ['error', { allowImplicit: true }],\n\n // disallow using an async function as a Promise executor\n // https://eslint.org/docs/rules/no-async-promise-executor\n 'no-async-promise-executor': 'error',\n\n // Disallow await inside of loops\n // https://eslint.org/docs/rules/no-await-in-loop\n 'no-await-in-loop': 'error',\n\n // Disallow comparisons to negative zero\n // https://eslint.org/docs/rules/no-compare-neg-zero\n 'no-compare-neg-zero': 'error',\n\n // disallow assignment in conditional expressions\n 'no-cond-assign': ['error', 'always'],\n\n // disallow use of console\n 'no-console': 'warn',\n\n // Disallows expressions where the operation doesn't affect the value\n // https://eslint.org/docs/rules/no-constant-binary-expression\n // TODO: semver-major, enable\n 'no-constant-binary-expression': 'off',\n\n // disallow use of constant expressions in conditions\n 'no-constant-condition': 'warn',\n\n // disallow control characters in regular expressions\n 'no-control-regex': 'error',\n\n // disallow use of debugger\n 'no-debugger': 'error',\n\n // disallow duplicate arguments in functions\n 'no-dupe-args': 'error',\n\n // Disallow duplicate conditions in if-else-if chains\n // https://eslint.org/docs/rules/no-dupe-else-if\n 'no-dupe-else-if': 'error',\n\n // disallow duplicate keys when creating object literals\n 'no-dupe-keys': 'error',\n\n // disallow a duplicate case label.\n 'no-duplicate-case': 'error',\n\n // disallow empty statements\n 'no-empty': 'error',\n\n // disallow the use of empty character classes in regular expressions\n 'no-empty-character-class': 'error',\n\n // disallow assigning to the exception in a catch block\n 'no-ex-assign': 'error',\n\n // disallow double-negation boolean casts in a boolean context\n // https://eslint.org/docs/rules/no-extra-boolean-cast\n 'no-extra-boolean-cast': 'error',\n\n // disallow unnecessary parentheses\n // https://eslint.org/docs/rules/no-extra-parens\n 'no-extra-parens': ['off', 'all', {\n conditionalAssign: true,\n nestedBinaryExpressions: false,\n returnAssign: false,\n ignoreJSX: 'all', // delegate to eslint-plugin-react\n enforceForArrowConditionals: false,\n }],\n\n // disallow unnecessary semicolons\n 'no-extra-semi': 'error',\n\n // disallow overwriting functions written as function declarations\n 'no-func-assign': 'error',\n\n // https://eslint.org/docs/rules/no-import-assign\n 'no-import-assign': 'error',\n\n // disallow function or variable declarations in nested blocks\n 'no-inner-declarations': 'error',\n\n // disallow invalid regular expression strings in the RegExp constructor\n 'no-invalid-regexp': 'error',\n\n // disallow irregular whitespace outside of strings and comments\n 'no-irregular-whitespace': 'error',\n\n // Disallow Number Literals That Lose Precision\n // https://eslint.org/docs/rules/no-loss-of-precision\n 'no-loss-of-precision': 'error',\n\n // Disallow characters which are made with multiple code points in character class syntax\n // https://eslint.org/docs/rules/no-misleading-character-class\n 'no-misleading-character-class': 'error',\n\n // disallow the use of object properties of the global object (Math and JSON) as functions\n 'no-obj-calls': 'error',\n\n // Disallow new operators with global non-constructor functions\n // https://eslint.org/docs/latest/rules/no-new-native-nonconstructor\n // TODO: semver-major, enable\n 'no-new-native-nonconstructor': 'off',\n\n // Disallow returning values from Promise executor functions\n // https://eslint.org/docs/rules/no-promise-executor-return\n 'no-promise-executor-return': 'error',\n\n // disallow use of Object.prototypes builtins directly\n // https://eslint.org/docs/rules/no-prototype-builtins\n 'no-prototype-builtins': 'error',\n\n // disallow multiple spaces in a regular expression literal\n 'no-regex-spaces': 'error',\n\n // Disallow returning values from setters\n // https://eslint.org/docs/rules/no-setter-return\n 'no-setter-return': 'error',\n\n // disallow sparse arrays\n 'no-sparse-arrays': 'error',\n\n // Disallow template literal placeholder syntax in regular strings\n // https://eslint.org/docs/rules/no-template-curly-in-string\n 'no-template-curly-in-string': 'error',\n\n // Avoid code that looks like two expressions but is actually one\n // https://eslint.org/docs/rules/no-unexpected-multiline\n 'no-unexpected-multiline': 'error',\n\n // disallow unreachable statements after a return, throw, continue, or break statement\n 'no-unreachable': 'error',\n\n // Disallow loops with a body that allows only one iteration\n // https://eslint.org/docs/rules/no-unreachable-loop\n 'no-unreachable-loop': ['error', {\n ignore: [], // WhileStatement, DoWhileStatement, ForStatement, ForInStatement, ForOfStatement\n }],\n\n // disallow return/throw/break/continue inside finally blocks\n // https://eslint.org/docs/rules/no-unsafe-finally\n 'no-unsafe-finally': 'error',\n\n // disallow negating the left operand of relational operators\n // https://eslint.org/docs/rules/no-unsafe-negation\n 'no-unsafe-negation': 'error',\n\n // disallow use of optional chaining in contexts where the undefined value is not allowed\n // https://eslint.org/docs/rules/no-unsafe-optional-chaining\n 'no-unsafe-optional-chaining': ['error', { disallowArithmeticOperators: true }],\n\n // Disallow Unused Private Class Members\n // https://eslint.org/docs/rules/no-unused-private-class-members\n // TODO: enable once eslint 7 is dropped (which is semver-major)\n 'no-unused-private-class-members': 'off',\n\n // Disallow useless backreferences in regular expressions\n // https://eslint.org/docs/rules/no-useless-backreference\n 'no-useless-backreference': 'error',\n\n // disallow negation of the left operand of an in expression\n // deprecated in favor of no-unsafe-negation\n 'no-negated-in-lhs': 'off',\n\n // Disallow assignments that can lead to race conditions due to usage of await or yield\n // https://eslint.org/docs/rules/require-atomic-updates\n // note: not enabled because it is very buggy\n 'require-atomic-updates': 'off',\n\n // disallow comparisons with the value NaN\n 'use-isnan': 'error',\n\n // ensure JSDoc comments are valid\n // https://eslint.org/docs/rules/valid-jsdoc\n 'valid-jsdoc': 'off',\n\n // ensure that the results of typeof are compared against a valid string\n // https://eslint.org/docs/rules/valid-typeof\n 'valid-typeof': ['error', { requireStringLiterals: true }],\n} satisfies Linter.RulesRecord);\n","import type { Linter } from 'eslint';\n\nexport const es6 = () => ({\n// enforces no braces where they can be omitted\n // https://eslint.org/docs/rules/arrow-body-style\n // TODO: enable requireReturnForObjectLiteral?\n 'arrow-body-style': ['error', 'as-needed', {\n requireReturnForObjectLiteral: false,\n }],\n\n // require parens in arrow function arguments\n // https://eslint.org/docs/rules/arrow-parens\n 'arrow-parens': ['error', 'always'],\n\n // require space before/after arrow function's arrow\n // https://eslint.org/docs/rules/arrow-spacing\n 'arrow-spacing': ['error', { before: true, after: true }],\n\n // verify super() callings in constructors\n 'constructor-super': 'error',\n\n // enforce the spacing around the * in generator functions\n // https://eslint.org/docs/rules/generator-star-spacing\n 'generator-star-spacing': ['error', { before: false, after: true }],\n\n // disallow modifying variables of class declarations\n // https://eslint.org/docs/rules/no-class-assign\n 'no-class-assign': 'error',\n\n // disallow arrow functions where they could be confused with comparisons\n // https://eslint.org/docs/rules/no-confusing-arrow\n 'no-confusing-arrow': ['error', {\n allowParens: true,\n }],\n\n // disallow modifying variables that are declared using const\n 'no-const-assign': 'error',\n\n // disallow duplicate class members\n // https://eslint.org/docs/rules/no-dupe-class-members\n 'no-dupe-class-members': 'error',\n\n // disallow importing from the same path more than once\n // https://eslint.org/docs/rules/no-duplicate-imports\n // replaced by https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md\n 'no-duplicate-imports': 'off',\n\n // disallow symbol constructor\n // https://eslint.org/docs/rules/no-new-symbol\n 'no-new-symbol': 'error',\n\n // Disallow specified names in exports\n // https://eslint.org/docs/rules/no-restricted-exports\n 'no-restricted-exports': ['error', {\n restrictedNamedExports: [\n 'default', // use `export default` to provide a default export\n 'then', // this will cause tons of confusion when your module is dynamically `import()`ed, and will break in most node ESM versions\n ],\n }],\n\n // disallow specific imports\n // https://eslint.org/docs/rules/no-restricted-imports\n 'no-restricted-imports': ['off', {\n paths: [],\n patterns: [],\n }],\n\n // disallow to use this/super before super() calling in constructors.\n // https://eslint.org/docs/rules/no-this-before-super\n 'no-this-before-super': 'error',\n\n // disallow useless computed property keys\n // https://eslint.org/docs/rules/no-useless-computed-key\n 'no-useless-computed-key': 'error',\n\n // disallow unnecessary constructor\n // https://eslint.org/docs/rules/no-useless-constructor\n 'no-useless-constructor': 'error',\n\n // disallow renaming import, export, and destructured assignments to the same name\n // https://eslint.org/docs/rules/no-useless-rename\n 'no-useless-rename': ['error', {\n ignoreDestructuring: false,\n ignoreImport: false,\n ignoreExport: false,\n }],\n\n // require let or const instead of var\n 'no-var': 'error',\n\n // require method and property shorthand syntax for object literals\n // https://eslint.org/docs/rules/object-shorthand\n 'object-shorthand': ['error', 'always', {\n ignoreConstructors: false,\n avoidQuotes: true,\n }],\n\n // suggest using arrow functions as callbacks\n 'prefer-arrow-callback': ['error', {\n allowNamedFunctions: false,\n allowUnboundThis: true,\n }],\n\n // suggest using of const declaration for variables that are never modified after declared\n 'prefer-const': ['error', {\n destructuring: 'any',\n ignoreReadBeforeAssign: true,\n }],\n\n // Prefer destructuring from arrays and objects\n // https://eslint.org/docs/rules/prefer-destructuring\n 'prefer-destructuring': ['error', {\n VariableDeclarator: {\n array: false,\n object: true,\n },\n AssignmentExpression: {\n array: true,\n object: false,\n },\n }, {\n enforceForRenamedProperties: false,\n }],\n\n // disallow parseInt() in favor of binary, octal, and hexadecimal literals\n // https://eslint.org/docs/rules/prefer-numeric-literals\n 'prefer-numeric-literals': 'error',\n\n // suggest using Reflect methods where applicable\n // https://eslint.org/docs/rules/prefer-reflect\n 'prefer-reflect': 'off',\n\n // use rest parameters instead of arguments\n // https://eslint.org/docs/rules/prefer-rest-params\n 'prefer-rest-params': 'error',\n\n // suggest using the spread syntax instead of .apply()\n // https://eslint.org/docs/rules/prefer-spread\n 'prefer-spread': 'error',\n\n // suggest using template literals instead of string concatenation\n // https://eslint.org/docs/rules/prefer-template\n 'prefer-template': 'error',\n\n // disallow generator functions that do not have yield\n // https://eslint.org/docs/rules/require-yield\n 'require-yield': 'error',\n\n // enforce spacing between object rest-spread\n // https://eslint.org/docs/rules/rest-spread-spacing\n 'rest-spread-spacing': ['error', 'never'],\n\n // import sorting\n // https://eslint.org/docs/rules/sort-imports\n 'sort-imports': ['off', {\n ignoreCase: false,\n ignoreDeclarationSort: false,\n ignoreMemberSort: false,\n memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],\n }],\n\n // require a Symbol description\n // https://eslint.org/docs/rules/symbol-description\n 'symbol-description': 'error',\n\n // enforce usage of spacing in template strings\n // https://eslint.org/docs/rules/template-curly-spacing\n 'template-curly-spacing': 'error',\n\n // enforce spacing around the * in yield* expressions\n // https://eslint.org/docs/rules/yield-star-spacing\n 'yield-star-spacing': ['error', 'after'],\n} satisfies Linter.RulesRecord);\n","import type { Linter } from 'eslint';\n\nexport const overrides = () => ({\n // Too many errors in components\n 'class-methods-use-this': 'off',\n // Annoying because it is not always wanted\n 'default-case': 'off',\n // We do not want console.* in production. Disable this rule on a per line basis if needed\n 'no-console': 'error',\n // Often useful in jsx\n 'no-nested-ternary': 'off',\n // Too strict, for pure code prefer the functional plugin\n 'no-param-reassign': ['error', { props: false }],\n // Allow for-of syntax\n // 'no-restricted-syntax': baseConfig.rules['no-restricted-syntax'].filter(\n // // @ts-ignore No typing available\n // ({ selector }) => selector !== 'ForOfStatement',\n // ),\n // underscore is often used (mongodb, etc)\n 'no-underscore-dangle': 'off',\n // Ignore underscore case arguments\n 'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],\n // Allow in some cases https://github.com/airbnb/javascript/issues/1089#issuecomment-1024351821\n 'no-use-before-define': ['error', 'nofunc'],\n // Allow statements, to be compatible with '@typescript-eslint/no-floating-promises' fix\n 'no-void': ['error', { allowAsStatement: true }],\n 'unicode-bom': ['error', 'never'],\n} satisfies Linter.RulesRecord);\n","import type { Linter } from 'eslint';\n\nexport const strict = () => ({\n // babel inserts `'use strict';` for us\n strict: ['error', 'never'],\n} satisfies Linter.RulesRecord);\n","import type { Linter } from 'eslint';\n\nexport const variables = () => ({\n// enforce or disallow variable initializations at definition\n 'init-declarations': 'off',\n\n // disallow the catch clause parameter name being the same as a variable in the outer scope\n 'no-catch-shadow': 'off',\n\n // disallow deletion of variables\n 'no-delete-var': 'error',\n\n // disallow labels that share a name with a variable\n // https://eslint.org/docs/rules/no-label-var\n 'no-label-var': 'error',\n\n // disallow specific globals\n 'no-restricted-globals': [\n 'error',\n {\n name: 'isFinite',\n message:\n 'Use Number.isFinite instead https://github.com/airbnb/javascript#standard-library--isfinite',\n },\n {\n name: 'isNaN',\n message:\n 'Use Number.isNaN instead https://github.com/airbnb/javascript#standard-library--isnan',\n },\n // ...confusingBrowserGlobals.map((g) => ({\n // name: g,\n // message: `Use window.${g} instead. https://github.com/facebook/create-react-app/blob/HEAD/packages/confusing-browser-globals/README.md`,\n // })),\n ],\n\n // disallow declaration of variables already declared in the outer scope\n 'no-shadow': 'error',\n\n // disallow shadowing of names such as arguments\n 'no-shadow-restricted-names': 'error',\n\n // disallow use of undeclared variables unless mentioned in a /*global */ block\n 'no-undef': 'error',\n\n // disallow use of undefined when initializing variables\n 'no-undef-init': 'error',\n\n // disallow use of undefined variable\n // https://eslint.org/docs/rules/no-undefined\n // TODO: enable?\n 'no-undefined': 'off',\n\n // disallow declaration of variables that are not used in the code\n 'no-unused-vars': ['error', { vars: 'all', args: 'after-used', ignoreRestSiblings: true }],\n\n // disallow use of variables before they are defined\n 'no-use-before-define': ['error', { functions: true, classes: true, variables: true }],\n} satisfies Linter.RulesRecord);\n","import { bestPractices } from './esRules/bestPractices.js';\nimport { errors } from './esRules/errors.js';\nimport { es6 } from './esRules/es6.js';\nimport { overrides } from './esRules/overrides.js';\nimport { strict } from './esRules/strict.js';\nimport { variables } from './esRules/variables.js';\n\nexport const esRules = () => ({\n ...bestPractices(),\n ...errors(),\n ...es6(),\n ...strict(),\n ...variables(),\n\n // Must be last\n ...overrides(),\n});\n","import { Project } from '@w5s/dev';\n\nexport const sourceGlob = `**/${Project.extensionsToGlob(Project.sourceExtensions())}`;\n\nexport const esSourceGlob = `**/${Project.extensionsToGlob(Project.queryExtensions(['javascript', 'javascriptreact']))}`;\n\nexport const jsonSourceGlob = `**/${Project.extensionsToGlob(['.json', '.json5', '.jsonc'])}`;\n\nexport const tsSourceGlob = `**/${Project.extensionsToGlob(Project.queryExtensions(['typescript', 'typescriptreact']))}`;\n\nexport const ymlSourceGlob = `**/${Project.extensionsToGlob(Project.queryExtensions(['yaml']))}`;\n","import globals from 'globals';\nimport eslintConfig from '@eslint/js';\nimport { Project } from '@w5s/dev';\nimport { type PluginOptionsBase, type Config } from '../type.js';\nimport type { RuleOptions } from '../typegen/jsonc.js';\nimport { esRules } from '../rules/esRules.js';\nimport { esSourceGlob } from '../glob.js';\n\nconst defaultFiles = [esSourceGlob];\n\nexport async function es(options: es.Options) {\n const { rules = {} } = options;\n\n return [\n {\n name: 'w5s/es/setup',\n languageOptions: {\n ecmaVersion: Project.ecmaVersion(),\n globals: {\n ...globals.browser,\n ...globals[`es${Project.ecmaVersion()}`],\n ...globals.node,\n __DEV__: 'readonly',\n __PROD__: 'readonly',\n __TEST__: 'readonly',\n document: 'readonly',\n navigator: 'readonly',\n window: 'readonly',\n },\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n ecmaVersion: Project.ecmaVersion(),\n sourceType: 'module',\n },\n sourceType: 'module',\n },\n linterOptions: {\n reportUnusedDisableDirectives: true,\n },\n },\n {\n name: 'w5s/es/rules',\n files: defaultFiles,\n rules: {\n ...eslintConfig.configs.recommended.rules,\n ...esRules(),\n ...rules,\n },\n },\n ] as [Config, Config] satisfies Array<Config>;\n}\n\nexport namespace es {\n export type Rules = RuleOptions;\n\n export interface Options extends PluginOptionsBase<Rules> {}\n}\n","import { eslintIgnores, type ESLintIgnoreOptions } from '@w5s/eslint-config-ignore';\n\nexport async function ignores(options: ignores.Options = {}) {\n const config = await eslintIgnores(options);\n return [config];\n}\n\nexport namespace ignores {\n export type Options = ESLintIgnoreOptions;\n}\n","import { interopDefault } from '@w5s/dev';\nimport { StylisticConfig, type PluginOptionsBase, type Config } from '../type.js';\nimport type { RuleOptions } from '../typegen/jsdoc.js';\nimport { sourceGlob } from '../glob.js';\n\nconst defaultFiles = [sourceGlob];\n\nexport async function jsdoc(options: jsdoc.Options = {}): Promise<readonly Config[]> {\n const [jsdocPlugin] = await Promise.all([interopDefault(import('eslint-plugin-jsdoc'))] as const);\n const { files = defaultFiles, rules = {}, stylistic = true } = options;\n const { enabled: stylisticEnabled } = StylisticConfig.from(stylistic);\n\n return [\n {\n name: 'w5s/jsdoc/setup',\n plugins: {\n jsdoc: jsdocPlugin,\n },\n },\n {\n name: 'w5s/jsdoc/rules',\n files,\n rules: {\n ...jsdocPlugin.configs['flat/recommended-typescript-flavor'].rules,\n 'jsdoc/no-undefined-types': 'off', // https://github.com/gajus/eslint-plugin-jsdoc/issues/839\n 'jsdoc/require-hyphen-before-param-description': ['warn', 'always'],\n 'jsdoc/require-jsdoc': 'off',\n 'jsdoc/require-param-description': 'off',\n 'jsdoc/require-param-type': 'off',\n 'jsdoc/require-returns': 'off',\n 'jsdoc/valid-types': 'off', // FIXME: reports lots of false positive\n // 'strict': ['error', 'safe'],\n ...(stylisticEnabled\n ? {\n ...jsdocPlugin.configs['flat/stylistic-typescript'].rules,\n 'jsdoc/check-alignment': 'warn',\n 'jsdoc/multiline-blocks': 'warn',\n 'jsdoc/tag-lines': ['warn', 'any', { startLines: 1 }],\n }\n : {}),\n ...rules,\n },\n settings: {\n jsdoc: {\n mode: 'typescript',\n },\n },\n },\n ] as [Config, Config] satisfies Array<Config>;\n}\n\nexport namespace jsdoc {\n export type Rules = RuleOptions;\n\n export interface Options extends PluginOptionsBase<Rules> {}\n}\n","/* cSpell:disable */\nimport { interopDefault } from '@w5s/dev';\nimport { StylisticConfig, type PluginOptionsBase, type Config } from '../type.js';\nimport type { RuleOptions } from '../typegen/jsonc.js';\nimport { jsonSourceGlob } from '../glob.js';\n\nconst defaultFiles = [jsonSourceGlob];\n\nexport async function jsonc(options: jsonc.Options = {}): Promise<readonly Config[]> {\n const [jsoncPlugin, jsoncParser] = await Promise.all([\n interopDefault(import('eslint-plugin-jsonc')),\n interopDefault(import('jsonc-eslint-parser')),\n ] as const);\n const { files = defaultFiles, rules = {}, stylistic = true } = options;\n const { enabled: stylisticEnabled, indent } = StylisticConfig.from(stylistic);\n\n return [\n {\n name: 'w5s/jsonc/setup',\n plugins: {\n jsonc: jsoncPlugin,\n },\n },\n {\n files,\n languageOptions: {\n parser: jsoncParser,\n },\n name: 'w5s/jsonc/rules',\n rules: {\n ...jsoncPlugin.configs['flat/recommended-with-json'][0]?.rules,\n ...(stylisticEnabled\n ? {\n 'jsonc/array-bracket-spacing': ['error', 'never'],\n 'jsonc/comma-dangle': ['error', 'never'],\n 'jsonc/comma-style': ['error', 'last'],\n 'jsonc/indent': ['error', indent],\n 'jsonc/key-spacing': ['error', { afterColon: true, beforeColon: false }],\n 'jsonc/object-curly-newline': ['error', { consistent: true, multiline: true }],\n 'jsonc/object-curly-spacing': ['error', 'always'],\n 'jsonc/object-property-newline': ['error', { allowMultiplePropertiesPerLine: true }],\n 'jsonc/quote-props': 'error',\n 'jsonc/quotes': 'error',\n }\n : {}),\n ...rules,\n },\n },\n stylisticEnabled ? sortPackageJson() : {},\n stylisticEnabled ? sortTsconfigJson() : {},\n ] as [Config, Config, Config, Config] satisfies Array<Config>;\n}\n\nfunction sortTsconfigJson() {\n return {\n files: ['tsconfig*.json'],\n rules: {\n 'jsonc/sort-keys': [\n 'error',\n {\n order: ['$schema', 'display', 'extends', 'compilerOptions', 'include', 'exclude', 'files', 'references'],\n pathPattern: '^$',\n },\n {\n order: { type: 'asc' },\n pathPattern: '.*',\n },\n ],\n },\n };\n}\n\nfunction sortPackageJson() {\n return {\n files: ['package.json'],\n rules: {\n 'jsonc/sort-keys': [\n 'error',\n {\n order: [\n '$schema',\n 'name',\n 'displayName',\n 'version',\n 'private',\n 'description',\n 'categories',\n 'keywords',\n 'homepage',\n 'bugs',\n 'repository',\n 'funding',\n 'license',\n 'qna',\n 'author',\n 'maintainers', // Key order (per item): name, email, url\n 'contributors', // Key order (per item): name, email, url\n 'publisher',\n 'sideEffects',\n 'type',\n 'imports',\n 'exports',\n 'main',\n 'svelte',\n 'umd:main',\n 'jsdelivr',\n 'unpkg',\n 'module',\n 'source',\n 'jsnext:main',\n 'browser',\n 'react-native',\n 'types',\n 'typesVersions',\n 'typings',\n 'style',\n 'example',\n 'examplestyle',\n 'assets',\n 'bin',\n 'man',\n 'directories', // Key order: lib, bin, man, doc, example, test\n 'files', // Unique items\n 'workspaces',\n 'binary', // Key order: module_name, module_path, remote_path, package_name, host\n 'scripts', // Script sort\n 'betterScripts', // Script sort\n 'contributes',\n 'activationEvents', // Unique items\n 'husky', // Sorts the hooks field using git hook sort\n 'simple-git-hooks', // Key sort using git hook sort\n 'pre-commit',\n 'commitlint',\n 'lint-staged',\n 'config',\n 'nodemonConfig',\n 'browserify',\n 'babel',\n 'browserslist',\n 'xo',\n 'prettier', // Prettier sort\n 'eslintConfig', // ESLint sort\n 'eslintIgnore',\n 'npmpackagejsonlint', // Key sort (also recognizes: npmPackageJsonLintConfig, npmpkgjsonlint)\n 'release',\n 'remarkConfig',\n 'stylelint',\n 'ava',\n 'jest',\n 'mocha',\n 'nyc',\n 'tap',\n 'resolutions',\n 'dependencies',\n 'devDependencies',\n 'dependenciesMeta', // Key sort (deep)\n 'peerDependencies',\n 'peerDependenciesMeta', // Key sort (deep)\n 'optionalDependencies',\n 'bundledDependencies',\n 'bundleDependencies',\n 'extensionPack',\n 'extensionDependencies',\n 'flat',\n 'packageManager',\n 'engines',\n 'engineStrict',\n 'volta', // Key order: node, npm, yarn\n 'languageName',\n 'os',\n 'cpu',\n 'preferGlobal',\n 'publishConfig',\n 'icon',\n 'badges', // Key order (per item): description, url, href\n 'galleryBanner',\n 'preview',\n 'markdown',\n ],\n pathPattern: '^$',\n },\n {\n order: ['url', 'email'],\n pathPattern: `^bugs$`,\n },\n ...['repository', 'funding', 'license', 'author'].map((key) => ({\n order: ['type', 'name', 'email', 'url'],\n pathPattern: `^${key}$`,\n })),\n ...['scripts', 'betterScripts'].map((key) => ({\n order: { type: 'asc' },\n pathPattern: `^${key}$`,\n })),\n ...[\n 'bin',\n 'contributes',\n 'commitlint',\n 'config',\n 'nodemonConfig',\n 'browserify',\n 'babel',\n 'xo',\n 'release',\n 'remarkConfig',\n 'ava',\n 'jest',\n 'mocha',\n 'nyc',\n 'tap',\n 'resolutions',\n 'engines',\n 'engineStrict',\n 'preferGlobal',\n 'publishConfig',\n 'galleryBanner',\n ].map((key) => ({\n order: { type: 'asc' },\n pathPattern: `^${key}$`,\n })),\n {\n order: { type: 'asc' },\n pathPattern: '^(?:dev|peer|optional|bundled|extension)?[Dd]ependencies$',\n },\n {\n order: ['types', 'require', 'import'],\n pathPattern: '^exports.*$',\n },\n ],\n },\n };\n}\n\nexport namespace jsonc {\n export type Rules = RuleOptions;\n\n export interface Options extends PluginOptionsBase<Rules> {}\n}\n","import { interopDefault } from '@w5s/dev';\nimport { type PluginOptionsBase, StylisticConfig, type Config } from '../type.js';\nimport type { RuleOptions } from '../typegen/import.js';\n\nexport async function imports(options: imports.Options = {}) {\n const { rules = {}, stylistic = true } = options;\n const { enabled: stylisticEnabled } = StylisticConfig.from(stylistic);\n const [importPlugin] = await Promise.all([interopDefault(import('eslint-plugin-import'))] as const);\n return [\n {\n name: 'w5s/import/rules',\n plugins: {\n import: importPlugin,\n },\n rules: {\n // 'import/consistent-type-specifier-style': ['error', 'prefer-inline'],\n 'import/first': 'error',\n 'import/no-duplicates': 'error',\n 'import/no-mutable-exports': 'error',\n 'import/no-named-default': 'error',\n\n ...(stylisticEnabled\n ? {\n // Stylistic rules\n 'import/newline-after-import': ['error', { count: 1 }],\n }\n : {}),\n ...rules,\n },\n },\n ] as [Config] satisfies Array<Config>;\n}\n\nexport namespace imports {\n export type Rules = RuleOptions;\n\n export interface Options extends PluginOptionsBase<Rules> {}\n}\n","import { interopDefault, Project } from '@w5s/dev';\nimport { mergeProcessors, processorPassThrough } from 'eslint-merge-processors';\nimport { StylisticConfig, type Config, type PluginOptionsBase } from '../type.js';\nimport type { RuleOptions } from '../typegen/markdown.js';\n\nconst defaultFiles = [`**/${Project.extensionsToGlob(Project.queryExtensions(['markdown']))}`];\n\nexport async function markdown(options: markdown.Options = {}) {\n const [markdownPlugin] = await Promise.all([interopDefault(import('@eslint/markdown'))] as const);\n const { language = 'markdown/gfm', files = defaultFiles, rules = {}, stylistic = true } = options;\n const { enabled: stylisticEnabled } = StylisticConfig.from(stylistic);\n\n return [\n {\n name: 'w5s/markdown/setup',\n plugins: {\n markdown: markdownPlugin,\n },\n },\n {\n files,\n language: language,\n name: 'w5s/markdown/rules',\n // eslint-disable-next-line ts/no-non-null-assertion\n processor: mergeProcessors([markdownPlugin.processors!.markdown, processorPassThrough]),\n rules: {\n ...markdownPlugin.configs.recommended.at(0)?.rules,\n ...(stylisticEnabled ? {} : {}),\n ...rules,\n },\n },\n ] as [Config, Config] satisfies Array<Config>;\n}\n\nexport namespace markdown {\n export type Rules = RuleOptions;\n\n export interface Options extends PluginOptionsBase<Rules> {\n /**\n * Default to 'markdown/gfm' (Github Flavored Markdown)\n */\n language?: 'markdown/gfm' | 'markdown/commonmark';\n }\n}\n","import { interopDefault } from '@w5s/dev';\nimport { type Config, type PluginOptionsBase } from '../type.js';\nimport type { RuleOptions } from '../typegen/node.js';\n\nexport async function node(options: node.Options = {}) {\n const [nodePlugin] = await Promise.all([\n interopDefault(import('eslint-plugin-n')),\n ] as const);\n const { rules = {} } = options;\n return [\n {\n name: 'w5s/node/setup',\n plugins: {\n node: nodePlugin,\n },\n },\n {\n name: 'w5s/node/rules',\n rules: {\n // 'node/handle-callback-err': ['error', '^(err|error|_error)$'],\n 'node/no-deprecated-api': 'error',\n 'node/no-exports-assign': 'error',\n 'node/no-new-require': 'error',\n 'node/no-path-concat': 'error',\n // 'node/no-sync': 'error', FIXME: this rule uses typing without a way to disable it, so it causes errors in JS files\n 'node/prefer-global/buffer': ['error', 'never'],\n 'node/prefer-global/console': ['error', 'always'],\n // 'node/prefer-global/process': ['error', 'never'],\n 'node/prefer-global/url': ['error', 'always'],\n 'node/prefer-global/url-search-params': ['error', 'always'],\n 'node/process-exit-as-throw': 'error',\n ...rules,\n },\n },\n ] as [Config, Config] satisfies Array<Config>;\n}\n\nexport namespace node {\n export type Rules = RuleOptions;\n\n export interface Options extends Omit<PluginOptionsBase<Rules>, 'files' | 'stylistic'> {}\n}\n","import { interopDefault } from '@w5s/dev';\nimport { StylisticConfig, type PluginOptionsBase, type Config, type StylisticParameters } from '../type.js';\nimport type { RuleOptions } from '../typegen/style.js';\n\nexport async function stylistic(options: stylistic.Options = {}) {\n const [stylisticPlugin] = await Promise.all([\n interopDefault(import('@stylistic/eslint-plugin')),\n ] as const);\n const { rules = {} } = options;\n const { enabled: stylisticEnabled, indent, jsx, quotes, semi } = StylisticConfig.from(options);\n const config = stylisticEnabled\n ? stylisticPlugin.configs.customize({\n indent,\n jsx,\n pluginName: 'style',\n quotes,\n semi,\n })\n : { rules: {} };\n\n return [\n {\n name: 'w5s/style/setup',\n plugins: {\n style: stylisticPlugin,\n },\n },\n {\n name: 'w5s/style/rules',\n rules: {\n ...(stylisticEnabled\n ? {\n ...config.rules,\n 'style/arrow-parens': ['error', 'always'],\n 'style/brace-style': ['error', '1tbs'],\n 'style/operator-linebreak': ['error', 'after', { overrides: { ':': 'before', '?': 'before', '|>': 'before', '|': 'before' } }],\n 'style/quotes': ['error', quotes ?? StylisticConfig.default.quotes, { avoidEscape: true, allowTemplateLiterals: 'always' }],\n }\n : {}),\n ...rules,\n },\n },\n ] as [Config, Config] satisfies Array<Config>;\n}\n\nexport namespace stylistic {\n export type Rules = RuleOptions;\n\n export interface Options extends Pick<PluginOptionsBase<Rules>, 'rules'>, StylisticParameters {}\n}\n","import { interopDefault, Project } from '@w5s/dev';\nimport { StylisticConfig, type PluginOptionsBase, type Config } from '../type.js';\nimport type { RuleOptions } from '../typegen/test.js';\n\nconst sourceGlob = Project.extensionsToGlob(Project.sourceExtensions());\nconst defaultFiles = [\n `**/__mocks__/**/${sourceGlob}`,\n `**/__tests__/**/${sourceGlob}`,\n `**/?(*.)+(spec|test)${sourceGlob.slice(1)}`,\n];\n\nexport async function test(options: test.Options = {}) {\n const [vitestPlugin] = await Promise.all([\n interopDefault(import('@vitest/eslint-plugin')),\n ] as const);\n const { files = defaultFiles, rules = {}, stylistic = true } = options;\n const { enabled: stylisticEnabled } = StylisticConfig.from(stylistic);\n\n return [\n {\n name: 'w5s/test/setup',\n plugins: {\n test: vitestPlugin,\n },\n },\n {\n files,\n name: 'w5s/test/rules',\n rules: {\n ...vitestPlugin.configs.recommended.rules,\n ...(stylisticEnabled\n ? {}\n : {}),\n ...rules,\n },\n },\n ] as [Config, Config] satisfies Array<Config>;\n}\n\nexport namespace test {\n export type Rules = RuleOptions;\n\n export interface Options extends PluginOptionsBase<Rules> {}\n}\n","import { ESLintConfig } from '@w5s/dev';\nimport { esRules } from './esRules.js';\n\nexport const tsRules = () => {\n const baseRules = esRules();\n\n return ESLintConfig.renameRules(\n {\n // '@typescript-eslint/comma-dangle': [\n // baseRules['comma-dangle'][0],\n // {\n // ...baseRules['comma-dangle'][1],\n // enums: baseRules['comma-dangle'][1].arrays,\n // generics: baseRules['comma-dangle'][1].arrays,\n // tuples: baseRules['comma-dangle'][1].arrays,\n // },\n // ],\n '@typescript-eslint/adjacent-overload-signatures': 'error',\n '@typescript-eslint/ban-ts-comment': [\n 'warn',\n {\n 'minimumDescriptionLength': 3,\n 'ts-check': false,\n 'ts-expect-error': 'allow-with-description',\n 'ts-ignore': 'allow-with-description',\n 'ts-nocheck': true,\n },\n ],\n // '@typescript-eslint/brace-style': baseRules['brace-style'],\n // '@typescript-eslint/comma-dangle': [\n // baseRules['comma-dangle'][0],\n // {\n // ...baseRules['comma-dangle'][1],\n // enums: baseRules['comma-dangle'][1].arrays,\n // generics: baseRules['comma-dangle'][1].arrays,\n // tuples: baseRules['comma-dangle'][1].arrays,\n // },\n // ],\n // '@typescript-eslint/comma-spacing': baseRules['comma-spacing'],\n '@typescript-eslint/consistent-type-assertions': [\n 'error',\n { assertionStyle: 'as', objectLiteralTypeAssertions: 'never' },\n ],\n '@typescript-eslint/default-param-last': baseRules['default-param-last'],\n // '@typescript-eslint/dot-notation': baseRules['dot-notation'], // TODO: Stylistic typechecked\n '@typescript-eslint/explicit-function-return-type': 'off',\n '@typescript-eslint/explicit-module-boundary-types': 'off',\n // '@typescript-eslint/func-call-spacing': baseRules['func-call-spacing'],\n // '@typescript-eslint/indent': baseRules.indent,\n // '@typescript-eslint/keyword-spacing': baseRules['keyword-spacing'],\n // '@typescript-eslint/lines-between-class-members': baseRules['lines-between-class-members'],\n // '@typescript-eslint/member-delimiter-style': 'error', // TODO: @stylistic/member-delimiter-style\n '@typescript-eslint/naming-convention': [\n 'error',\n // {\n // format: ['PascalCase', 'camelCase'],\n // leadingUnderscore: 'allow',\n // selector: 'default',\n // trailingUnderscore: 'allow',\n // },\n {\n format: ['PascalCase', 'camelCase', 'UPPER_CASE'],\n leadingUnderscore: 'allow',\n selector: 'variable',\n trailingUnderscore: 'allow',\n },\n // {\n // format: ['PascalCase', 'camelCase', 'UPPER_CASE'],\n // leadingUnderscore: 'allowSingleOrDouble',\n // selector: 'memberLike',\n // trailingUnderscore: 'allowDouble',\n // },\n {\n format: ['PascalCase'],\n selector: 'typeLike',\n },\n ],\n // '@typescript-eslint/no-array-constructor': baseRules['no-array-constructor'],\n // '@typescript-eslint/no-base-to-string': 'error', // TODO: require type check\n '@typescript-eslint/no-dupe-class-members': baseRules['no-dupe-class-members'],\n '@typescript-eslint/no-empty-function': baseRules['no-empty-function'],\n '@typescript-eslint/no-empty-interface': ['error', { allowSingleExtends: true }],\n '@typescript-eslint/no-empty-object-type': 'off',\n '@typescript-eslint/no-explicit-any': 'off', // if any is explicit then it's wanted\n '@typescript-eslint/no-extra-parens': baseRules['no-extra-parens'],\n // '@typescript-eslint/no-extra-semi': baseRules['no-extra-semi'], // TODO: @stylistic/no-extra-semi\n '@typescript-eslint/no-inferrable-types': 'error',\n '@typescript-eslint/no-loop-func': baseRules['no-loop-func'],\n '@typescript-eslint/no-loss-of-precision': baseRules['no-loss-of-precision'],\n '@typescript-eslint/no-magic-numbers': baseRules['no-magic-numbers'],\n '@typescript-eslint/no-misused-new': 'error',\n '@typescript-eslint/no-namespace': 'off', // We don't agree with community, namespaces are great and not deprecated\n '@typescript-eslint/no-non-null-assertion': 'error',\n '@typescript-eslint/no-redeclare': ESLintConfig.fixme(baseRules['no-redeclare']),\n '@typescript-eslint/no-require-imports': 'error',\n '@typescript-eslint/no-shadow': baseRules['no-shadow'],\n '@typescript-eslint/no-this-alias': 'error',\n // '@typescript-eslint/no-unnecessary-condition': 'error',// TODO: require type check\n // '@typescript-eslint/no-unsafe-argument': 'error', // TODO: recommended type check\n '@typescript-eslint/no-unused-expressions': baseRules['no-unused-expressions'],\n '@typescript-eslint/no-unused-vars': baseRules['no-unused-vars'],\n '@typescript-eslint/no-use-before-define': baseRules['no-use-before-define'],\n '@typescript-eslint/no-useless-constructor': baseRules['no-useless-constructor'],\n '@typescript-eslint/no-var-requires': 'error',\n '@typescript-eslint/no-wrapper-object-types': 'error',\n // '@typescript-eslint/object-curly-spacing': baseRules['object-curly-spacing'],\n // '@typescript-eslint/only-throw-error': baseRules['no-throw-literal'], //TODO: Recommended type check\n '@typescript-eslint/prefer-namespace-keyword': 'error',\n // '@typescript-eslint/prefer-reduce-type-parameter': 'error', // TODO: strict type check\n // '@typescript-eslint/quotes': baseRules.quotes,\n '@typescript-eslint/require-await': baseRules['require-await'],\n // '@typescript-eslint/return-await': baseRules['no-return-await'], // TODO: strict type check\n // '@typescript-eslint/semi': baseRules.semi,\n // '@typescript-eslint/space-before-function-paren': baseRules['space-before-function-paren'],\n // '@typescript-eslint/space-infix-ops': baseRules['space-infix-ops'],\n // '@typescript-eslint/strict-boolean-expressions': [\n // 'error',\n // {\n // allowNullableObject: false,\n // allowNumber: false,\n // allowString: false,\n // },\n // ], //TODO: require typing\n // '@typescript-eslint/switch-exhaustiveness-check': 'error',//TODO: require type check\n '@typescript-eslint/triple-slash-reference': 'error',\n // '@typescript-eslint/type-annotation-spacing': 'error',// TODO: @stylistic/type-annotation-spacing\n },\n {\n '@typescript-eslint': 'ts',\n },\n );\n};\n","/* eslint-disable ts/no-non-null-assertion */\nimport { ESLintConfig, interopDefault } from '@w5s/dev';\nimport { StylisticConfig, type PluginOptionsBase, type Config } from '../type.js';\nimport type { RuleOptions } from '../typegen/ts.js';\nimport { tsRules } from '../rules/tsRules.js';\nimport { tsSourceGlob } from '../glob.js';\n\nconst defaultFiles = [tsSourceGlob];\n\nexport async function ts(options: ts.Options = {}) {\n const [tsPlugin, tsParser] = await Promise.all([\n interopDefault(import('@typescript-eslint/eslint-plugin')),\n interopDefault(import('@typescript-eslint/parser')),\n ] as const);\n const tsRecommendedRules = tsPlugin.configs['eslint-recommended']!.overrides![0]!.rules!;\n const tsStrictRules = tsPlugin.configs['strict']!.rules!;\n const tsTypeCheckedRules = tsPlugin.configs['recommended-type-checked-only']!.rules!;\n const { files = defaultFiles, rules = {}, stylistic = true, typeChecked = false } = options;\n const { enabled: stylisticEnabled } = StylisticConfig.from(stylistic);\n\n return [\n {\n name: 'w5s/ts/setup',\n plugins: {\n ts: tsPlugin,\n },\n },\n {\n files,\n languageOptions: {\n parser: tsParser,\n parserOptions: {\n sourceType: 'module',\n // extraFileExtensions: componentExts.map(ext => `.${ext}`),\n // ...typeAware\n // ? {\n // projectService: {\n // allowDefaultProject: ['./*.js'],\n // defaultProject: tsconfigPath,\n // },\n // tsconfigRootDir: process.cwd(),\n // }\n // : {},\n // ...parserOptions as any,\n },\n },\n name: 'w5s/ts/rules',\n rules: {\n ...ESLintConfig.renameRules(tsRecommendedRules, { '@typescript-eslint': 'ts' }),\n ...ESLintConfig.renameRules(tsStrictRules, { '@typescript-eslint': 'ts' }),\n ...tsRules(),\n ...(stylisticEnabled ? {} : {}),\n ...rules,\n },\n },\n ...(typeChecked\n ? ([\n {\n files: defaultFiles,\n // ignores: ignoresTypeAware,\n name: 'w5s/ts/rules-type-checked',\n rules: {\n ...ESLintConfig.renameRules(tsTypeCheckedRules, { '@typescript-eslint': 'ts' }),\n },\n },\n ] as const)\n : []),\n ] as [Config, Config] | [Config, Config, Config] satisfies Array<Config>;\n}\nexport namespace ts {\n export type Rules = RuleOptions;\n\n export interface Options extends PluginOptionsBase<Rules> {\n typeChecked?: boolean;\n }\n}\n","import { interopDefault } from '@w5s/dev';\nimport { StylisticConfig, type Config, type PluginOptionsBase } from '../type.js';\nimport type { RuleOptions } from '../typegen/unicorn.js';\nimport { sourceGlob } from '../glob.js';\n\nconst defaultFiles = [sourceGlob];\n\nexport async function unicorn(options: unicorn.Options = {}) {\n const [unicornPlugin] = await Promise.all([interopDefault(import('eslint-plugin-unicorn'))] as const);\n const { files = defaultFiles, rules = {}, stylistic = true } = options;\n const { enabled: stylisticEnabled } = StylisticConfig.from(stylistic);\n\n return [\n {\n name: 'w5s/unicorn/setup',\n plugins: {\n unicorn: unicornPlugin,\n },\n },\n {\n name: 'w5s/unicorn/rules',\n files,\n rules: {\n ...unicornPlugin.configs.recommended?.rules,\n // Disabled for safety\n 'unicorn/consistent-destructuring': 'off',\n 'unicorn/consistent-function-scoping': 'off', // Too many false positive\n 'unicorn/filename-case': 'off',\n 'unicorn/import-index': 'off', // Not playing well with ES Module\n 'unicorn/new-for-builtins': 'off', // error, @see https://github.com/sindresorhus/eslint-plugin-unicorn/issues/122\n 'unicorn/no-array-callback-reference': 'off', // Many false positive reported\n 'unicorn/no-array-for-each': 'off', // This rule could change browser compatibility\n 'unicorn/no-array-method-this-argument': 'off', // Many false positive reported\n 'unicorn/no-array-reduce': 'off', // Array#reduce can be used\n 'unicorn/no-console-spaces': 'off',\n 'unicorn/no-fn-reference-in-iterator': 'off', // error ?\n 'unicorn/no-nested-ternary': 'off',\n 'unicorn/no-null': 'off', // https://github.com/sindresorhus/eslint-plugin-unicorn/issues/612\n 'unicorn/no-object-as-default-parameter': 'off',\n 'unicorn/no-process-exit': 'off',\n 'unicorn/no-unreadable-array-destructuring': 'off',\n 'unicorn/no-unused-properties': 'warn',\n 'unicorn/no-useless-undefined': 'off',\n 'unicorn/prefer-add-event-listener': 'off',\n 'unicorn/prefer-default-parameters': 'off',\n 'unicorn/prefer-set-has': 'off',\n 'unicorn/prevent-abbreviations': 'off', // This rule is so dangerous : it potentially break code while fixing in many cases !!\n 'unicorn/throw-new-error': 'off', // Creating errors with call signature is OK\n ...(stylisticEnabled ? {} : {}),\n ...rules,\n },\n },\n // TODO: move to another file ?\n {\n name: 'w5s/unicorn/overrides',\n files: ['**/*.config.cjs', '**/*.config.js'],\n rules: {\n 'unicorn/prefer-module': 'off',\n },\n },\n ] as [Config, Config, Config] satisfies Array<Config>;\n}\n\nexport namespace unicorn {\n export type Rules = RuleOptions;\n\n export interface Options extends PluginOptionsBase<Rules> {}\n}\n","import { interopDefault } from '@w5s/dev';\nimport { StylisticConfig, type Config, type PluginOptionsBase } from '../type.js';\nimport type { RuleOptions } from '../typegen/yml.js';\nimport { ymlSourceGlob } from '../glob.js';\n\nconst defaultFiles = [ymlSourceGlob];\n\nexport async function yml(options: yml.Options = {}) {\n const [ymlPlugin] = await Promise.all([interopDefault(import('eslint-plugin-yml'))] as const);\n const { files = defaultFiles, rules = {}, stylistic = true } = options;\n const { enabled: stylisticEnabled, indent, quotes } = StylisticConfig.from(stylistic);\n\n return [\n {\n name: 'w5s/yml/setup',\n plugins: {\n yml: ymlPlugin,\n },\n },\n {\n files,\n language: 'yml/yaml',\n name: 'w5s/yml/rules',\n rules: {\n ...ymlPlugin.configs['recommended'].reduce(\n (acc, config) => ({ ...acc, ...config.rules }),\n // eslint-disable-next-line ts/consistent-type-assertions\n {} as RuleOptions,\n ),\n ...(stylisticEnabled\n ? {\n 'style/spaced-comment': 'off', // Fix\n\n 'yml/block-mapping-question-indicator-newline': 'error',\n 'yml/block-sequence-hyphen-indicator-newline': 'error',\n 'yml/flow-mapping-curly-newline': 'error',\n 'yml/flow-mapping-curly-spacing': 'error',\n 'yml/flow-sequence-bracket-newline': 'error',\n 'yml/flow-sequence-bracket-spacing': 'error',\n 'yml/indent': ['error', indent === 'tab' ? 2 : indent],\n 'yml/key-spacing': ['error', { afterColon: true, beforeColon: false }],\n 'yml/no-tab-indent': 'error',\n 'yml/quotes': [\n 'error',\n { avoidEscape: true, prefer: quotes === 'backtick' ? ('single' as const) : quotes },\n ],\n 'yml/spaced-comment': 'error',\n }\n : {}),\n ...rules,\n },\n },\n ] as [Config, Config] satisfies Array<Config>;\n}\n\nexport namespace yml {\n export type Rules = RuleOptions;\n\n export interface Options extends PluginOptionsBase<Rules> {}\n}\n","import { ESLintConfig } from '@w5s/dev';\nimport { jsdoc, jsonc, ignores, imports, markdown, node, ts, yml, unicorn, stylistic, es } from './config.js';\nimport type { Config } from './type.js';\n\nexport interface DefineConfigOptions extends ignores.Options {\n es?: boolean | es.Options;\n import?: boolean | imports.Options;\n markdown?: boolean | markdown.Options;\n jsdoc?: boolean | jsdoc.Options;\n jsonc?: boolean | jsonc.Options;\n node?: boolean | node.Options;\n stylistic?: boolean | stylistic.Options;\n ts?: boolean | ts.Options;\n unicorn?: boolean | unicorn.Options;\n yml?: boolean | yml.Options;\n}\n\nexport async function defineConfig(options: DefineConfigOptions = {}) {\n const stylisticOptions =\n typeof options.stylistic === 'boolean' ? { enabled: options.stylistic } : { enabled: true, ...options.stylistic };\n const withDefaultStylistic = <T>(_options: T) => ({ stylistic: stylisticOptions, ..._options });\n const toOption = <T extends {}>(optionsOrBoolean: T | boolean | undefined) =>\n withDefaultStylistic(\n (typeof optionsOrBoolean === 'boolean'\n ? { enabled: optionsOrBoolean }\n : { enabled: true, ...optionsOrBoolean }) as T & { enabled: boolean },\n );\n const esOptions = toOption(options.es);\n const importOptions = toOption(options.import);\n const jsdocOptions = toOption(options.jsdoc);\n const jsoncOptions = toOption(options.jsonc);\n const markdownOptions = toOption(options.markdown);\n const nodeOptions = toOption(options.node);\n const tsOptions = toOption(options.ts);\n const unicornOptions = toOption(options.unicorn);\n const ymlOptions = toOption(options.yml);\n\n const returnValue: Array<Promise<Array<Config>>> = [];\n const append = (config: Promise<ReadonlyArray<any>>) => {\n returnValue.push(config as any);\n };\n append(es(esOptions));\n append(ignores(options));\n\n if (jsoncOptions.enabled) {\n append(jsonc(jsoncOptions));\n }\n if (jsdocOptions.enabled) {\n append(jsdoc(jsdocOptions));\n }\n if (stylisticOptions.enabled) {\n append(stylistic(stylisticOptions));\n }\n if (importOptions.enabled) {\n append(imports(importOptions));\n }\n if (markdownOptions.enabled) {\n append(markdown(markdownOptions));\n }\n if (nodeOptions.enabled) {\n append(node(nodeOptions));\n }\n if (tsOptions.enabled) {\n append(ts(tsOptions));\n }\n if (ymlOptions.enabled) {\n append(yml(ymlOptions));\n }\n if (unicornOptions.enabled) {\n append(unicorn(unicornOptions));\n }\n return ESLintConfig.concat(...returnValue);\n}\n","export const meta = Object.freeze({\n // @ts-ignore - these variables are injected at build time\n name: (typeof __PACKAGE_NAME__ === 'undefined' ? '' : __PACKAGE_NAME__) as string,\n // @ts-ignore - these variables are injected at build time\n version: (typeof __PACKAGE_VERSION__ === 'undefined' ? '' : __PACKAGE_VERSION__) as string,\n // @ts-ignore - these variables are injected at build time\n buildNumber: 1 as number, // (typeof __PACKAGE_BUILD_NUMBER__ === 'undefined' ? 0 : __PACKAGE_BUILD_NUMBER__) as number,\n});\n"],"mappings":";;;;;;;AAaA,MAAM,gBAAgB;CACpB,SAAS;CACT,QAAQ,eAAe,YAAY;CACnC,QAAQ,eAAe,cAAc,WAAW;CAChD,KAAK;CACL,MAAM,eAAe,QAAQ;AAC/B;;;;AAKA,MAAa,kBAAkB;;;;CAI7B,SAAS;;;;;;CAOT,KAAK,OAAuD;EAC1D,OAAO,OAAO,UAAU,YAAY;GAAE,GAAG;GAAe,SAAS;EAAM,IAAI;GAAE,GAAG;GAAe,GAAG;EAAM;CAC1G;AACF;;;ACpCA,MAAa,uBAAuB;CAGlC,kBAAkB;CAIlB,yBAAyB,CAAC,SAAS,EAAE,eAAe,KAAK,CAAC;CAI1D,oBAAoB;CAIpB,cAAc,CAAC,OAAO,EAAE;CAIxB,0BAA0B,CAAC,SAAS,EAClC,eAAe,CAAC,EAClB,CAAC;CAID,qBAAqB;CAIrB,SAAS,CAAC,SAAS,YAAY;CAI/B,gBAAgB,CAAC,SAAS,EAAE,gBAAgB,eAAe,CAAC;CAI5D,qBAAqB;CAGrB,sBAAsB;CAItB,gBAAgB,CAAC,S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A;IACE,OAAO;KAAC;KAAW;KAAW;KAAW;KAAmB;KAAW;KAAW;KAAS;IAAY;IACvG,aAAa;GACf;GACA;IACE,OAAO,EAAE,MAAM,MAAM;IACrB,aAAa;GACf;EACF,EACF;CACF;AACF;AAEA,SAAS,kBAAkB;CACzB,OAAO;EACL,OAAO,CAAC,cAAc;EACtB,OAAO,EACL,mBAAmB;GACjB;GACA;IACE,OAAO;KACL;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;IACF;IACA,aAAa;GACf;GACA;IACE,OAAO,CAAC,OAAO,OAAO;IACtB,aAAa;GACf;GACA,GAAG;IAAC;IAAc;IAAW;IAAW;GAAQ,CAAC,CAAC,KAAK,SAAS;IAC9D,OAAO;KAAC;KAAQ;KAAQ;KAAS;IAAK;IACtC,aAAa,IAAI,IAAI;GACvB,EAAE;GACF,GAAG,CAAC,WAAW,eAAe,CAAC,CAAC,KAAK,SAAS;IAC5C,OAAO,EAAE,MAAM,MAAM;IACrB,aAAa,IAAI,IAAI;GACvB,EAAE;GACF,GAAG;IACD;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;GACF,CAAC,CAAC,KAAK,SAAS;IACd,OAAO,EAAE,MAAM,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KAAK;CAC3C,MAAM,eAAe,SAAS,QAAQ,KAAK;CAC3C,MAAM,kBAAkB,SAAS,QAAQ,QAAQ;CACjD,MAAM,cAAc,SAAS,QAAQ,IAAI;CACzC,MAAM,YAAY,SAAS,QAAQ,EAAE;CACrC,MAAM,iBAAiB,SAAS,QAAQ,OAAO;CAC/C,MAAM,aAAa,SAAS,QAAQ,GAAG;CAEvC,MAAM,cAA6C,CAAC;CACpD,MAAM,UAAU,WAAwC;EACtD,YAAY,KAAK,MAAa;CAChC;CACA,OAAO,GAAG,SAAS,CAAC;CACpB,OAAO,QAAQ,OAAO,CAAC;CAEvB,IAAI,aAAa,SACf,OAAO,MAAM,YAAY,CAAC;CAE5B,IAAI,aAAa,SACf,OAAO,MAAM,YAAY,CAAC;CAE5B,IAAI,iBAAiB,SACnB,OAAO,UAAU,gBAAgB,CAAC;CAEpC,IAAI,cAAc,SAChB,OAAO,QAAQ,aAAa,CAAC;CAE/B,IAAI,gBAAgB,SAClB,OAAO,SAAS,eAAe,CAAC;CAElC,IAAI,YAAY,SACd,OAAO,KAAK,WAAW,CAAC;CAE1B,IAAI,UAAU,SACZ,OAAO,GAAG,SAAS,CAAC;CAEtB,IAAI,WAAW,SACb,OAAO,IAAI,UAAU,CAAC;CAExB,IAAI,eAAe,SACjB,OAAO,QAAQ,cAAc,CAAC;CAEhC,OAAO,aAAa,OAAO,GAAG,WAAW;AAC3C;;;ACxEA,MAAa,OAAO,OAAO,OAAO;CAEhC,MAAA;CAEA,SAAA;CAEA,aAAa;AACf,CAAC"}
1
+ {"version":3,"file":"index.js","names":["sourceGlob","defaultFiles","sourceGlob","defaultFiles","defaultFiles","sourceGlob","defaultFiles","defaultFiles","defaultFiles","sourceGlob","defaultFiles","defaultFiles","defaultFiles","sourceGlob"],"sources":["../src/type/StylisticConfig.ts","../src/glob.ts","../src/config/e18e.ts","../src/rules/esRules/bestPractices.ts","../src/rules/esRules/errors.ts","../src/rules/esRules/es6.ts","../src/rules/esRules/overrides.ts","../src/rules/esRules/strict.ts","../src/rules/esRules/variables.ts","../src/rules/esRules.ts","../src/config/es.ts","../src/config/ignores.ts","../src/config/jsdoc.ts","../src/config/jsonc.ts","../src/config/imports.ts","../src/config/markdown.ts","../src/config/next.ts","../src/config/node.ts","../src/config/stylistic.ts","../src/config/test.ts","../src/rules/tsRules.ts","../src/config/ts.ts","../src/config/unicorn.ts","../src/config/yml.ts","../src/defineConfig.ts","../src/meta.ts"],"sourcesContent":["import type { StylisticCustomizeOptions } from '@stylistic/eslint-plugin';\nimport prettierConfig from '@w5s/prettier-config';\n\nexport interface StylisticConfig {\n enabled: boolean;\n indent: NonNullable<StylisticCustomizeOptions['indent']>;\n quotes: NonNullable<StylisticCustomizeOptions['quotes']>;\n jsx: NonNullable<StylisticCustomizeOptions['jsx']>;\n semi: NonNullable<StylisticCustomizeOptions['semi']>;\n}\n\nexport interface StylisticParameters extends Partial<StylisticConfig> {}\n\nconst defaultConfig = {\n enabled: true,\n indent: prettierConfig.tabWidth ?? 2,\n quotes: prettierConfig.singleQuote ? 'single' : 'double',\n jsx: true,\n semi: prettierConfig.semi ?? true,\n} satisfies StylisticConfig;\n\n/**\n * @namespace\n */\nexport const StylisticConfig = {\n /**\n * Default config\n */\n default: defaultConfig,\n\n /**\n * Return a new StylisticConfig from input\n *\n * @param input\n */\n from(input: boolean | StylisticParameters): StylisticConfig {\n return typeof input === 'boolean' ? { ...defaultConfig, enabled: input } : { ...defaultConfig, ...input };\n },\n};\n","import { Project } from '@w5s/dev';\n\nexport const sourceGlob = `**/${Project.extensionsToGlob(Project.sourceExtensions())}`;\n\nexport const esSourceGlob = `**/${Project.extensionsToGlob(Project.queryExtensions(['javascript', 'javascriptreact']))}`;\n\nexport const jsonSourceGlob = `**/${Project.extensionsToGlob(['.json', '.json5', '.jsonc'])}`;\n\nexport const tsSourceGlob = `**/${Project.extensionsToGlob(Project.queryExtensions(['typescript', 'typescriptreact']))}`;\n\nexport const ymlSourceGlob = `**/${Project.extensionsToGlob(Project.queryExtensions(['yaml']))}`;\n","import { interopDefault } from '@w5s/dev';\nimport { StylisticConfig, type Config, type PluginOptionsBase } from '../type.js';\nimport type { RuleOptions } from '../typegen/e18e.js';\nimport { sourceGlob } from '../glob.js';\n\nconst defaultFiles = [sourceGlob];\n\n/**\n * @see https://e18e.dev\n * @param options\n */\nexport async function e18e(options: e18e.Options = {}) {\n const [e18ePlugin] = await Promise.all([interopDefault(import('@e18e/eslint-plugin'))] as const);\n const { files = defaultFiles, rules = {}, stylistic = true, modernization = true, moduleReplacements = false, performanceImprovements = true } = options;\n const { enabled: stylisticEnabled } = StylisticConfig.from(stylistic);\n\n return [\n {\n name: 'w5s/e18e/setup',\n plugins: {\n e18e: e18ePlugin,\n },\n },\n {\n name: 'w5s/e18e/rules',\n files,\n rules: {\n ...modernization ? e18ePlugin.configs.modernization.rules : {},\n ...moduleReplacements ? e18ePlugin.configs.moduleReplacements.rules : {},\n ...performanceImprovements ? e18ePlugin.configs.performanceImprovements.rules : {},\n\n // Disable dangerous (also prefer unicorn)\n 'e18e/prefer-array-from-map': 'off',\n 'e18e/prefer-array-to-reversed': 'off',\n 'e18e/prefer-array-to-sorted': 'off',\n 'e18e/prefer-array-to-spliced': 'off',\n 'e18e/prefer-spread-syntax': 'off',\n\n ...(stylisticEnabled ? {} : {}),\n ...rules,\n },\n },\n ] as [Config, Config] satisfies Array<Config>;\n}\n\nexport namespace e18e {\n export type Rules = RuleOptions;\n\n export interface Options extends PluginOptionsBase<Rules> {\n /**\n * Include modernization default configuration\n *\n * @default true\n */\n modernization?: boolean;\n\n /**\n * Include moduleReplacements default configuration\n *\n * @default false\n */\n moduleReplacements?: boolean;\n\n /**\n * Include performanceImprovements default configuration\n *\n * @default true\n */\n performanceImprovements?: boolean;\n }\n}\n","import type { Linter } from 'eslint';\n\nexport const bestPractices = () => ({\n // enforces getter/setter pairs in objects\n // https://eslint.org/docs/rules/accessor-pairs\n 'accessor-pairs': 'off',\n\n // enforces return statements in callbacks of array's methods\n // https://eslint.org/docs/rules/array-callback-return\n 'array-callback-return': ['error', { allowImplicit: true }],\n\n // treat var statements as if they were block scoped\n // https://eslint.org/docs/rules/block-scoped-var\n 'block-scoped-var': 'error',\n\n // specify the maximum cyclomatic complexity allowed in a program\n // https://eslint.org/docs/rules/complexity\n 'complexity': ['off', 20],\n\n // enforce that class methods use \"this\"\n // https://eslint.org/docs/rules/class-methods-use-this\n 'class-methods-use-this': ['error', {\n exceptMethods: [],\n }],\n\n // require return statements to either always or never specify values\n // https://eslint.org/docs/rules/consistent-return\n 'consistent-return': 'error',\n\n // specify curly brace conventions for all control statements\n // https://eslint.org/docs/rules/curly\n 'curly': ['error', 'multi-line'], // multiline\n\n // require default case in switch statements\n // https://eslint.org/docs/rules/default-case\n 'default-case': ['error', { commentPattern: '^no default$' }],\n\n // Enforce default clauses in switch statements to be last\n // https://eslint.org/docs/rules/default-case-last\n 'default-case-last': 'error',\n\n // https://eslint.org/docs/rules/default-param-last\n 'default-param-last': 'error',\n\n // encourages use of dot notation whenever possible\n // https://eslint.org/docs/rules/dot-notation\n 'dot-notation': ['error', { allowKeywords: true }],\n\n // enforces consistent newlines before or after dots\n // https://eslint.org/docs/rules/dot-location\n 'dot-location': ['error', 'property'],\n\n // require the use of === and !==\n // https://eslint.org/docs/rules/eqeqeq\n 'eqeqeq': ['error', 'always', { null: 'ignore' }],\n\n // Require grouped accessor pairs in object literals and classes\n // https://eslint.org/docs/rules/grouped-accessor-pairs\n 'grouped-accessor-pairs': 'error',\n\n // make sure for-in loops have an if statement\n // https://eslint.org/docs/rules/guard-for-in\n 'guard-for-in': 'error',\n\n // enforce a maximum number of classes per file\n // https://eslint.org/docs/rules/max-classes-per-file\n 'max-classes-per-file': ['error', 1],\n\n // disallow the use of alert, confirm, and prompt\n // https://eslint.org/docs/rules/no-alert\n // TODO: enable, semver-major\n 'no-alert': 'warn',\n\n // disallow use of arguments.caller or arguments.callee\n // https://eslint.org/docs/rules/no-caller\n 'no-caller': 'error',\n\n // disallow lexical declarations in case/default clauses\n // https://eslint.org/docs/rules/no-case-declarations\n 'no-case-declarations': 'error',\n\n // Disallow returning value in constructor\n // https://eslint.org/docs/rules/no-constructor-return\n 'no-constructor-return': 'error',\n\n // disallow division operators explicitly at beginning of regular expression\n // https://eslint.org/docs/rules/no-div-regex\n 'no-div-regex': 'off',\n\n // disallow else after a return in an if\n // https://eslint.org/docs/rules/no-else-return\n 'no-else-return': ['error', { allowElseIf: false }],\n\n // disallow empty functions, except for standalone funcs/arrows\n // https://eslint.org/docs/rules/no-empty-function\n 'no-empty-function': ['error', {\n allow: [\n 'arrowFunctions',\n 'functions',\n 'methods',\n ],\n }],\n\n // disallow empty destructuring patterns\n // https://eslint.org/docs/rules/no-empty-pattern\n 'no-empty-pattern': 'error',\n\n // Disallow empty static blocks\n // https://eslint.org/docs/latest/rules/no-empty-static-block\n // TODO: semver-major, enable\n 'no-empty-static-block': 'off',\n\n // disallow comparisons to null without a type-checking operator\n // https://eslint.org/docs/rules/no-eq-null\n 'no-eq-null': 'off',\n\n // disallow use of eval()\n // https://eslint.org/docs/rules/no-eval\n 'no-eval': 'error',\n\n // disallow adding to native types\n // https://eslint.org/docs/rules/no-extend-native\n 'no-extend-native': 'error',\n\n // disallow unnecessary function binding\n // https://eslint.org/docs/rules/no-extra-bind\n 'no-extra-bind': 'error',\n\n // disallow Unnecessary Labels\n // https://eslint.org/docs/rules/no-extra-label\n 'no-extra-label': 'error',\n\n // disallow fallthrough of case statements\n // https://eslint.org/docs/rules/no-fallthrough\n 'no-fallthrough': 'error',\n\n // disallow the use of leading or trailing decimal points in numeric literals\n // https://eslint.org/docs/rules/no-floating-decimal\n 'no-floating-decimal': 'error',\n\n // disallow reassignments of native objects or read-only globals\n // https://eslint.org/docs/rules/no-global-assign\n 'no-global-assign': ['error', { exceptions: [] }],\n\n // deprecated in favor of no-global-assign\n // https://eslint.org/docs/rules/no-native-reassign\n 'no-native-reassign': 'off',\n\n // disallow implicit type conversions\n // https://eslint.org/docs/rules/no-implicit-coercion\n 'no-implicit-coercion': ['off', {\n boolean: false,\n number: true,\n string: true,\n allow: [],\n }],\n\n // disallow var and named functions in global scope\n // https://eslint.org/docs/rules/no-implicit-globals\n 'no-implicit-globals': 'off',\n\n // disallow use of eval()-like methods\n // https://eslint.org/docs/rules/no-implied-eval\n 'no-implied-eval': 'error',\n\n // disallow this keywords outside of classes or class-like objects\n // https://eslint.org/docs/rules/no-invalid-this\n 'no-invalid-this': 'off',\n\n // disallow usage of __iterator__ property\n // https://eslint.org/docs/rules/no-iterator\n 'no-iterator': 'error',\n\n // disallow use of labels for anything other than loops and switches\n // https://eslint.org/docs/rules/no-labels\n 'no-labels': ['error', { allowLoop: false, allowSwitch: false }],\n\n // disallow unnecessary nested blocks\n // https://eslint.org/docs/rules/no-lone-blocks\n 'no-lone-blocks': 'error',\n\n // disallow creation of functions within loops\n // https://eslint.org/docs/rules/no-loop-func\n 'no-loop-func': 'error',\n\n // disallow magic numbers\n // https://eslint.org/docs/rules/no-magic-numbers\n 'no-magic-numbers': ['off', {\n ignore: [],\n ignoreArrayIndexes: true,\n enforceConst: true,\n detectObjects: false,\n }],\n\n // disallow use of multiple spaces\n // https://eslint.org/docs/rules/no-multi-spaces\n 'no-multi-spaces': ['error', {\n ignoreEOLComments: false,\n }],\n\n // disallow use of multiline strings\n // https://eslint.org/docs/rules/no-multi-str\n 'no-multi-str': 'error',\n\n // disallow use of new operator when not part of the assignment or comparison\n // https://eslint.org/docs/rules/no-new\n 'no-new': 'error',\n\n // disallow use of new operator for Function object\n // https://eslint.org/docs/rules/no-new-func\n 'no-new-func': 'error',\n\n // disallows creating new instances of String, Number, and Boolean\n // https://eslint.org/docs/rules/no-new-wrappers\n 'no-new-wrappers': 'error',\n\n // Disallow \\8 and \\9 escape sequences in string literals\n // https://eslint.org/docs/rules/no-nonoctal-decimal-escape\n 'no-nonoctal-decimal-escape': 'error',\n\n // Disallow calls to the Object constructor without an argument\n // https://eslint.org/docs/latest/rules/no-object-constructor\n // TODO: enable, semver-major\n 'no-object-constructor': 'off',\n\n // disallow use of (old style) octal literals\n // https://eslint.org/docs/rules/no-octal\n 'no-octal': 'error',\n\n // disallow use of octal escape sequences in string literals, such as\n // var foo = 'Copyright \\251';\n // https://eslint.org/docs/rules/no-octal-escape\n 'no-octal-escape': 'error',\n\n // disallow reassignment of function parameters\n // disallow parameter object manipulation except for specific exclusions\n // rule: https://eslint.org/docs/rules/no-param-reassign.html\n 'no-param-reassign': ['error', {\n props: true,\n ignorePropertyModificationsFor: [\n 'acc', // for reduce accumulators\n 'accumulator', // for reduce accumulators\n 'e', // for e.returnvalue\n 'ctx', // for Koa routing\n 'context', // for Koa routing\n 'req', // for Express requests\n 'request', // for Express requests\n 'res', // for Express responses\n 'response', // for Express responses\n '$scope', // for Angular 1 scopes\n 'staticContext', // for ReactRouter context\n ],\n }],\n\n // disallow usage of __proto__ property\n // https://eslint.org/docs/rules/no-proto\n 'no-proto': 'error',\n\n // disallow declaring the same variable more than once\n // https://eslint.org/docs/rules/no-redeclare\n 'no-redeclare': 'error',\n\n // disallow certain object properties\n // https://eslint.org/docs/rules/no-restricted-properties\n 'no-restricted-properties': ['error', {\n object: 'arguments',\n property: 'callee',\n message: 'arguments.callee is deprecated',\n }, {\n object: 'global',\n property: 'isFinite',\n message: 'Please use Number.isFinite instead',\n }, {\n object: 'self',\n property: 'isFinite',\n message: 'Please use Number.isFinite instead',\n }, {\n object: 'window',\n property: 'isFinite',\n message: 'Please use Number.isFinite instead',\n }, {\n object: 'global',\n property: 'isNaN',\n message: 'Please use Number.isNaN instead',\n }, {\n object: 'self',\n property: 'isNaN',\n message: 'Please use Number.isNaN instead',\n }, {\n object: 'window',\n property: 'isNaN',\n message: 'Please use Number.isNaN instead',\n }, {\n property: '__defineGetter__',\n message: 'Please use Object.defineProperty instead.',\n }, {\n property: '__defineSetter__',\n message: 'Please use Object.defineProperty instead.',\n }, {\n object: 'Math',\n property: 'pow',\n message: 'Use the exponentiation operator (**) instead.',\n }],\n\n // disallow use of assignment in return statement\n // https://eslint.org/docs/rules/no-return-assign\n 'no-return-assign': ['error', 'always'],\n\n // disallow redundant `return await`\n // https://eslint.org/docs/rules/no-return-await\n 'no-return-await': 'error',\n\n // disallow use of `javascript:` urls.\n // https://eslint.org/docs/rules/no-script-url\n 'no-script-url': 'error',\n\n // disallow self assignment\n // https://eslint.org/docs/rules/no-self-assign\n 'no-self-assign': ['error', {\n props: true,\n }],\n\n // disallow comparisons where both sides are exactly the same\n // https://eslint.org/docs/rules/no-self-compare\n 'no-self-compare': 'error',\n\n // disallow use of comma operator\n // https://eslint.org/docs/rules/no-sequences\n 'no-sequences': 'error',\n\n // restrict what can be thrown as an exception\n // https://eslint.org/docs/rules/no-throw-literal\n 'no-throw-literal': 'error',\n\n // disallow unmodified conditions of loops\n // https://eslint.org/docs/rules/no-unmodified-loop-condition\n 'no-unmodified-loop-condition': 'off',\n\n // disallow usage of expressions in statement position\n // https://eslint.org/docs/rules/no-unused-expressions\n 'no-unused-expressions': ['error', {\n allowShortCircuit: false,\n allowTernary: false,\n allowTaggedTemplates: false,\n }],\n\n // disallow unused labels\n // https://eslint.org/docs/rules/no-unused-labels\n 'no-unused-labels': 'error',\n\n // disallow unnecessary .call() and .apply()\n // https://eslint.org/docs/rules/no-useless-call\n 'no-useless-call': 'off',\n\n // Disallow unnecessary catch clauses\n // https://eslint.org/docs/rules/no-useless-catch\n 'no-useless-catch': 'error',\n\n // disallow useless string concatenation\n // https://eslint.org/docs/rules/no-useless-concat\n 'no-useless-concat': 'error',\n\n // disallow unnecessary string escaping\n // https://eslint.org/docs/rules/no-useless-escape\n 'no-useless-escape': 'error',\n\n // disallow redundant return; keywords\n // https://eslint.org/docs/rules/no-useless-return\n 'no-useless-return': 'error',\n\n // disallow use of void operator\n // https://eslint.org/docs/rules/no-void\n 'no-void': 'error',\n\n // disallow usage of configurable warning terms in comments: e.g. todo\n // https://eslint.org/docs/rules/no-warning-comments\n 'no-warning-comments': ['off', { terms: ['todo', 'fixme', 'xxx'], location: 'start' }],\n\n // disallow use of the with statement\n // https://eslint.org/docs/rules/no-with\n 'no-with': 'error',\n\n // require using Error objects as Promise rejection reasons\n // https://eslint.org/docs/rules/prefer-promise-reject-errors\n 'prefer-promise-reject-errors': ['error', { allowEmptyReject: true }],\n\n // Suggest using named capture group in regular expression\n // https://eslint.org/docs/rules/prefer-named-capture-group\n 'prefer-named-capture-group': 'off',\n\n // Prefer Object.hasOwn() over Object.prototype.hasOwnProperty.call()\n // https://eslint.org/docs/rules/prefer-object-has-own\n // TODO: semver-major: enable thus rule, once eslint v8.5.0 is required\n 'prefer-object-has-own': 'off',\n\n // https://eslint.org/docs/rules/prefer-regex-literals\n 'prefer-regex-literals': ['error', {\n disallowRedundantWrapping: true,\n }],\n\n // require use of the second argument for parseInt()\n // https://eslint.org/docs/rules/radix\n 'radix': 'error',\n\n // require `await` in `async function` (note: this is a horrible rule that should never be used)\n // https://eslint.org/docs/rules/require-await\n 'require-await': 'off',\n\n // Enforce the use of u flag on RegExp\n // https://eslint.org/docs/rules/require-unicode-regexp\n 'require-unicode-regexp': 'off',\n\n // requires to declare all vars on top of their containing scope\n // https://eslint.org/docs/rules/vars-on-top\n 'vars-on-top': 'error',\n\n // require immediate function invocation to be wrapped in parentheses\n // https://eslint.org/docs/rules/wrap-iife.html\n 'wrap-iife': ['error', 'outside', { functionPrototypeMethods: false }],\n\n // require or disallow Yoda conditions\n // https://eslint.org/docs/rules/yoda\n 'yoda': 'error',\n} satisfies Linter.RulesRecord);\n","import type { Linter } from 'eslint';\n\nexport const errors = () => ({\n // Enforce “for” loop update clause moving the counter in the right direction\n // https://eslint.org/docs/rules/for-direction\n 'for-direction': 'error',\n\n // Enforces that a return statement is present in property getters\n // https://eslint.org/docs/rules/getter-return\n 'getter-return': ['error', { allowImplicit: true }],\n\n // disallow using an async function as a Promise executor\n // https://eslint.org/docs/rules/no-async-promise-executor\n 'no-async-promise-executor': 'error',\n\n // Disallow await inside of loops\n // https://eslint.org/docs/rules/no-await-in-loop\n 'no-await-in-loop': 'error',\n\n // Disallow comparisons to negative zero\n // https://eslint.org/docs/rules/no-compare-neg-zero\n 'no-compare-neg-zero': 'error',\n\n // disallow assignment in conditional expressions\n 'no-cond-assign': ['error', 'always'],\n\n // disallow use of console\n 'no-console': 'warn',\n\n // Disallows expressions where the operation doesn't affect the value\n // https://eslint.org/docs/rules/no-constant-binary-expression\n // TODO: semver-major, enable\n 'no-constant-binary-expression': 'off',\n\n // disallow use of constant expressions in conditions\n 'no-constant-condition': 'warn',\n\n // disallow control characters in regular expressions\n 'no-control-regex': 'error',\n\n // disallow use of debugger\n 'no-debugger': 'error',\n\n // disallow duplicate arguments in functions\n 'no-dupe-args': 'error',\n\n // Disallow duplicate conditions in if-else-if chains\n // https://eslint.org/docs/rules/no-dupe-else-if\n 'no-dupe-else-if': 'error',\n\n // disallow duplicate keys when creating object literals\n 'no-dupe-keys': 'error',\n\n // disallow a duplicate case label.\n 'no-duplicate-case': 'error',\n\n // disallow empty statements\n 'no-empty': 'error',\n\n // disallow the use of empty character classes in regular expressions\n 'no-empty-character-class': 'error',\n\n // disallow assigning to the exception in a catch block\n 'no-ex-assign': 'error',\n\n // disallow double-negation boolean casts in a boolean context\n // https://eslint.org/docs/rules/no-extra-boolean-cast\n 'no-extra-boolean-cast': 'error',\n\n // disallow unnecessary parentheses\n // https://eslint.org/docs/rules/no-extra-parens\n 'no-extra-parens': ['off', 'all', {\n conditionalAssign: true,\n nestedBinaryExpressions: false,\n returnAssign: false,\n ignoreJSX: 'all', // delegate to eslint-plugin-react\n enforceForArrowConditionals: false,\n }],\n\n // disallow unnecessary semicolons\n 'no-extra-semi': 'error',\n\n // disallow overwriting functions written as function declarations\n 'no-func-assign': 'error',\n\n // https://eslint.org/docs/rules/no-import-assign\n 'no-import-assign': 'error',\n\n // disallow function or variable declarations in nested blocks\n 'no-inner-declarations': 'error',\n\n // disallow invalid regular expression strings in the RegExp constructor\n 'no-invalid-regexp': 'error',\n\n // disallow irregular whitespace outside of strings and comments\n 'no-irregular-whitespace': 'error',\n\n // Disallow Number Literals That Lose Precision\n // https://eslint.org/docs/rules/no-loss-of-precision\n 'no-loss-of-precision': 'error',\n\n // Disallow characters which are made with multiple code points in character class syntax\n // https://eslint.org/docs/rules/no-misleading-character-class\n 'no-misleading-character-class': 'error',\n\n // disallow the use of object properties of the global object (Math and JSON) as functions\n 'no-obj-calls': 'error',\n\n // Disallow new operators with global non-constructor functions\n // https://eslint.org/docs/latest/rules/no-new-native-nonconstructor\n // TODO: semver-major, enable\n 'no-new-native-nonconstructor': 'off',\n\n // Disallow returning values from Promise executor functions\n // https://eslint.org/docs/rules/no-promise-executor-return\n 'no-promise-executor-return': 'error',\n\n // disallow use of Object.prototypes builtins directly\n // https://eslint.org/docs/rules/no-prototype-builtins\n 'no-prototype-builtins': 'error',\n\n // disallow multiple spaces in a regular expression literal\n 'no-regex-spaces': 'error',\n\n // Disallow returning values from setters\n // https://eslint.org/docs/rules/no-setter-return\n 'no-setter-return': 'error',\n\n // disallow sparse arrays\n 'no-sparse-arrays': 'error',\n\n // Disallow template literal placeholder syntax in regular strings\n // https://eslint.org/docs/rules/no-template-curly-in-string\n 'no-template-curly-in-string': 'error',\n\n // Avoid code that looks like two expressions but is actually one\n // https://eslint.org/docs/rules/no-unexpected-multiline\n 'no-unexpected-multiline': 'error',\n\n // disallow unreachable statements after a return, throw, continue, or break statement\n 'no-unreachable': 'error',\n\n // Disallow loops with a body that allows only one iteration\n // https://eslint.org/docs/rules/no-unreachable-loop\n 'no-unreachable-loop': ['error', {\n ignore: [], // WhileStatement, DoWhileStatement, ForStatement, ForInStatement, ForOfStatement\n }],\n\n // disallow return/throw/break/continue inside finally blocks\n // https://eslint.org/docs/rules/no-unsafe-finally\n 'no-unsafe-finally': 'error',\n\n // disallow negating the left operand of relational operators\n // https://eslint.org/docs/rules/no-unsafe-negation\n 'no-unsafe-negation': 'error',\n\n // disallow use of optional chaining in contexts where the undefined value is not allowed\n // https://eslint.org/docs/rules/no-unsafe-optional-chaining\n 'no-unsafe-optional-chaining': ['error', { disallowArithmeticOperators: true }],\n\n // Disallow Unused Private Class Members\n // https://eslint.org/docs/rules/no-unused-private-class-members\n // TODO: enable once eslint 7 is dropped (which is semver-major)\n 'no-unused-private-class-members': 'off',\n\n // Disallow useless backreferences in regular expressions\n // https://eslint.org/docs/rules/no-useless-backreference\n 'no-useless-backreference': 'error',\n\n // disallow negation of the left operand of an in expression\n // deprecated in favor of no-unsafe-negation\n 'no-negated-in-lhs': 'off',\n\n // Disallow assignments that can lead to race conditions due to usage of await or yield\n // https://eslint.org/docs/rules/require-atomic-updates\n // note: not enabled because it is very buggy\n 'require-atomic-updates': 'off',\n\n // disallow comparisons with the value NaN\n 'use-isnan': 'error',\n\n // ensure JSDoc comments are valid\n // https://eslint.org/docs/rules/valid-jsdoc\n 'valid-jsdoc': 'off',\n\n // ensure that the results of typeof are compared against a valid string\n // https://eslint.org/docs/rules/valid-typeof\n 'valid-typeof': ['error', { requireStringLiterals: true }],\n} satisfies Linter.RulesRecord);\n","import type { Linter } from 'eslint';\n\nexport const es6 = () => ({\n// enforces no braces where they can be omitted\n // https://eslint.org/docs/rules/arrow-body-style\n // TODO: enable requireReturnForObjectLiteral?\n 'arrow-body-style': ['error', 'as-needed', {\n requireReturnForObjectLiteral: false,\n }],\n\n // require parens in arrow function arguments\n // https://eslint.org/docs/rules/arrow-parens\n 'arrow-parens': ['error', 'always'],\n\n // require space before/after arrow function's arrow\n // https://eslint.org/docs/rules/arrow-spacing\n 'arrow-spacing': ['error', { before: true, after: true }],\n\n // verify super() callings in constructors\n 'constructor-super': 'error',\n\n // enforce the spacing around the * in generator functions\n // https://eslint.org/docs/rules/generator-star-spacing\n 'generator-star-spacing': ['error', { before: false, after: true }],\n\n // disallow modifying variables of class declarations\n // https://eslint.org/docs/rules/no-class-assign\n 'no-class-assign': 'error',\n\n // disallow arrow functions where they could be confused with comparisons\n // https://eslint.org/docs/rules/no-confusing-arrow\n 'no-confusing-arrow': ['error', {\n allowParens: true,\n }],\n\n // disallow modifying variables that are declared using const\n 'no-const-assign': 'error',\n\n // disallow duplicate class members\n // https://eslint.org/docs/rules/no-dupe-class-members\n 'no-dupe-class-members': 'error',\n\n // disallow importing from the same path more than once\n // https://eslint.org/docs/rules/no-duplicate-imports\n // replaced by https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md\n 'no-duplicate-imports': 'off',\n\n // disallow symbol constructor\n // https://eslint.org/docs/rules/no-new-symbol\n 'no-new-symbol': 'error',\n\n // Disallow specified names in exports\n // https://eslint.org/docs/rules/no-restricted-exports\n 'no-restricted-exports': ['error', {\n restrictedNamedExports: [\n 'default', // use `export default` to provide a default export\n 'then', // this will cause tons of confusion when your module is dynamically `import()`ed, and will break in most node ESM versions\n ],\n }],\n\n // disallow specific imports\n // https://eslint.org/docs/rules/no-restricted-imports\n 'no-restricted-imports': ['off', {\n paths: [],\n patterns: [],\n }],\n\n // disallow to use this/super before super() calling in constructors.\n // https://eslint.org/docs/rules/no-this-before-super\n 'no-this-before-super': 'error',\n\n // disallow useless computed property keys\n // https://eslint.org/docs/rules/no-useless-computed-key\n 'no-useless-computed-key': 'error',\n\n // disallow unnecessary constructor\n // https://eslint.org/docs/rules/no-useless-constructor\n 'no-useless-constructor': 'error',\n\n // disallow renaming import, export, and destructured assignments to the same name\n // https://eslint.org/docs/rules/no-useless-rename\n 'no-useless-rename': ['error', {\n ignoreDestructuring: false,\n ignoreImport: false,\n ignoreExport: false,\n }],\n\n // require let or const instead of var\n 'no-var': 'error',\n\n // require method and property shorthand syntax for object literals\n // https://eslint.org/docs/rules/object-shorthand\n 'object-shorthand': ['error', 'always', {\n ignoreConstructors: false,\n avoidQuotes: true,\n }],\n\n // suggest using arrow functions as callbacks\n 'prefer-arrow-callback': ['error', {\n allowNamedFunctions: false,\n allowUnboundThis: true,\n }],\n\n // suggest using of const declaration for variables that are never modified after declared\n 'prefer-const': ['error', {\n destructuring: 'any',\n ignoreReadBeforeAssign: true,\n }],\n\n // Prefer destructuring from arrays and objects\n // https://eslint.org/docs/rules/prefer-destructuring\n 'prefer-destructuring': ['error', {\n VariableDeclarator: {\n array: false,\n object: true,\n },\n AssignmentExpression: {\n array: true,\n object: false,\n },\n }, {\n enforceForRenamedProperties: false,\n }],\n\n // disallow parseInt() in favor of binary, octal, and hexadecimal literals\n // https://eslint.org/docs/rules/prefer-numeric-literals\n 'prefer-numeric-literals': 'error',\n\n // suggest using Reflect methods where applicable\n // https://eslint.org/docs/rules/prefer-reflect\n 'prefer-reflect': 'off',\n\n // use rest parameters instead of arguments\n // https://eslint.org/docs/rules/prefer-rest-params\n 'prefer-rest-params': 'error',\n\n // suggest using the spread syntax instead of .apply()\n // https://eslint.org/docs/rules/prefer-spread\n 'prefer-spread': 'error',\n\n // suggest using template literals instead of string concatenation\n // https://eslint.org/docs/rules/prefer-template\n 'prefer-template': 'error',\n\n // disallow generator functions that do not have yield\n // https://eslint.org/docs/rules/require-yield\n 'require-yield': 'error',\n\n // enforce spacing between object rest-spread\n // https://eslint.org/docs/rules/rest-spread-spacing\n 'rest-spread-spacing': ['error', 'never'],\n\n // import sorting\n // https://eslint.org/docs/rules/sort-imports\n 'sort-imports': ['off', {\n ignoreCase: false,\n ignoreDeclarationSort: false,\n ignoreMemberSort: false,\n memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],\n }],\n\n // require a Symbol description\n // https://eslint.org/docs/rules/symbol-description\n 'symbol-description': 'error',\n\n // enforce usage of spacing in template strings\n // https://eslint.org/docs/rules/template-curly-spacing\n 'template-curly-spacing': 'error',\n\n // enforce spacing around the * in yield* expressions\n // https://eslint.org/docs/rules/yield-star-spacing\n 'yield-star-spacing': ['error', 'after'],\n} satisfies Linter.RulesRecord);\n","import type { Linter } from 'eslint';\n\nexport const overrides = () => ({\n // Too many errors in components\n 'class-methods-use-this': 'off',\n // Annoying because it is not always wanted\n 'default-case': 'off',\n // We do not want console.* in production. Disable this rule on a per line basis if needed\n 'no-console': 'error',\n // Often useful in jsx\n 'no-nested-ternary': 'off',\n // Too strict, for pure code prefer the functional plugin\n 'no-param-reassign': ['error', { props: false }],\n // Allow for-of syntax\n // 'no-restricted-syntax': baseConfig.rules['no-restricted-syntax'].filter(\n // // @ts-ignore No typing available\n // ({ selector }) => selector !== 'ForOfStatement',\n // ),\n // underscore is often used (mongodb, etc)\n 'no-underscore-dangle': 'off',\n // Ignore underscore case arguments\n 'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],\n // Allow in some cases https://github.com/airbnb/javascript/issues/1089#issuecomment-1024351821\n 'no-use-before-define': ['error', 'nofunc'],\n // Allow statements, to be compatible with '@typescript-eslint/no-floating-promises' fix\n 'no-void': ['error', { allowAsStatement: true }],\n 'unicode-bom': ['error', 'never'],\n} satisfies Linter.RulesRecord);\n","import type { Linter } from 'eslint';\n\nexport const strict = () => ({\n // babel inserts `'use strict';` for us\n strict: ['error', 'never'],\n} satisfies Linter.RulesRecord);\n","import type { Linter } from 'eslint';\n\nexport const variables = () => ({\n// enforce or disallow variable initializations at definition\n 'init-declarations': 'off',\n\n // disallow the catch clause parameter name being the same as a variable in the outer scope\n 'no-catch-shadow': 'off',\n\n // disallow deletion of variables\n 'no-delete-var': 'error',\n\n // disallow labels that share a name with a variable\n // https://eslint.org/docs/rules/no-label-var\n 'no-label-var': 'error',\n\n // disallow specific globals\n 'no-restricted-globals': [\n 'error',\n {\n name: 'isFinite',\n message:\n 'Use Number.isFinite instead https://github.com/airbnb/javascript#standard-library--isfinite',\n },\n {\n name: 'isNaN',\n message:\n 'Use Number.isNaN instead https://github.com/airbnb/javascript#standard-library--isnan',\n },\n // ...confusingBrowserGlobals.map((g) => ({\n // name: g,\n // message: `Use window.${g} instead. https://github.com/facebook/create-react-app/blob/HEAD/packages/confusing-browser-globals/README.md`,\n // })),\n ],\n\n // disallow declaration of variables already declared in the outer scope\n 'no-shadow': 'error',\n\n // disallow shadowing of names such as arguments\n 'no-shadow-restricted-names': 'error',\n\n // disallow use of undeclared variables unless mentioned in a /*global */ block\n 'no-undef': 'error',\n\n // disallow use of undefined when initializing variables\n 'no-undef-init': 'error',\n\n // disallow use of undefined variable\n // https://eslint.org/docs/rules/no-undefined\n // TODO: enable?\n 'no-undefined': 'off',\n\n // disallow declaration of variables that are not used in the code\n 'no-unused-vars': ['error', { vars: 'all', args: 'after-used', ignoreRestSiblings: true }],\n\n // disallow use of variables before they are defined\n 'no-use-before-define': ['error', { functions: true, classes: true, variables: true }],\n} satisfies Linter.RulesRecord);\n","import { bestPractices } from './esRules/bestPractices.js';\nimport { errors } from './esRules/errors.js';\nimport { es6 } from './esRules/es6.js';\nimport { overrides } from './esRules/overrides.js';\nimport { strict } from './esRules/strict.js';\nimport { variables } from './esRules/variables.js';\n\nexport const esRules = () => ({\n ...bestPractices(),\n ...errors(),\n ...es6(),\n ...strict(),\n ...variables(),\n\n // Must be last\n ...overrides(),\n});\n","import globals from 'globals';\nimport eslintConfig from '@eslint/js';\nimport { Project } from '@w5s/dev';\nimport { type PluginOptionsBase, type Config } from '../type.js';\nimport type { RuleOptions } from '../typegen/jsonc.js';\nimport { esRules } from '../rules/esRules.js';\nimport { esSourceGlob } from '../glob.js';\n\nconst defaultFiles = [esSourceGlob];\n\nexport async function es(options: es.Options) {\n const { recommended = true, rules = {} } = options;\n\n return [\n {\n name: 'w5s/es/setup',\n languageOptions: {\n ecmaVersion: Project.ecmaVersion(),\n globals: {\n ...globals.browser,\n ...globals[`es${Project.ecmaVersion()}`],\n ...globals.node,\n __DEV__: 'readonly',\n __PROD__: 'readonly',\n __TEST__: 'readonly',\n document: 'readonly',\n navigator: 'readonly',\n window: 'readonly',\n },\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n ecmaVersion: Project.ecmaVersion(),\n sourceType: 'module',\n },\n sourceType: 'module',\n },\n linterOptions: {\n reportUnusedDisableDirectives: true,\n },\n },\n {\n name: 'w5s/es/rules',\n files: defaultFiles,\n rules: {\n ...(recommended ? es['recommended'] : {}),\n ...rules,\n },\n },\n ] as [Config, Config] satisfies Array<Config>;\n}\n\n/**\n * Recommended rules\n */\nes['recommended'] = {\n ...eslintConfig.configs.recommended.rules,\n ...esRules(),\n};\n\nexport namespace es {\n export type Rules = RuleOptions;\n\n export interface Options extends PluginOptionsBase<Rules> {}\n}\n","import { eslintIgnores, type ESLintIgnoreOptions } from '@w5s/eslint-config-ignore';\n\nexport async function ignores(options: ignores.Options = {}) {\n const config = await eslintIgnores(options);\n return [config];\n}\n\nexport namespace ignores {\n export type Options = ESLintIgnoreOptions;\n}\n","import { interopDefault } from '@w5s/dev';\nimport { StylisticConfig, type PluginOptionsBase, type Config } from '../type.js';\nimport type { RuleOptions } from '../typegen/jsdoc.js';\nimport { sourceGlob } from '../glob.js';\n\nconst defaultFiles = [sourceGlob];\n\nexport async function jsdoc(options: jsdoc.Options = {}): Promise<readonly Config[]> {\n const [jsdocPlugin] = await Promise.all([interopDefault(import('eslint-plugin-jsdoc'))] as const);\n const {\n files = defaultFiles,\n recommended = true,\n rules = {},\n stylistic = true,\n } = options;\n const { enabled: stylisticEnabled } = StylisticConfig.from(stylistic);\n\n return [\n {\n name: 'w5s/jsdoc/setup',\n plugins: {\n jsdoc: jsdocPlugin,\n },\n },\n {\n name: 'w5s/jsdoc/rules',\n files,\n rules: {\n ...(recommended ? jsdocPlugin.configs['flat/recommended-typescript-flavor'].rules : {}),\n\n ...(recommended\n ? {\n 'jsdoc/no-undefined-types': 'off', // https://github.com/gajus/eslint-plugin-jsdoc/issues/839\n 'jsdoc/require-hyphen-before-param-description': ['warn', 'always'],\n 'jsdoc/require-jsdoc': 'off',\n 'jsdoc/require-param-description': 'off',\n 'jsdoc/require-param-type': 'off',\n 'jsdoc/require-returns': 'off',\n 'jsdoc/valid-types': 'off', // FIXME: reports lots of false positive\n }\n : {}),\n\n // 'strict': ['error', 'safe'],\n ...(stylisticEnabled\n ? {\n ...jsdocPlugin.configs['flat/stylistic-typescript'].rules,\n 'jsdoc/check-alignment': 'warn',\n 'jsdoc/multiline-blocks': 'warn',\n 'jsdoc/tag-lines': ['warn', 'any', { startLines: 1 }],\n }\n : {}),\n ...rules,\n },\n settings: {\n jsdoc: {\n mode: 'typescript',\n },\n },\n },\n ] as [Config, Config] satisfies Array<Config>;\n}\n\nexport namespace jsdoc {\n export type Rules = RuleOptions;\n\n export interface Options extends PluginOptionsBase<Rules> {}\n}\n","/* cSpell:disable */\nimport { interopDefault } from '@w5s/dev';\nimport { StylisticConfig, type PluginOptionsBase, type Config } from '../type.js';\nimport type { RuleOptions } from '../typegen/jsonc.js';\nimport { jsonSourceGlob } from '../glob.js';\n\nconst defaultFiles = [jsonSourceGlob];\n\nexport async function jsonc(options: jsonc.Options = {}): Promise<readonly Config[]> {\n const [jsoncPlugin, jsoncParser] = await Promise.all([\n interopDefault(import('eslint-plugin-jsonc')),\n interopDefault(import('jsonc-eslint-parser')),\n ] as const);\n const {\n files = defaultFiles,\n recommended = true,\n rules = {},\n stylistic = true,\n } = options;\n const { enabled: stylisticEnabled, indent } = StylisticConfig.from(stylistic);\n\n return [\n {\n name: 'w5s/jsonc/setup',\n plugins: {\n jsonc: jsoncPlugin,\n },\n },\n {\n files,\n languageOptions: {\n parser: jsoncParser,\n },\n name: 'w5s/jsonc/rules',\n rules: {\n ...(recommended ? jsoncPlugin.configs['flat/recommended-with-json'][0]?.rules : {}),\n ...(stylisticEnabled\n ? {\n 'jsonc/array-bracket-spacing': ['error', 'never'],\n 'jsonc/comma-dangle': ['error', 'never'],\n 'jsonc/comma-style': ['error', 'last'],\n 'jsonc/indent': ['error', indent],\n 'jsonc/key-spacing': ['error', { afterColon: true, beforeColon: false }],\n 'jsonc/object-curly-newline': ['error', { consistent: true, multiline: true }],\n 'jsonc/object-curly-spacing': ['error', 'always'],\n 'jsonc/object-property-newline': ['error', { allowMultiplePropertiesPerLine: true }],\n 'jsonc/quote-props': 'error',\n 'jsonc/quotes': 'error',\n }\n : {}),\n ...rules,\n },\n },\n stylisticEnabled ? sortPackageJson() : {},\n stylisticEnabled ? sortTsconfigJson() : {},\n ] as [Config, Config, Config, Config] satisfies Array<Config>;\n}\n\nfunction sortTsconfigJson() {\n return {\n files: ['tsconfig*.json'],\n rules: {\n 'jsonc/sort-keys': [\n 'error',\n {\n order: ['$schema', 'display', 'extends', 'compilerOptions', 'include', 'exclude', 'files', 'references'],\n pathPattern: '^$',\n },\n {\n order: { type: 'asc' },\n pathPattern: '.*',\n },\n ],\n },\n };\n}\n\nfunction sortPackageJson() {\n return {\n files: ['package.json'],\n rules: {\n 'jsonc/sort-keys': [\n 'error',\n {\n order: [\n '$schema',\n 'name',\n 'displayName',\n 'version',\n 'private',\n 'description',\n 'categories',\n 'keywords',\n 'homepage',\n 'bugs',\n 'repository',\n 'funding',\n 'license',\n 'qna',\n 'author',\n 'maintainers', // Key order (per item): name, email, url\n 'contributors', // Key order (per item): name, email, url\n 'publisher',\n 'sideEffects',\n 'type',\n 'imports',\n 'exports',\n 'main',\n 'svelte',\n 'umd:main',\n 'jsdelivr',\n 'unpkg',\n 'module',\n 'source',\n 'jsnext:main',\n 'browser',\n 'react-native',\n 'types',\n 'typesVersions',\n 'typings',\n 'style',\n 'example',\n 'examplestyle',\n 'assets',\n 'bin',\n 'man',\n 'directories', // Key order: lib, bin, man, doc, example, test\n 'files', // Unique items\n 'workspaces',\n 'binary', // Key order: module_name, module_path, remote_path, package_name, host\n 'scripts', // Script sort\n 'betterScripts', // Script sort\n 'contributes',\n 'activationEvents', // Unique items\n 'husky', // Sorts the hooks field using git hook sort\n 'simple-git-hooks', // Key sort using git hook sort\n 'pre-commit',\n 'commitlint',\n 'lint-staged',\n 'config',\n 'nodemonConfig',\n 'browserify',\n 'babel',\n 'browserslist',\n 'xo',\n 'prettier', // Prettier sort\n 'eslintConfig', // ESLint sort\n 'eslintIgnore',\n 'npmpackagejsonlint', // Key sort (also recognizes: npmPackageJsonLintConfig, npmpkgjsonlint)\n 'release',\n 'remarkConfig',\n 'stylelint',\n 'ava',\n 'jest',\n 'mocha',\n 'nyc',\n 'tap',\n 'resolutions',\n 'dependencies',\n 'devDependencies',\n 'dependenciesMeta', // Key sort (deep)\n 'peerDependencies',\n 'peerDependenciesMeta', // Key sort (deep)\n 'optionalDependencies',\n 'bundledDependencies',\n 'bundleDependencies',\n 'extensionPack',\n 'extensionDependencies',\n 'flat',\n 'packageManager',\n 'engines',\n 'engineStrict',\n 'volta', // Key order: node, npm, yarn\n 'languageName',\n 'os',\n 'cpu',\n 'preferGlobal',\n 'publishConfig',\n 'icon',\n 'badges', // Key order (per item): description, url, href\n 'galleryBanner',\n 'preview',\n 'markdown',\n ],\n pathPattern: '^$',\n },\n {\n order: ['url', 'email'],\n pathPattern: `^bugs$`,\n },\n ...['repository', 'funding', 'license', 'author'].map((key) => ({\n order: ['type', 'name', 'email', 'url'],\n pathPattern: `^${key}$`,\n })),\n ...['scripts', 'betterScripts'].map((key) => ({\n order: { type: 'asc' },\n pathPattern: `^${key}$`,\n })),\n ...[\n 'bin',\n 'contributes',\n 'commitlint',\n 'config',\n 'nodemonConfig',\n 'browserify',\n 'babel',\n 'xo',\n 'release',\n 'remarkConfig',\n 'ava',\n 'jest',\n 'mocha',\n 'nyc',\n 'tap',\n 'resolutions',\n 'engines',\n 'engineStrict',\n 'preferGlobal',\n 'publishConfig',\n 'galleryBanner',\n ].map((key) => ({\n order: { type: 'asc' },\n pathPattern: `^${key}$`,\n })),\n {\n order: { type: 'asc' },\n pathPattern: '^(?:dev|peer|optional|bundled|extension)?[Dd]ependencies$',\n },\n {\n order: ['types', 'require', 'import'],\n pathPattern: '^exports.*$',\n },\n ],\n },\n };\n}\n\nexport namespace jsonc {\n export type Rules = RuleOptions;\n\n export interface Options extends PluginOptionsBase<Rules> {}\n}\n","import { interopDefault } from '@w5s/dev';\nimport { type PluginOptionsBase, StylisticConfig, type Config } from '../type.js';\nimport type { RuleOptions } from '../typegen/import.js';\n\nexport async function imports(options: imports.Options = {}) {\n const { rules = {}, recommended = true, stylistic = true } = options;\n const { enabled: stylisticEnabled } = StylisticConfig.from(stylistic);\n const [importPlugin] = await Promise.all([interopDefault(import('eslint-plugin-import'))] as const);\n return [\n {\n name: 'w5s/import/rules',\n plugins: {\n import: importPlugin,\n },\n rules: {\n ...(recommended ? imports['recommended'] : {}),\n ...(stylisticEnabled\n ? imports['stylistic']\n : {}),\n ...rules,\n },\n },\n ] as [Config] satisfies Array<Config>;\n}\n\n/**\n * Recommended rules\n */\nimports['recommended'] = {\n // 'import/consistent-type-specifier-style': ['error', 'prefer-inline'],\n 'import/first': 'error',\n 'import/no-duplicates': 'error',\n 'import/no-mutable-exports': 'error',\n 'import/no-named-default': 'error',\n};\n\n/**\n * Stylistic rules\n */\nimports['stylistic'] = {\n 'import/newline-after-import': ['error', { count: 1 }],\n};\n\nexport namespace imports {\n export type Rules = RuleOptions;\n\n export interface Options extends PluginOptionsBase<Rules> {}\n}\n","import { interopDefault, Project } from '@w5s/dev';\nimport { mergeProcessors, processorPassThrough } from 'eslint-merge-processors';\nimport { StylisticConfig, type Config, type PluginOptionsBase } from '../type.js';\nimport type { RuleOptions } from '../typegen/markdown.js';\n\nconst defaultFiles = [`**/${Project.extensionsToGlob(Project.queryExtensions(['markdown']))}`];\n\nexport async function markdown(options: markdown.Options = {}) {\n const [markdownPlugin] = await Promise.all([interopDefault(import('@eslint/markdown'))] as const);\n const {\n language = 'markdown/gfm',\n files = defaultFiles,\n recommended = true,\n rules = {},\n stylistic = true,\n } = options;\n const { enabled: stylisticEnabled } = StylisticConfig.from(stylistic);\n\n return [\n {\n name: 'w5s/markdown/setup',\n plugins: {\n markdown: markdownPlugin,\n },\n },\n {\n files,\n language: language,\n name: 'w5s/markdown/rules',\n // eslint-disable-next-line ts/no-non-null-assertion\n processor: mergeProcessors([markdownPlugin.processors!.markdown, processorPassThrough]),\n rules: {\n ...(recommended ? markdownPlugin.configs.recommended.at(0)?.rules : {}),\n ...(stylisticEnabled ? {} : {}),\n ...rules,\n },\n },\n ] as [Config, Config] satisfies Array<Config>;\n}\n\nexport namespace markdown {\n export type Rules = RuleOptions;\n\n export interface Options extends PluginOptionsBase<Rules> {\n /**\n * Default to 'markdown/gfm' (Github Flavored Markdown)\n */\n language?: 'markdown/gfm' | 'markdown/commonmark';\n }\n}\n","import { ESLintConfig, interopDefault } from '@w5s/dev';\nimport { type Config, type PluginOptionsBase } from '../type.js';\nimport type { RuleOptions } from '../typegen/next.js';\nimport { sourceGlob } from '../glob.js';\n\nconst defaultFiles = [sourceGlob];\n\nexport async function next(options: next.Options = {}) {\n const [nextPlugin] = await Promise.all([\n interopDefault(import('@next/eslint-plugin-next')),\n ] as const);\n const { files = defaultFiles, recommended = true, rules = {} } = options;\n\n return [\n {\n name: 'w5s/next/setup',\n plugins: {\n next: nextPlugin,\n },\n },\n {\n name: 'w5s/next/rules',\n files,\n languageOptions: {\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n },\n sourceType: 'module',\n },\n settings: {\n react: {\n version: 'detect',\n },\n },\n rules: {\n ...(recommended ? ESLintConfig.renameRules(nextPlugin.configs.recommended.rules ?? {}, { '@next/next': 'next' }) : {}),\n ...(recommended ? ESLintConfig.renameRules(nextPlugin.configs['core-web-vitals'].rules ?? {}, { '@next/next': 'next' }) : {}),\n ...rules,\n },\n },\n ] as [Config, Config] satisfies Array<Config>;\n}\n\nexport namespace next {\n export type Rules = RuleOptions;\n\n export interface Options extends Omit<PluginOptionsBase<Rules>, 'stylistic'> {}\n}\n","import { interopDefault } from '@w5s/dev';\nimport { type Config, type PluginOptionsBase } from '../type.js';\nimport type { RuleOptions } from '../typegen/node.js';\n\nexport async function node(options: node.Options = {}) {\n const [nodePlugin] = await Promise.all([\n interopDefault(import('eslint-plugin-n')),\n ] as const);\n const { recommended, rules = {} } = options;\n return [\n {\n name: 'w5s/node/setup',\n plugins: {\n node: nodePlugin,\n },\n },\n {\n name: 'w5s/node/rules',\n rules: {\n ...(recommended\n ? {\n // 'node/handle-callback-err': ['error', '^(err|error|_error)$'],\n 'node/no-deprecated-api': 'error',\n 'node/no-exports-assign': 'error',\n 'node/no-new-require': 'error',\n 'node/no-path-concat': 'error',\n // 'node/no-sync': 'error', FIXME: this rule uses typing without a way to disable it, so it causes errors in JS files\n 'node/prefer-global/buffer': ['error', 'never'],\n 'node/prefer-global/console': ['error', 'always'],\n // 'node/prefer-global/process': ['error', 'never'],\n 'node/prefer-global/url': ['error', 'always'],\n 'node/prefer-global/url-search-params': ['error', 'always'],\n 'node/process-exit-as-throw': 'error',\n }\n : {}),\n\n ...rules,\n },\n },\n ] as [Config, Config] satisfies Array<Config>;\n}\n\nexport namespace node {\n export type Rules = RuleOptions;\n\n export interface Options extends Omit<PluginOptionsBase<Rules>, 'files' | 'stylistic'> {}\n}\n","import { interopDefault } from '@w5s/dev';\nimport { StylisticConfig, type PluginOptionsBase, type Config, type StylisticParameters } from '../type.js';\nimport type { RuleOptions } from '../typegen/style.js';\n\nexport async function stylistic(options: stylistic.Options = {}) {\n const [stylisticPlugin] = await Promise.all([\n interopDefault(import('@stylistic/eslint-plugin')),\n ] as const);\n const { rules = {} } = options;\n const { enabled: stylisticEnabled, indent, jsx, quotes, semi } = StylisticConfig.from(options);\n const config = stylisticEnabled\n ? stylisticPlugin.configs.customize({\n indent,\n jsx,\n pluginName: 'style',\n quotes,\n semi,\n })\n : { rules: {} };\n\n return [\n {\n name: 'w5s/style/setup',\n plugins: {\n style: stylisticPlugin,\n },\n },\n {\n name: 'w5s/style/rules',\n rules: {\n ...(stylisticEnabled\n ? {\n ...config.rules,\n 'style/arrow-parens': ['error', 'always'],\n 'style/brace-style': ['error', '1tbs'],\n 'style/operator-linebreak': ['error', 'after', { overrides: { ':': 'before', '?': 'before', '|>': 'before', '|': 'before' } }],\n 'style/quotes': ['error', quotes ?? StylisticConfig.default.quotes, { avoidEscape: true, allowTemplateLiterals: 'always' }],\n }\n : {}),\n ...rules,\n },\n },\n ] as [Config, Config] satisfies Array<Config>;\n}\n\nexport namespace stylistic {\n export type Rules = RuleOptions;\n\n export interface Options extends Pick<PluginOptionsBase<Rules>, 'rules'>, StylisticParameters {}\n}\n","import { ESLintConfig, interopDefault, Project } from '@w5s/dev';\nimport { StylisticConfig, type PluginOptionsBase, type Config } from '../type.js';\nimport type { RuleOptions } from '../typegen/test.js';\n\nconst sourceGlob = Project.extensionsToGlob(Project.sourceExtensions());\nconst defaultFiles = [\n `**/__mocks__/**/${sourceGlob}`,\n `**/__tests__/**/${sourceGlob}`,\n `**/?(*.)+(spec|test)${sourceGlob.slice(1)}`,\n];\n\nexport async function test(options: test.Options = {}) {\n const [vitestPlugin] = await Promise.all([\n interopDefault(import('@vitest/eslint-plugin')),\n ] as const);\n const { files = defaultFiles, recommended = true, rules = {}, stylistic = true } = options;\n const { enabled: stylisticEnabled } = StylisticConfig.from(stylistic);\n\n return [\n {\n name: 'w5s/test/setup',\n plugins: {\n test: vitestPlugin,\n },\n },\n {\n files,\n name: 'w5s/test/rules',\n rules: {\n ...(recommended\n ? ESLintConfig.renameRules(vitestPlugin.configs.recommended.rules, {\n vitest: 'test',\n })\n : {}),\n 'test/valid-title': ESLintConfig.fixme(undefined),\n\n 'e18e/prefer-static-regex': 'off',\n ...(stylisticEnabled\n ? {}\n : {}),\n ...rules,\n },\n },\n ] as [Config, Config] satisfies Array<Config>;\n}\n\nexport namespace test {\n export type Rules = RuleOptions;\n\n export interface Options extends PluginOptionsBase<Rules> {}\n}\n","import { ESLintConfig } from '@w5s/dev';\nimport { esRules } from './esRules.js';\n\nexport const tsRules = () => {\n const baseRules = esRules();\n\n return ESLintConfig.renameRules(\n {\n // '@typescript-eslint/comma-dangle': [\n // baseRules['comma-dangle'][0],\n // {\n // ...baseRules['comma-dangle'][1],\n // enums: baseRules['comma-dangle'][1].arrays,\n // generics: baseRules['comma-dangle'][1].arrays,\n // tuples: baseRules['comma-dangle'][1].arrays,\n // },\n // ],\n '@typescript-eslint/adjacent-overload-signatures': 'error',\n '@typescript-eslint/ban-ts-comment': [\n 'warn',\n {\n 'minimumDescriptionLength': 3,\n 'ts-check': false,\n 'ts-expect-error': 'allow-with-description',\n 'ts-ignore': 'allow-with-description',\n 'ts-nocheck': true,\n },\n ],\n // '@typescript-eslint/brace-style': baseRules['brace-style'],\n // '@typescript-eslint/comma-dangle': [\n // baseRules['comma-dangle'][0],\n // {\n // ...baseRules['comma-dangle'][1],\n // enums: baseRules['comma-dangle'][1].arrays,\n // generics: baseRules['comma-dangle'][1].arrays,\n // tuples: baseRules['comma-dangle'][1].arrays,\n // },\n // ],\n // '@typescript-eslint/comma-spacing': baseRules['comma-spacing'],\n '@typescript-eslint/consistent-type-assertions': [\n 'error',\n { assertionStyle: 'as', objectLiteralTypeAssertions: 'never' },\n ],\n '@typescript-eslint/default-param-last': baseRules['default-param-last'],\n // '@typescript-eslint/dot-notation': baseRules['dot-notation'], // TODO: Stylistic typechecked\n '@typescript-eslint/explicit-function-return-type': 'off',\n '@typescript-eslint/explicit-module-boundary-types': 'off',\n // '@typescript-eslint/func-call-spacing': baseRules['func-call-spacing'],\n // '@typescript-eslint/indent': baseRules.indent,\n // '@typescript-eslint/keyword-spacing': baseRules['keyword-spacing'],\n // '@typescript-eslint/lines-between-class-members': baseRules['lines-between-class-members'],\n // '@typescript-eslint/member-delimiter-style': 'error', // TODO: @stylistic/member-delimiter-style\n '@typescript-eslint/naming-convention': [\n 'error',\n // {\n // format: ['PascalCase', 'camelCase'],\n // leadingUnderscore: 'allow',\n // selector: 'default',\n // trailingUnderscore: 'allow',\n // },\n {\n format: ['PascalCase', 'camelCase', 'UPPER_CASE'],\n leadingUnderscore: 'allow',\n selector: 'variable',\n trailingUnderscore: 'allow',\n },\n // {\n // format: ['PascalCase', 'camelCase', 'UPPER_CASE'],\n // leadingUnderscore: 'allowSingleOrDouble',\n // selector: 'memberLike',\n // trailingUnderscore: 'allowDouble',\n // },\n {\n format: ['PascalCase'],\n selector: 'typeLike',\n },\n ],\n // '@typescript-eslint/no-array-constructor': baseRules['no-array-constructor'],\n // '@typescript-eslint/no-base-to-string': 'error', // TODO: require type check\n '@typescript-eslint/no-dupe-class-members': baseRules['no-dupe-class-members'],\n '@typescript-eslint/no-empty-function': baseRules['no-empty-function'],\n '@typescript-eslint/no-empty-interface': ['error', { allowSingleExtends: true }],\n '@typescript-eslint/no-empty-object-type': 'off',\n '@typescript-eslint/no-explicit-any': 'off', // if any is explicit then it's wanted\n '@typescript-eslint/no-extra-parens': baseRules['no-extra-parens'],\n // '@typescript-eslint/no-extra-semi': baseRules['no-extra-semi'], // TODO: @stylistic/no-extra-semi\n '@typescript-eslint/no-inferrable-types': 'error',\n '@typescript-eslint/no-loop-func': baseRules['no-loop-func'],\n '@typescript-eslint/no-loss-of-precision': baseRules['no-loss-of-precision'],\n '@typescript-eslint/no-magic-numbers': baseRules['no-magic-numbers'],\n '@typescript-eslint/no-misused-new': 'error',\n '@typescript-eslint/no-namespace': 'off', // We don't agree with community, namespaces are great and not deprecated\n '@typescript-eslint/no-non-null-assertion': 'error',\n '@typescript-eslint/no-redeclare': ESLintConfig.fixme(baseRules['no-redeclare']),\n '@typescript-eslint/no-require-imports': 'error',\n '@typescript-eslint/no-shadow': baseRules['no-shadow'],\n '@typescript-eslint/no-this-alias': 'error',\n // '@typescript-eslint/no-unnecessary-condition': 'error',// TODO: require type check\n // '@typescript-eslint/no-unsafe-argument': 'error', // TODO: recommended type check\n '@typescript-eslint/no-unused-expressions': baseRules['no-unused-expressions'],\n '@typescript-eslint/no-unused-vars': baseRules['no-unused-vars'],\n '@typescript-eslint/no-use-before-define': baseRules['no-use-before-define'],\n '@typescript-eslint/no-useless-constructor': baseRules['no-useless-constructor'],\n '@typescript-eslint/no-var-requires': 'error',\n '@typescript-eslint/no-wrapper-object-types': 'error',\n // '@typescript-eslint/object-curly-spacing': baseRules['object-curly-spacing'],\n // '@typescript-eslint/only-throw-error': baseRules['no-throw-literal'], //TODO: Recommended type check\n '@typescript-eslint/prefer-namespace-keyword': 'error',\n // '@typescript-eslint/prefer-reduce-type-parameter': 'error', // TODO: strict type check\n // '@typescript-eslint/quotes': baseRules.quotes,\n '@typescript-eslint/require-await': baseRules['require-await'],\n // '@typescript-eslint/return-await': baseRules['no-return-await'], // TODO: strict type check\n // '@typescript-eslint/semi': baseRules.semi,\n // '@typescript-eslint/space-before-function-paren': baseRules['space-before-function-paren'],\n // '@typescript-eslint/space-infix-ops': baseRules['space-infix-ops'],\n // '@typescript-eslint/strict-boolean-expressions': [\n // 'error',\n // {\n // allowNullableObject: false,\n // allowNumber: false,\n // allowString: false,\n // },\n // ], //TODO: require typing\n // '@typescript-eslint/switch-exhaustiveness-check': 'error',//TODO: require type check\n '@typescript-eslint/triple-slash-reference': 'error',\n // '@typescript-eslint/type-annotation-spacing': 'error',// TODO: @stylistic/type-annotation-spacing\n },\n {\n '@typescript-eslint': 'ts',\n },\n );\n};\n","/* eslint-disable ts/no-non-null-assertion */\nimport { ESLintConfig, interopDefault } from '@w5s/dev';\nimport { StylisticConfig, type PluginOptionsBase, type Config } from '../type.js';\nimport type { RuleOptions } from '../typegen/ts.js';\nimport { tsRules } from '../rules/tsRules.js';\nimport { tsSourceGlob } from '../glob.js';\n\nconst defaultFiles = [tsSourceGlob];\n\nexport async function ts(options: ts.Options = {}) {\n const [tsPlugin, tsParser] = await Promise.all([\n interopDefault(import('@typescript-eslint/eslint-plugin')),\n interopDefault(import('@typescript-eslint/parser')),\n ] as const);\n const tsRecommendedRules = tsPlugin.configs['eslint-recommended']!.overrides![0]!.rules!;\n const tsStrictRules = tsPlugin.configs['strict']!.rules!;\n const tsTypeCheckedRules = tsPlugin.configs['recommended-type-checked-only']!.rules!;\n const { files = defaultFiles, rules = {}, stylistic = true, typeChecked = false } = options;\n const { enabled: stylisticEnabled } = StylisticConfig.from(stylistic);\n\n return [\n {\n name: 'w5s/ts/setup',\n plugins: {\n ts: tsPlugin,\n },\n },\n {\n files,\n languageOptions: {\n parser: tsParser,\n parserOptions: {\n sourceType: 'module',\n // extraFileExtensions: componentExts.map(ext => `.${ext}`),\n // ...typeAware\n // ? {\n // projectService: {\n // allowDefaultProject: ['./*.js'],\n // defaultProject: tsconfigPath,\n // },\n // tsconfigRootDir: process.cwd(),\n // }\n // : {},\n // ...parserOptions as any,\n },\n },\n name: 'w5s/ts/rules',\n rules: {\n ...ESLintConfig.renameRules(tsRecommendedRules, { '@typescript-eslint': 'ts' }),\n ...ESLintConfig.renameRules(tsStrictRules, { '@typescript-eslint': 'ts' }),\n ...tsRules(),\n ...(stylisticEnabled ? {} : {}),\n ...rules,\n },\n },\n ...(typeChecked\n ? ([\n {\n files: defaultFiles,\n // ignores: ignoresTypeAware,\n name: 'w5s/ts/rules-type-checked',\n rules: {\n ...ESLintConfig.renameRules(tsTypeCheckedRules, { '@typescript-eslint': 'ts' }),\n },\n },\n ] as const)\n : []),\n ] as [Config, Config] | [Config, Config, Config] satisfies Array<Config>;\n}\nexport namespace ts {\n export type Rules = RuleOptions;\n\n export interface Options extends PluginOptionsBase<Rules> {\n typeChecked?: boolean;\n }\n}\n","import { interopDefault } from '@w5s/dev';\nimport { StylisticConfig, type Config, type PluginOptionsBase } from '../type.js';\nimport type { RuleOptions } from '../typegen/unicorn.js';\nimport { sourceGlob } from '../glob.js';\n\nconst defaultFiles = [sourceGlob];\n\nexport async function unicorn(options: unicorn.Options = {}) {\n const [unicornPlugin] = await Promise.all([interopDefault(import('eslint-plugin-unicorn'))] as const);\n const { files = defaultFiles, recommended = true, rules = {}, stylistic = true } = options;\n const { enabled: stylisticEnabled } = StylisticConfig.from(stylistic);\n\n return [\n {\n name: 'w5s/unicorn/setup',\n plugins: {\n unicorn: unicornPlugin,\n },\n },\n {\n name: 'w5s/unicorn/rules',\n files,\n rules: {\n ...(recommended ? unicornPlugin.configs.recommended?.rules : {}),\n // Disabled for safety\n 'unicorn/consistent-destructuring': 'off',\n 'unicorn/consistent-function-scoping': 'off', // Too many false positive\n 'unicorn/filename-case': 'off',\n 'unicorn/import-index': 'off', // Not playing well with ES Module\n 'unicorn/new-for-builtins': 'off', // error, @see https://github.com/sindresorhus/eslint-plugin-unicorn/issues/122\n 'unicorn/no-array-callback-reference': 'off', // Many false positive reported\n 'unicorn/no-array-for-each': 'off', // This rule could change browser compatibility\n 'unicorn/no-array-method-this-argument': 'off', // Many false positive reported\n 'unicorn/no-array-reduce': 'off', // Array#reduce can be used\n 'unicorn/no-console-spaces': 'off',\n 'unicorn/no-fn-reference-in-iterator': 'off', // error ?\n 'unicorn/no-nested-ternary': 'off',\n 'unicorn/no-null': 'off', // https://github.com/sindresorhus/eslint-plugin-unicorn/issues/612\n 'unicorn/no-object-as-default-parameter': 'off',\n 'unicorn/no-process-exit': 'off',\n 'unicorn/no-unreadable-array-destructuring': 'off',\n 'unicorn/no-useless-undefined': 'off',\n 'unicorn/prefer-add-event-listener': 'off',\n 'unicorn/prefer-default-parameters': 'off',\n 'unicorn/prefer-set-has': 'off',\n 'unicorn/prevent-abbreviations': 'off', // This rule is so dangerous : it potentially break code while fixing in many cases !!\n 'unicorn/throw-new-error': 'off', // Creating errors with call signature is OK\n ...(stylisticEnabled ? {} : {}),\n ...rules,\n },\n },\n // TODO: move to another file ?\n {\n name: 'w5s/unicorn/overrides',\n files: ['**/*.config.cjs', '**/*.config.js'],\n rules: {\n 'unicorn/prefer-module': 'off',\n },\n },\n ] as [Config, Config, Config] satisfies Array<Config>;\n}\n\nexport namespace unicorn {\n export type Rules = RuleOptions;\n\n export interface Options extends PluginOptionsBase<Rules> {}\n}\n","import { interopDefault } from '@w5s/dev';\nimport { StylisticConfig, type Config, type PluginOptionsBase } from '../type.js';\nimport type { RuleOptions } from '../typegen/yml.js';\nimport { ymlSourceGlob } from '../glob.js';\n\nconst defaultFiles = [ymlSourceGlob];\n\nexport async function yml(options: yml.Options = {}) {\n const [ymlPlugin] = await Promise.all([interopDefault(import('eslint-plugin-yml'))] as const);\n const { files = defaultFiles, recommended = true, rules = {}, stylistic = true } = options;\n const { enabled: stylisticEnabled, indent, quotes } = StylisticConfig.from(stylistic);\n\n return [\n {\n name: 'w5s/yml/setup',\n plugins: {\n yml: ymlPlugin,\n },\n },\n {\n files,\n language: 'yml/yaml',\n name: 'w5s/yml/rules',\n rules: {\n ...(recommended\n ? ymlPlugin.configs['recommended'].reduce(\n (acc, config) => ({ ...acc, ...config.rules }),\n // eslint-disable-next-line ts/consistent-type-assertions\n {} as RuleOptions,\n )\n : {}),\n ...(stylisticEnabled\n ? {\n 'style/spaced-comment': 'off', // Fix\n\n 'yml/block-mapping-question-indicator-newline': 'error',\n 'yml/block-sequence-hyphen-indicator-newline': 'error',\n 'yml/flow-mapping-curly-newline': 'error',\n 'yml/flow-mapping-curly-spacing': 'error',\n 'yml/flow-sequence-bracket-newline': 'error',\n 'yml/flow-sequence-bracket-spacing': 'error',\n 'yml/indent': ['error', indent === 'tab' ? 2 : indent],\n 'yml/key-spacing': ['error', { afterColon: true, beforeColon: false }],\n 'yml/no-tab-indent': 'error',\n 'yml/quotes': [\n 'error',\n { avoidEscape: true, prefer: quotes === 'backtick' ? ('single' as const) : quotes },\n ],\n 'yml/spaced-comment': 'error',\n }\n : {}),\n ...rules,\n },\n },\n ] as [Config, Config] satisfies Array<Config>;\n}\n\nexport namespace yml {\n export type Rules = RuleOptions;\n\n export interface Options extends PluginOptionsBase<Rules> {}\n}\n","import { ESLintConfig } from '@w5s/dev';\nimport { jsdoc, jsonc, ignores, imports, markdown, next, node, ts, yml, unicorn, stylistic, es, e18e, test } from './config.js';\nimport type { Config } from './type.js';\n\nexport interface DefineConfigOptions extends ignores.Options {\n e18e?: boolean | e18e.Options;\n es?: boolean | es.Options;\n import?: boolean | imports.Options;\n markdown?: boolean | markdown.Options;\n jsdoc?: boolean | jsdoc.Options;\n jsonc?: boolean | jsonc.Options;\n next?: boolean | next.Options;\n node?: boolean | node.Options;\n stylistic?: boolean | stylistic.Options;\n test?: boolean | test.Options;\n ts?: boolean | ts.Options;\n unicorn?: boolean | unicorn.Options;\n yml?: boolean | yml.Options;\n}\n\nexport async function defineConfig(options: DefineConfigOptions = {}) {\n const stylisticOptions =\n typeof options.stylistic === 'boolean' ? { enabled: options.stylistic } : { enabled: true, ...options.stylistic };\n const withDefaultStylistic = <T>(_options: T) => ({ stylistic: stylisticOptions, ..._options });\n const toOption = <T extends {}>(optionsOrBoolean: T | boolean | undefined) =>\n withDefaultStylistic(\n (typeof optionsOrBoolean === 'boolean'\n ? { enabled: optionsOrBoolean }\n : { enabled: true, ...optionsOrBoolean }) as T & { enabled: boolean },\n );\n const includeEnabled = <T extends { enabled?: boolean }, R extends Promise<readonly Config[]>>(factory: (config: T) => R, input: T) =>\n input.enabled ? [factory(input)] : [];\n\n return ESLintConfig.concat(\n ...includeEnabled(e18e, toOption(options.e18e)),\n ...includeEnabled(es, toOption(options.es)),\n ...includeEnabled(ts, toOption(options.ts)),\n ...includeEnabled(ignores, toOption(options)),\n ...includeEnabled(jsonc, toOption(options.jsonc)),\n ...includeEnabled(jsdoc, toOption(options.jsdoc)),\n ...includeEnabled(stylistic, toOption(options.stylistic)),\n ...includeEnabled(imports, toOption(options.import)),\n ...includeEnabled(markdown, toOption(options.markdown)),\n ...includeEnabled(next, toOption(options.next)),\n ...includeEnabled(node, toOption(options.node)),\n ...includeEnabled(unicorn, toOption(options.unicorn)),\n ...includeEnabled(yml, toOption(options.yml)),\n ...includeEnabled(test, toOption(options.test)),\n );\n}\n","export const meta = Object.freeze({\n // @ts-ignore - these variables are injected at build time\n name: (typeof __PACKAGE_NAME__ === 'undefined' ? '' : __PACKAGE_NAME__) as string,\n // @ts-ignore - these variables are injected at build time\n version: (typeof __PACKAGE_VERSION__ === 'undefined' ? '' : __PACKAGE_VERSION__) as string,\n // @ts-ignore - these variables are injected at build time\n buildNumber: 1 as number, // (typeof __PACKAGE_BUILD_NUMBER__ === 'undefined' ? 0 : __PACKAGE_BUILD_NUMBER__) as number,\n});\n"],"mappings":";;;;;;;AAaA,MAAM,gBAAgB;CACpB,SAAS;CACT,QAAQ,eAAe,YAAY;CACnC,QAAQ,e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C;KACnF,qBAAqB;KACrB,gBAAgB;IAClB,IACA,CAAC;IACL,GAAG;GACL;EACF;EACA,mBAAmB,gBAAgB,IAAI,CAAC;EACxC,mBAAmB,iBAAiB,IAAI,CAAC;CAC3C;AACF;AAEA,SAAS,mBAAmB;CAC1B,OAAO;EACL,OAAO,CAAC,gBAAgB;EACxB,OAAO,EACL,mBAAmB;GACjB;GACA;IACE,OAAO;KAAC;KAAW;KAAW;KAAW;KAAmB;KAAW;KAAW;KAAS;IAAY;IACvG,aAAa;GACf;GACA;IACE,OAAO,EAAE,MAAM,MAAM;IACrB,aAAa;GACf;EACF,EACF;CACF;AACF;AAEA,SAAS,kBAAkB;CACzB,OAAO;EACL,OAAO,CAAC,cAAc;EACtB,OAAO,EACL,mBAAmB;GACjB;GACA;IACE,OAAO;KACL;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;IACF;IACA,aAAa;GACf;GACA;IACE,OAAO,CAAC,OAAO,OAAO;IACtB,aAAa;GACf;GACA,GAAG;IAAC;IAAc;IAAW;IAAW;GAAQ,CAAC,CAAC,KAAK,SAAS;IAC9D,OAAO;KAAC;KAAQ;KAAQ;KAAS;IAAK;IACtC,aAAa,IAAI,IAAI;GACvB,EAAE;GACF,GAAG,CAAC,WAAW,eAAe,CAAC,CAAC,K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AEtC,OAAO,aAAa,OAClB,GAAG,eAAe,MAAM,SAAS,QAAQ,IAAI,CAAC,GAC9C,GAAG,eAAe,IAAI,SAAS,QAAQ,EAAE,CAAC,GAC1C,GAAG,eAAe,IAAI,SAAS,QAAQ,EAAE,CAAC,GAC1C,GAAG,eAAe,SAAS,SAAS,OAAO,CAAC,GAC5C,GAAG,eAAe,OAAO,SAAS,QAAQ,KAAK,CAAC,GAChD,GAAG,eAAe,OAAO,SAAS,QAAQ,KAAK,CAAC,GAChD,GAAG,eAAe,WAAW,SAAS,QAAQ,SAAS,CAAC,GACxD,GAAG,eAAe,SAAS,SAAS,QAAQ,MAAM,CAAC,GACnD,GAAG,eAAe,UAAU,SAAS,QAAQ,QAAQ,CAAC,GACtD,GAAG,eAAe,MAAM,SAAS,QAAQ,IAAI,CAAC,GAC9C,GAAG,eAAe,MAAM,SAAS,QAAQ,IAAI,CAAC,GAC9C,GAAG,eAAe,SAAS,SAAS,QAAQ,OAAO,CAAC,GACpD,GAAG,eAAe,KAAK,SAAS,QAAQ,GAAG,CAAC,GAC5C,GAAG,eAAe,MAAM,SAAS,QAAQ,IAAI,CAAC,CAChD;AACF;;;ACjDA,MAAa,OAAO,OAAO,OAAO;CAEhC,MAAA;CAEA,SAAA;CAEA,aAAa;AACf,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/eslint-config",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
4
4
  "description": "ESLint configuration presets",
5
5
  "keywords": [
6
6
  "eslint",
@@ -41,23 +41,24 @@
41
41
  "postpack": "clean-package restore"
42
42
  },
43
43
  "dependencies": {
44
+ "@e18e/eslint-plugin": "^0.5.0",
44
45
  "@eslint/js": "^10.0.0",
45
46
  "@eslint/markdown": "^8.0.0",
47
+ "@next/eslint-plugin-next": "^16.0.0",
46
48
  "@stylistic/eslint-plugin": "^5.0.0",
47
49
  "@typescript-eslint/eslint-plugin": "^8.0.0",
48
50
  "@typescript-eslint/parser": "^8.0.0",
49
51
  "@vitest/eslint-plugin": "^1.0.0",
50
- "@w5s/dev": "^3.3.3",
51
- "@w5s/eslint-config-ignore": "^1.1.0",
52
- "@w5s/prettier-config": "^3.1.7",
52
+ "@w5s/dev": "^3.4.0",
53
+ "@w5s/eslint-config-ignore": "^1.2.0",
54
+ "@w5s/prettier-config": "^3.1.8",
53
55
  "eslint-merge-processors": "^2.0.0",
54
56
  "eslint-plugin-import": "~2.32.0",
55
57
  "eslint-plugin-jsdoc": "~63.0.0",
56
58
  "eslint-plugin-jsonc": "~3.2.0",
57
- "eslint-plugin-n": "~18.0.0",
59
+ "eslint-plugin-n": "~18.1.0",
58
60
  "eslint-plugin-unicorn": "~64.0.0",
59
61
  "eslint-plugin-yml": "~3.4.0",
60
- "find-up": "^8.0.0",
61
62
  "globals": "^17.0.0",
62
63
  "jsonc-eslint-parser": "^3.0.0",
63
64
  "parse-gitignore": "^2.0.0",
@@ -82,5 +83,5 @@
82
83
  "access": "public"
83
84
  },
84
85
  "sideEffect": false,
85
- "gitHead": "fc447207d2af5368f809a9a90d0e4056344b812a"
86
+ "gitHead": "9102f7149f4d1faa4a9c96e7e910cbb296bd63e5"
86
87
  }