@2digits/eslint-config 4.3.2 → 4.3.3

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,"sources":["../src/globs.ts","../src/configs/antfu.ts","../src/configs/boolean.ts","../src/constants.ts","../src/configs/comments.ts","../src/configs/css.ts","../src/utils.ts","../src/configs/drizzle.ts","../src/configs/graphql.ts","../src/configs/ignores.ts","../src/configs/javascript.ts","../src/configs/jsdoc.ts","../src/configs/jsonc.ts","../src/configs/markdown.ts","../src/configs/next.ts","../src/configs/node.ts","../src/configs/pnpm.ts","../src/configs/prettier.ts","../src/configs/react.ts","../src/configs/regexp.ts","../src/configs/sonar.ts","../src/configs/storybook.ts","../src/configs/tailwind.ts","../src/configs/tanstack.ts","../src/configs/turbo.ts","../src/configs/typescript.ts","../src/configs/unicorn.ts","../src/configs/yaml.ts","../src/factory.ts"],"names":["GLOB_SRC","GLOB_TS","GLOB_TSX","GLOB_STORIES","GLOB_JSON","GLOB_JSON5","GLOB_JSONC","GLOB_CSS","GLOB_YAML","GLOB_MARKDOWN","GLOB_MARKDOWN_IN_MARKDOWN","GLOB_MARKDOWN_CODE","GLOB_EXCLUDE","antfu","pluginAntfu","boolean","pluginDeMorgan","PluginNameMap","recommended","renamePluginsInRules","configs","comments","pluginComments","css","plugin","tailwindSyntax","interopDefault","m","resolved","drizzle","options","overrides","drizzleObjectName","fixupPluginRules","graphql","files","gql","gqlSchema","loadConfig","g","flatRecommended","rules","rule","ruleName","ignores","gitIgnore","composer","javascript","stylistic","globals","eslint","jsdoc","jsonc","config","SHARED_OPTIONS","collectRules","parser","markdown","mergeProcessors","processorPassThrough","parserPlain","code","next","parserOptions","node","default","pnpm","jsoncParser","yamlParser","prettier","react","tsconfigRootDir","reactCompiler","pluginReact","pluginReactHooks","pluginReactCompiler","plugins","regexp","pluginRegexp","sonar","storybook","storybookDirectory","languageOptions","tailwind","tailwindcss","tailwindFunctions","findUp","tanstack","turbo","typescript","twoDigits","strictConfig","renamePluginsInConfigs","unicorn","yaml","yml","enabled","defaults","enable","rest","userConfig","pnpmPromise","FlatConfigComposer","isPackageExists","typescriptOptions"],"mappings":"mhCAAO,IAAMA,CAAAA,CAAW,wBAEXC,CAAU,CAAA,gBAAA,CACVC,CAAW,CAAA,iBAAA,CAEXC,CAAe,CAAA,kBAAA,CAEfC,EAAY,WACZC,CAAAA,CAAAA,CAAa,YACbC,CAAAA,CAAAA,CAAa,YAEbC,CAAAA,CAAAA,CAAW,WAEXC,CAAY,CAAA,cAAA,CAEZC,CAAgB,CAAA,SAAA,CAChBC,CAA4B,CAAA,cAAA,CAC5BC,EAAqB,CAAGF,EAAAA,CAAa,CAAIT,CAAAA,EAAAA,CAAQ,CAEjDY,CAAAA,CAAAA,CAAAA,CAAe,CAC1B,iBACA,CAAA,SAAA,CACA,sBACA,CAAA,cAAA,CACA,mBACA,CAAA,cAAA,CACA,cAEA,WACA,CAAA,aAAA,CACA,SACA,CAAA,UAAA,CACA,QACA,CAAA,SAAA,CACA,cACA,qBACA,CAAA,UAAA,CACA,UACA,CAAA,YAAA,CACA,eACA,CAAA,UAAA,CACA,YACA,YACA,CAAA,kBAAA,CACA,UAEA,CAAA,kBAAA,CACA,YACA,CAAA,aAAA,CACA,mBACA,yBACA,CAAA,oBACF,CC/CO,CAAA,SAASC,CAA+B,EAAA,CAC7C,OAAO,CACL,CACE,KAAO,CAAA,CAACb,CAAQ,CAAA,CAChB,KAAM,eACN,CAAA,OAAA,CAAS,CACP,KAAA,CAAOc,EACT,CAAA,CACA,MAAO,CACL,kBAAA,CAAoB,OACpB,CAAA,0BAAA,CAA4B,OAC9B,CACF,CACF,CACF,CCdO,SAASC,GAAiC,CAC/C,OAAO,CACL,CACE,KAAO,CAAA,CAACf,CAAQ,CAChB,CAAA,IAAA,CAAM,iBACN,CAAA,OAAA,CAAS,CACP,OAAA,CAASgB,CACX,CACA,CAAA,KAAA,C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AAA,CAAAA,CAAQlE,EAAQ,IAAM,CAAA,CAAC,CAAE,MAAMuE,CAAY,CAAA,GAC7CvD,EAAWA,CAAS,CAAA,MAAA,CAAOoB,EAAK,EAAC,CAGnCpB,CAAAA,CAAAA,CAAAA,CAAWA,EAAS,MAAO,CAAA,GAAGsD,CAAU,CAAA,CAEpCG,eAAgB,CAAA,UAAU,IAC5BzD,CAAWA,CAAAA,CAAAA,CAAS,MAAOuB,CAAAA,EAAAA,EAAU,CAAA,CAAA,CAGhCvB,EAAS,aAAc7B,CAAAA,CAAa,CAAE,CAAA,SAAA,EAC/C","file":"index.js","sourcesContent":["export const GLOB_SRC = '**/*.?([cm])[jt]s?(x)';\n\nexport const GLOB_TS = '**/*.?([cm])ts';\nexport const GLOB_TSX = '**/*.?([cm])tsx';\n\nexport const GLOB_STORIES = '**/*.stories.tsx';\n\nexport const GLOB_JSON = '**/*.json';\nexport const GLOB_JSON5 = '**/*.json5';\nexport const GLOB_JSONC = '**/*.jsonc';\n\nexport const GLOB_CSS = '**/*.css';\n\nexport const GLOB_YAML = '**/*.y?(a)ml';\n\nexport const GLOB_MARKDOWN = '**/*.md';\nexport const GLOB_MARKDOWN_IN_MARKDOWN = '**/*.md/*.md';\nexport const GLOB_MARKDOWN_CODE = `${GLOB_MARKDOWN}/${GLOB_SRC}`;\n\nexport const GLOB_EXCLUDE = [\n '**/node_modules',\n '**/dist',\n '**/package-lock.json',\n '**/yarn.lock',\n '**/pnpm-lock.yaml',\n '**/bun.lockb',\n '**/bun.lock',\n\n '**/output',\n '**/coverage',\n '**/temp',\n '**/.temp',\n '**/tmp',\n '**/.tmp',\n '**/.history',\n '**/.vitepress/cache',\n '**/.nuxt',\n '**/.next',\n '**/.vercel',\n '**/.changeset',\n '**/.idea',\n '**/.cache',\n '**/.output',\n '**/.vite-inspect',\n '**/.yarn',\n\n '**/CHANGELOG*.md',\n '**/*.min.*',\n '**/LICENSE*',\n '**/__snapshots__',\n '**/auto-import?(s).d.ts',\n '**/components.d.ts',\n] as const;\n","import pluginAntfu from 'eslint-plugin-antfu';\n\nimport { GLOB_SRC } from '../globs';\nimport type { TypedFlatConfigItem } from '../types';\n\nexport function antfu(): TypedFlatConfigItem[] {\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:antfu',\n plugins: {\n antfu: pluginAntfu,\n },\n rules: {\n 'antfu/if-newline': 'error',\n 'antfu/top-level-function': 'error',\n },\n },\n ];\n}\n","import pluginDeMorgan from 'eslint-plugin-de-morgan';\n\nimport { GLOB_SRC } from '../globs';\nimport type { TypedFlatConfigItem } from '../types';\n\nexport function boolean(): TypedFlatConfigItem[] {\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:boolean',\n plugins: {\n boolean: pluginDeMorgan,\n },\n rules: {\n ...pluginDeMorgan.configs.recommended.rules,\n },\n },\n ];\n}\n","export const PluginNameMap = {\n '@next/next': 'next',\n '@eslint-react/naming-convention': 'react-naming-convention',\n '@eslint-react/hooks-extra': 'react-hooks-extra',\n '@eslint-react/dom': 'react-dom',\n '@eslint-react/web-api': 'react-web-api',\n '@eslint-react': 'react-extra',\n 'react-hooks': 'react-hooks',\n 'react-compiler': 'react-compiler',\n '@stylistic/eslint-plugin': 'stylistic',\n '@typescript-eslint': 'ts',\n node: 'node',\n '@eslint-community/eslint-comments': 'comments',\n storybook: 'storybook',\n turbo: 'turbo',\n jsdoc: 'jsdoc',\n unicorn: 'unicorn',\n tailwindcss: 'tailwindcss',\n '@tanstack/query': 'tanstack',\n '@2digits': '@2digits',\n '@graphql-eslint': 'gql',\n sonarjs: 'sonar',\n drizzle: 'drizzle',\n 'de-morgan': 'boolean',\n} as const;\n","import pluginComments from '@eslint-community/eslint-plugin-eslint-comments';\nimport configs from '@eslint-community/eslint-plugin-eslint-comments/configs';\nimport { renamePluginsInRules } from 'eslint-flat-config-utils';\n\nimport { PluginNameMap } from '../constants';\nimport { GLOB_SRC } from '../globs';\nimport type { TypedFlatConfigItem } from '../types';\n\nconst recommended = renamePluginsInRules(configs.recommended.rules as never, PluginNameMap);\n\nexport function comments(): TypedFlatConfigItem[] {\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:comments',\n plugins: {\n comments: pluginComments,\n },\n rules: {\n ...recommended,\n\n 'comments/no-unused-disable': 'error',\n 'comments/disable-enable-pair': ['error', { allowWholeFile: true }],\n },\n },\n ];\n}\n","import plugin from '@eslint/css';\nimport { tailwindSyntax } from '@eslint/css/syntax';\n\nimport { GLOB_CSS } from '../globs';\nimport type { TypedFlatConfigItem } from '../types';\n\nexport function css(): TypedFlatConfigItem[] {\n return [\n {\n name: '2digits:css',\n files: [GLOB_CSS],\n language: 'css/css',\n plugins: {\n css: plugin,\n },\n languageOptions: {\n tolerant: true,\n customSyntax: tailwindSyntax,\n },\n rules: {\n ...plugin.configs.recommended.rules,\n },\n },\n ];\n}\n","import type { Awaitable } from 'eslint-flat-config-utils';\n\nexport async function interopDefault<T>(m: Awaitable<T>): Promise<T extends { default: infer U } ? U : T> {\n const resolved = await m;\n\n return ((resolved as Record<string, unknown>).default || resolved) as never;\n}\n","import { fixupPluginRules } from '@eslint/compat';\n\nimport { GLOB_SRC } from '../globs';\nimport type { OptionsWithDrizzle, TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function drizzle(options: OptionsWithDrizzle = {}): Promise<TypedFlatConfigItem[]> {\n const { overrides = {}, drizzleObjectName = ['drizzle', 'db'] } = options;\n\n const drizzle = await interopDefault(import('eslint-plugin-drizzle'));\n\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:drizzle',\n plugins: {\n drizzle: fixupPluginRules(drizzle as never),\n },\n rules: {\n 'drizzle/enforce-update-with-where': ['error', { drizzleObjectName }],\n 'drizzle/enforce-delete-with-where': ['error', { drizzleObjectName }],\n\n ...overrides,\n },\n },\n ];\n}\n","import { renamePluginsInRules } from 'eslint-flat-config-utils';\nimport { loadConfig } from 'graphql-config';\n\nimport { PluginNameMap } from '../constants';\nimport type { OptionsWithFiles, TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function graphql(options: OptionsWithFiles = {}): Promise<TypedFlatConfigItem[]> {\n const { overrides = {}, files = ['**/*.graphql', '**/*.gql'] } = options;\n\n const [gql, gqlSchema] = await Promise.all([\n interopDefault(import('@graphql-eslint/eslint-plugin')),\n loadConfig({ throwOnEmpty: false, throwOnMissing: false }).then((g) => g?.getDefault().schema),\n ]);\n\n const flatRecommended = gql.configs['flat/operations-recommended'].rules;\n\n let rules = {} as typeof flatRecommended;\n\n if (gqlSchema) {\n rules = flatRecommended;\n } else {\n for (const rule of Object.keys(flatRecommended) as Array<keyof typeof rules>) {\n const ruleName = rule.replace('@graphql-eslint/', '') as keyof typeof gql.rules;\n\n if (\n ruleName in gql.rules\n && (gql.rules[ruleName].meta.docs?.requiresSchema || gql.rules[ruleName].meta.docs?.requiresSiblings)\n ) {\n continue;\n }\n rules[rule] = flatRecommended[rule] as never;\n }\n }\n\n const recommended = renamePluginsInRules(rules, PluginNameMap);\n\n return [\n {\n name: '2digits:graphql',\n plugins: {\n gql,\n },\n languageOptions: {\n parser: gql.parser,\n },\n files,\n rules: {\n ...recommended,\n\n 'gql/naming-convention': ['error', { allowLeadingUnderscore: true } as never],\n\n ...overrides,\n },\n },\n ];\n}\n","import { composer } from 'eslint-flat-config-utils';\n\nimport { GLOB_EXCLUDE } from '../globs';\nimport type { OptionsWithIgnores, TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function ignores(options: OptionsWithIgnores = {}): Promise<TypedFlatConfigItem[]> {\n const { gitIgnore, ignores = [] } = options;\n\n return composer(\n {\n ignores: [GLOB_EXCLUDE, ignores].flat(),\n name: '2digits:ignores',\n },\n interopDefault(import('eslint-config-flat-gitignore')).then((m) =>\n m({ strict: false, ...gitIgnore, name: '2digits:gitignore' }),\n ),\n );\n}\n","import eslint from '@eslint/js';\nimport stylistic from '@stylistic/eslint-plugin';\nimport globals from 'globals';\n\nimport { GLOB_SRC } from '../globs';\nimport type { OptionsOverrides, TypedFlatConfigItem } from '../types';\n\nexport function javascript(options: OptionsOverrides = {}): TypedFlatConfigItem[] {\n const { overrides = {} } = options;\n\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:javascript',\n plugins: {\n stylistic,\n },\n languageOptions: {\n ecmaVersion: 2022,\n globals: {\n ...globals.browser,\n ...globals.es2021,\n ...globals.node,\n document: 'readonly',\n navigator: 'readonly',\n window: 'readonly',\n },\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n ecmaVersion: 2022,\n sourceType: 'module',\n },\n sourceType: 'module',\n },\n linterOptions: {\n reportUnusedDisableDirectives: true,\n },\n rules: {\n ...eslint.configs.recommended.rules,\n\n 'accessor-pairs': ['error', { enforceForClassMembers: true, setWithoutGet: true }],\n 'array-callback-return': 'error',\n 'block-scoped-var': 'error',\n 'constructor-super': 'error',\n 'default-case-last': 'error',\n 'dot-notation': ['error', { allowKeywords: true }],\n eqeqeq: ['error', 'smart'],\n 'new-cap': ['error', { capIsNew: false, newIsCap: true, properties: true }],\n 'no-alert': 'error',\n 'no-array-constructor': 'error',\n 'no-async-promise-executor': 'error',\n 'no-caller': 'error',\n 'no-case-declarations': 'error',\n 'no-class-assign': 'error',\n 'no-compare-neg-zero': 'error',\n 'no-cond-assign': ['error', 'always'],\n 'no-const-assign': 'error',\n 'no-control-regex': 'error',\n 'no-debugger': 'error',\n 'no-delete-var': 'error',\n 'no-dupe-args': 'error',\n 'no-dupe-class-members': 'error',\n 'no-dupe-keys': 'error',\n 'no-duplicate-case': 'error',\n 'no-empty': ['error', { allowEmptyCatch: true }],\n 'no-empty-character-class': 'error',\n 'no-empty-pattern': 'error',\n 'no-eval': 'error',\n 'no-ex-assign': 'error',\n 'no-extend-native': 'error',\n 'no-extra-bind': 'error',\n 'no-extra-boolean-cast': 'error',\n 'no-fallthrough': 'error',\n 'no-func-assign': 'error',\n 'no-global-assign': 'error',\n 'no-implied-eval': 'error',\n 'no-import-assign': 'error',\n 'no-invalid-regexp': 'error',\n 'no-irregular-whitespace': 'error',\n 'no-iterator': 'error',\n 'no-labels': ['error', { allowLoop: false, allowSwitch: false }],\n 'no-lone-blocks': 'error',\n 'no-loss-of-precision': 'error',\n 'no-misleading-character-class': 'error',\n 'no-multi-str': 'error',\n 'no-new': 'error',\n 'no-new-func': 'error',\n 'no-new-native-nonconstructor': 'error',\n 'no-new-wrappers': 'error',\n 'no-obj-calls': 'error',\n 'no-octal': 'error',\n 'no-octal-escape': 'error',\n 'no-proto': 'error',\n 'no-prototype-builtins': 'error',\n 'no-redeclare': ['error', { builtinGlobals: false }],\n 'no-regex-spaces': 'error',\n 'no-restricted-globals': [\n 'error',\n { message: 'Use `globalThis` instead.', name: 'global' },\n { message: 'Use `globalThis` instead.', name: 'self' },\n ],\n 'no-restricted-properties': [\n 'error',\n {\n message: 'Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.',\n property: '__proto__',\n },\n {\n message: 'Use `Object.defineProperty` instead.',\n property: '__defineGetter__',\n },\n {\n message: 'Use `Object.defineProperty` instead.',\n property: '__defineSetter__',\n },\n {\n message: 'Use `Object.getOwnPropertyDescriptor` instead.',\n property: '__lookupGetter__',\n },\n {\n message: 'Use `Object.getOwnPropertyDescriptor` instead.',\n property: '__lookupSetter__',\n },\n ],\n 'no-restricted-syntax': [\n 'error',\n 'DebuggerStatement',\n 'LabeledStatement',\n 'WithStatement',\n 'TSEnumDeclaration',\n 'TSExportAssignment',\n ],\n 'no-self-assign': ['error', { props: true }],\n 'no-self-compare': 'error',\n 'no-sequences': 'error',\n 'no-shadow-restricted-names': 'error',\n 'no-sparse-arrays': 'error',\n 'no-template-curly-in-string': 'error',\n 'no-this-before-super': 'error',\n 'no-throw-literal': 'error',\n 'no-undef': 'error',\n 'no-undef-init': 'error',\n 'no-unexpected-multiline': 'error',\n 'no-unmodified-loop-condition': 'error',\n 'no-unneeded-ternary': ['error', { defaultAssignment: false }],\n 'no-unreachable': 'error',\n 'no-unreachable-loop': 'error',\n 'no-unsafe-finally': 'error',\n 'no-unsafe-negation': 'error',\n 'no-unused-expressions': [\n 'error',\n {\n allowShortCircuit: true,\n allowTaggedTemplates: true,\n allowTernary: true,\n },\n ],\n 'no-unused-vars': [\n 'error',\n {\n args: 'none',\n caughtErrors: 'none',\n ignoreRestSiblings: true,\n vars: 'all',\n },\n ],\n 'no-useless-backreference': 'error',\n 'no-useless-call': 'error',\n 'no-useless-catch': 'error',\n 'no-useless-computed-key': 'error',\n 'no-useless-constructor': 'error',\n 'no-useless-rename': 'error',\n 'no-var': 'error',\n 'no-with': 'error',\n 'object-shorthand': [\n 'error',\n 'always',\n {\n avoidQuotes: true,\n ignoreConstructors: false,\n },\n ],\n 'one-var': ['error', { initialized: 'never' }],\n 'prefer-arrow-callback': [\n 'error',\n {\n allowNamedFunctions: true,\n allowUnboundThis: true,\n },\n ],\n 'prefer-const': [\n 'error',\n {\n destructuring: 'all',\n ignoreReadBeforeAssign: true,\n },\n ],\n 'prefer-exponentiation-operator': 'error',\n 'prefer-promise-reject-errors': 'error',\n 'prefer-regex-literals': ['error', { disallowRedundantWrapping: true }],\n 'prefer-rest-params': 'error',\n 'prefer-spread': 'error',\n 'prefer-template': 'error',\n 'symbol-description': 'error',\n 'unicode-bom': ['error', 'never'],\n 'use-isnan': ['error', { enforceForIndexOf: true, enforceForSwitchCase: true }],\n 'valid-typeof': ['error', { requireStringLiterals: true }],\n 'vars-on-top': 'error',\n yoda: ['error', 'never'],\n\n 'stylistic/padding-line-between-statements': [\n 'error',\n { blankLine: 'always', prev: ['const', 'let'], next: '*' },\n {\n blankLine: 'any',\n prev: ['const', 'let'],\n next: ['const', 'let'],\n },\n { blankLine: 'always', prev: '*', next: 'return' },\n ],\n\n ...overrides,\n },\n },\n ];\n}\n","import { GLOB_SRC } from '../globs';\nimport type { TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function jsdoc(): Promise<TypedFlatConfigItem[]> {\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:jsdoc',\n plugins: {\n jsdoc: await interopDefault(import('eslint-plugin-jsdoc')),\n },\n rules: {\n 'jsdoc/check-access': 'error',\n 'jsdoc/check-param-names': 'error',\n 'jsdoc/check-property-names': 'error',\n 'jsdoc/check-types': 'error',\n 'jsdoc/empty-tags': 'error',\n 'jsdoc/implements-on-classes': 'error',\n 'jsdoc/no-defaults': 'error',\n 'jsdoc/no-multi-asterisks': 'error',\n 'jsdoc/require-param-name': 'error',\n 'jsdoc/require-property': 'error',\n 'jsdoc/require-property-description': 'error',\n 'jsdoc/require-property-name': 'error',\n 'jsdoc/require-returns-check': 'error',\n 'jsdoc/require-returns-description': 'error',\n 'jsdoc/require-yields-check': 'error',\n },\n },\n ];\n}\n","import plugin, { configs } from 'eslint-plugin-jsonc';\nimport parser from 'jsonc-eslint-parser';\n\nimport { GLOB_JSON, GLOB_JSON5, GLOB_JSONC } from '../globs';\nimport type { TypedFlatConfigItem } from '../types';\n\nexport function jsonc(): TypedFlatConfigItem[] {\n return [\n ...configs['flat/base'].map((config) => ({ ...config, name: '2digits:jsonc/base' })),\n\n {\n name: '2digits:jsonc/json',\n files: [GLOB_JSON],\n ...SHARED_OPTIONS,\n rules: {\n ...collectRules(configs['flat/recommended-with-json']),\n },\n },\n {\n name: '2digits:jsonc/jsonc',\n files: [GLOB_JSONC],\n ...SHARED_OPTIONS,\n rules: {\n ...collectRules(configs['flat/recommended-with-jsonc']),\n },\n },\n {\n name: '2digits:jsonc/json5',\n files: [GLOB_JSON5],\n ...SHARED_OPTIONS,\n rules: {\n ...collectRules(configs['flat/recommended-with-json5']),\n },\n },\n\n {\n name: '2digits:jsonc/package.json',\n ...SHARED_OPTIONS,\n files: ['**/package.json'],\n rules: {\n 'jsonc/sort-array-values': [\n 'error',\n {\n order: { type: 'asc' },\n pathPattern: '^files$',\n },\n ],\n 'jsonc/sort-keys': [\n 'error',\n {\n order: [\n '$schema',\n 'publisher',\n 'name',\n 'displayName',\n 'version',\n 'private',\n 'description',\n 'funding',\n 'homepage',\n 'repository',\n 'bugs',\n 'categories',\n 'type',\n 'main',\n 'module',\n 'types',\n 'typesVersions',\n 'bin',\n 'files',\n 'exports',\n 'icon',\n 'unpkg',\n 'jsdelivr',\n 'sideEffects',\n 'activationEvents',\n 'contributes',\n 'scripts',\n 'keywords',\n 'author',\n 'license',\n 'workspaces',\n 'dependencies',\n 'devDependencies',\n 'peerDependencies',\n 'peerDependenciesMeta',\n 'optionalDependencies',\n 'packageManager',\n 'engines',\n 'pnpm',\n 'overrides',\n 'resolutions',\n 'husky',\n 'simple-git-hooks',\n 'lint-staged',\n 'eslintConfig',\n 'prettier',\n ],\n pathPattern: '^$',\n },\n {\n order: { type: 'asc' },\n pathPattern: '^(?:dev|peer|optional|bundled)?[Dd]ependencies(Meta)?$',\n },\n {\n order: ['types', 'import', 'module', 'require', 'default'],\n pathPattern: '^exports.*$',\n },\n ],\n },\n },\n\n {\n name: '2digits:jsonc/tsconfig.json',\n ...SHARED_OPTIONS,\n files: [\n '**/tsconfig.json',\n '**/tsconfig.*.json',\n '**/tsconfig-*.json',\n '**/jsconfig.json',\n '**/jsconfig.*.json',\n '**/jsconfig-*.json',\n ],\n rules: {\n 'jsonc/sort-keys': [\n 'error',\n {\n order: ['$schema', 'extends', 'compilerOptions', 'references', 'files', 'include', 'exclude'],\n pathPattern: '^$',\n },\n {\n order: [\n /* Projects */\n 'incremental',\n 'composite',\n 'tsBuildInfoFile',\n 'disableSourceOfProjectReferenceRedirect',\n 'disableSolutionSearching',\n 'disableReferencedProjectLoad',\n /* Language and Environment */\n 'target',\n 'lib',\n 'jsx',\n 'experimentalDecorators',\n 'emitDecoratorMetadata',\n 'jsxFactory',\n 'jsxFragmentFactory',\n 'jsxImportSource',\n 'reactNamespace',\n 'noLib',\n 'useDefineForClassFields',\n 'moduleDetection',\n /* Modules */\n 'module',\n 'rootDir',\n 'moduleResolution',\n 'baseUrl',\n 'paths',\n 'rootDirs',\n 'typeRoots',\n 'types',\n 'allowUmdGlobalAccess',\n 'moduleSuffixes',\n 'allowImportingTsExtensions',\n 'resolvePackageJsonExports',\n 'resolvePackageJsonImports',\n 'customConditions',\n 'resolveJsonModule',\n 'allowArbitraryExtensions',\n 'noResolve',\n /* JavaScript Support */\n 'allowJs',\n 'checkJs',\n 'maxNodeModuleJsDepth',\n /* Emit */\n 'declaration',\n 'declarationMap',\n 'emitDeclarationOnly',\n 'sourceMap',\n 'inlineSourceMap',\n 'outFile',\n 'outDir',\n 'removeComments',\n 'noEmit',\n 'importHelpers',\n 'importsNotUsedAsValues',\n 'downlevelIteration',\n 'sourceRoot',\n 'mapRoot',\n 'inlineSources',\n 'emitBOM',\n 'newLine',\n 'stripInternal',\n 'noEmitHelpers',\n 'noEmitOnError',\n 'preserveConstEnums',\n 'declarationDir',\n 'preserveValueImports',\n /* Interop Constraints */\n 'isolatedModules',\n 'verbatimModuleSyntax',\n 'allowSyntheticDefaultImports',\n 'esModuleInterop',\n 'preserveSymlinks',\n 'forceConsistentCasingInFileNames',\n /* Type Checking */\n 'strict',\n 'strictBindCallApply',\n 'strictFunctionTypes',\n 'strictNullChecks',\n 'strictPropertyInitialization',\n 'allowUnreachableCode',\n 'allowUnusedLabels',\n 'alwaysStrict',\n 'exactOptionalPropertyTypes',\n 'noFallthroughCasesInSwitch',\n 'noImplicitAny',\n 'noImplicitOverride',\n 'noImplicitReturns',\n 'noImplicitThis',\n 'noPropertyAccessFromIndexSignature',\n 'noUncheckedIndexedAccess',\n 'noUnusedLocals',\n 'noUnusedParameters',\n 'useUnknownInCatchVariables',\n /* Completeness */\n 'skipDefaultLibCheck',\n 'skipLibCheck',\n ],\n pathPattern: '^compilerOptions$',\n },\n ],\n },\n },\n\n ...configs['flat/prettier'].map((config) => ({ ...config, name: '2digits:jsonc/prettier' })),\n ];\n}\n\nconst SHARED_OPTIONS = {\n languageOptions: {\n parser,\n },\n plugins: {\n jsonc: plugin,\n },\n} satisfies Pick<TypedFlatConfigItem, 'plugins' | 'languageOptions'>;\n\ntype FlatConfigName = Extract<keyof typeof configs, `flat/${string}`>;\n\nfunction collectRules(config: (typeof configs)[FlatConfigName]) {\n return Object.fromEntries(config.flatMap(({ rules }) => Object.entries(rules ?? {})));\n}\n","import plugin from '@eslint/markdown';\nimport { mergeProcessors, processorPassThrough } from 'eslint-merge-processors';\n\nimport { GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN } from '../globs';\nimport type { TypedFlatConfigItem } from '../types';\n\nconst files = [GLOB_MARKDOWN];\n\nexport function markdown(): TypedFlatConfigItem[] {\n return [\n {\n name: '2digits:markdown/setup',\n plugins: {\n markdown: plugin,\n },\n },\n {\n name: '2digits:markdown/processor',\n files,\n language: 'markdown/gfm',\n ignores: [GLOB_MARKDOWN_IN_MARKDOWN],\n /**\n * `eslint-plugin-markdown` only creates virtual files for code blocks, but not the markdown file itself. We use\n * `eslint-merge-processors` to add a pass-through processor for the markdown file itself.\n */\n processor: mergeProcessors([plugin.processors.markdown, processorPassThrough]),\n },\n {\n name: '2digits:markdown/parser',\n files,\n language: 'markdown/gfm',\n languageOptions: {\n parser: parserPlain,\n },\n },\n {\n name: '2digits:markdown/rules',\n files,\n language: 'markdown/gfm',\n rules: {\n 'markdown/fenced-code-language': 'error',\n 'markdown/heading-increment': 'error',\n 'markdown/no-empty-links': 'error',\n 'markdown/no-invalid-label-refs': 'error',\n 'markdown/no-missing-label-refs': 'error',\n },\n },\n {\n name: '2digits:markdown/disables',\n files: [GLOB_MARKDOWN_CODE],\n languageOptions: {\n parserOptions: {\n ecmaFeatures: {\n impliedStrict: true,\n },\n },\n },\n rules: {\n 'no-alert': 'off',\n 'no-console': 'off',\n 'no-labels': 'off',\n 'no-lone-blocks': 'off',\n 'no-restricted-syntax': 'off',\n 'no-undef': 'off',\n 'no-unused-expressions': 'off',\n 'no-unused-labels': 'off',\n 'no-unused-vars': 'off',\n 'node/prefer-global/process': 'off',\n 'ts/consistent-type-imports': 'off',\n 'ts/explicit-function-return-type': 'off',\n 'ts/no-namespace': 'off',\n 'ts/no-redeclare': 'off',\n 'ts/no-require-imports': 'off',\n 'ts/no-unused-expressions': 'off',\n 'ts/no-unused-vars': 'off',\n 'ts/no-use-before-define': 'off',\n 'unicode-bom': 'off',\n },\n },\n ];\n}\n\nconst parserPlain = {\n meta: {\n name: 'parser-plain',\n },\n parseForESLint: (code: string) => ({\n ast: {\n body: [],\n comments: [],\n loc: { end: code.length, start: 0 },\n range: [0, code.length],\n tokens: [],\n type: 'Program',\n },\n // eslint-disable-next-line unicorn/no-null\n scopeManager: null,\n services: { isPlain: true },\n visitorKeys: {\n Program: [],\n },\n }),\n};\n","import { fixupPluginRules } from '@eslint/compat';\nimport { renamePluginsInRules } from 'eslint-flat-config-utils';\n\nimport { PluginNameMap } from '../constants';\nimport { GLOB_TS, GLOB_TSX } from '../globs';\nimport type { OptionsTypeScriptWithTypes, OptionsWithFiles, TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function next(\n options: OptionsWithFiles & OptionsTypeScriptWithTypes = {},\n): Promise<TypedFlatConfigItem[]> {\n const { files = [GLOB_TS, GLOB_TSX], overrides = {}, parserOptions } = options;\n\n const [next, parser] = await Promise.all([\n interopDefault(import('@next/eslint-plugin-next')),\n interopDefault(import('@typescript-eslint/parser')),\n ]);\n\n const recommended = renamePluginsInRules(\n {\n ...next.configs.recommended.rules,\n ...next.configs['core-web-vitals'].rules,\n },\n PluginNameMap,\n );\n\n return [\n {\n name: '2digits:next/setup',\n plugins: {\n next: fixupPluginRules(next as never),\n },\n },\n {\n name: '2digits:next/rules',\n files,\n languageOptions: {\n parser,\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n projectService: true,\n ...parserOptions,\n },\n sourceType: 'module',\n },\n rules: {\n ...recommended,\n\n 'next/no-html-link-for-pages': 'off',\n\n ...overrides,\n },\n },\n ];\n}\n","import { GLOB_SRC } from '../globs';\nimport { pluginNode } from '../plugins';\nimport type { TypedFlatConfigItem } from '../types';\n\nexport function node(): TypedFlatConfigItem[] {\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:node',\n settings: {\n node: {\n version: '>= 22.0.0',\n },\n },\n plugins: {\n node: pluginNode,\n },\n rules: {\n 'node/handle-callback-err': ['error', '^(err|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-unsupported-features/node-builtins': ['error', { allowExperimental: true }],\n 'node/prefer-global/buffer': 'error',\n 'node/prefer-global/process': 'error',\n 'node/prefer-global/text-encoder': 'error',\n 'node/prefer-global/url': 'error',\n 'node/prefer-global/console': 'error',\n 'node/prefer-global/url-search-params': 'error',\n 'node/prefer-global/text-decoder': 'error',\n 'node/process-exit-as-throw': 'error',\n },\n },\n ];\n}\n","import jsoncParser from 'jsonc-eslint-parser';\nimport yamlParser from 'yaml-eslint-parser';\n\nimport type { TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function pnpm(): Promise<TypedFlatConfigItem[]> {\n const plugin = await interopDefault(import('eslint-plugin-pnpm'));\n\n return [\n {\n name: '2digits:pnpm/package-json',\n files: ['**/package.json'],\n languageOptions: {\n parser: jsoncParser,\n },\n plugins: {\n pnpm: plugin,\n },\n rules: {\n 'pnpm/json-enforce-catalog': 'error',\n 'pnpm/json-prefer-workspace-settings': 'error',\n 'pnpm/json-valid-catalog': 'error',\n },\n },\n {\n name: '2digits:pnpm/pnpm-workspace-yaml',\n files: ['pnpm-workspace.yaml'],\n languageOptions: {\n parser: yamlParser,\n },\n plugins: {\n pnpm: plugin,\n },\n rules: {\n 'pnpm/yaml-no-duplicate-catalog-item': 'error',\n 'pnpm/yaml-no-unused-catalog-item': 'error',\n },\n },\n ];\n}\n","import type { TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function prettier(): Promise<TypedFlatConfigItem[]> {\n const [prettier, stylistic] = await Promise.all([\n interopDefault(import('eslint-config-prettier')),\n interopDefault(import('@stylistic/eslint-plugin')),\n ]);\n\n return [\n {\n name: '2digits:prettier',\n plugins: {\n stylistic,\n },\n rules: {\n ...prettier.rules,\n\n 'tailwindcss/classnames-order': 'off',\n 'stylistic/jsx-newline': ['error', { prevent: false }],\n },\n },\n ];\n}\n","import stylistic from '@stylistic/eslint-plugin';\nimport { renamePluginsInRules } from 'eslint-flat-config-utils';\n\nimport { PluginNameMap } from '../constants';\nimport { GLOB_TS, GLOB_TSX } from '../globs';\nimport type { OptionsTypeScriptWithTypes, OptionsWithReact, TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function react(\n options: OptionsWithReact & OptionsTypeScriptWithTypes = {},\n): Promise<TypedFlatConfigItem[]> {\n const { files = [GLOB_TS, GLOB_TSX], overrides = {}, parserOptions, tsconfigRootDir, reactCompiler = true } = options;\n\n const [pluginReact, pluginReactHooks, parser, pluginReactCompiler] = await Promise.all([\n interopDefault(import('@eslint-react/eslint-plugin')),\n interopDefault(import('eslint-plugin-react-hooks')),\n interopDefault(import('@typescript-eslint/parser')),\n reactCompiler ? interopDefault(import('eslint-plugin-react-compiler')) : undefined,\n ]);\n\n const plugins = pluginReact.configs.all.plugins;\n\n const recommended = renamePluginsInRules(\n {\n ...pluginReactHooks.configs['recommended-latest'].rules,\n ...pluginReact.configs['recommended-type-checked'].rules,\n },\n PluginNameMap,\n );\n\n return [\n {\n name: '2digits:react/setup',\n plugins: {\n stylistic,\n 'react-dom': plugins['@eslint-react/dom'],\n 'react-web-api': plugins['@eslint-react/web-api'],\n 'react-extra': plugins['@eslint-react'],\n 'react-hooks': pluginReactHooks,\n 'react-hooks-extra': plugins['@eslint-react/hooks-extra'],\n 'react-naming-convention': plugins['@eslint-react/naming-convention'],\n ...(reactCompiler ? { 'react-compiler': pluginReactCompiler } : {}),\n },\n settings: {\n react: {\n version: 'detect',\n },\n },\n },\n {\n name: '2digits:react/rules',\n files,\n languageOptions: {\n parser,\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n tsconfigRootDir,\n projectService: true,\n ...parserOptions,\n },\n sourceType: 'module',\n },\n rules: {\n ...recommended,\n\n ...(reactCompiler ? { 'react-compiler/react-compiler': 'error' } : {}),\n\n 'react-hooks-extra/no-unnecessary-use-callback': 'error',\n 'react-hooks-extra/prefer-use-state-lazy-initialization': 'error',\n 'react-hooks-extra/no-redundant-custom-hook': 'error',\n 'react-hooks-extra/no-unnecessary-use-memo': 'error',\n\n 'react-extra/no-useless-fragment': 'off',\n 'react-extra/prefer-read-only-props': 'off',\n 'react-extra/prefer-shorthand-boolean': 'error',\n 'react-extra/prefer-shorthand-fragment': 'error',\n 'react-extra/prefer-react-namespace-import': 'error',\n\n 'react-naming-convention/use-state': 'error',\n\n 'stylistic/jsx-curly-newline': 'off',\n 'stylistic/jsx-newline': ['error', { prevent: false }],\n 'stylistic/jsx-self-closing-comp': 'error',\n\n ...overrides,\n },\n },\n ];\n}\n","import pluginRegexp from 'eslint-plugin-regexp';\n\nimport { GLOB_SRC } from '../globs';\nimport type { TypedFlatConfigItem } from '../types';\n\nexport function regexp(): TypedFlatConfigItem[] {\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:regexp',\n plugins: {\n regexp: pluginRegexp,\n },\n rules: {\n ...pluginRegexp.configs['flat/recommended'].rules,\n },\n },\n ];\n}\n","import { GLOB_SRC } from '../globs';\nimport { pluginSonar } from '../plugins';\nimport type { TypedFlatConfigItem } from '../types';\n\nexport function sonar(): TypedFlatConfigItem[] {\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:sonar',\n plugins: {\n sonar: pluginSonar,\n },\n rules: {\n 'sonar/code-eval': 'error',\n 'sonar/cognitive-complexity': 'error',\n 'sonar/comma-or-logical-or-case': 'error',\n 'sonar/concise-regex': 'error',\n 'sonar/confidential-information-logging': 'error',\n 'sonar/constructor-for-side-effects': 'error',\n 'sonar/content-length': 'error',\n 'sonar/content-security-policy': 'error',\n 'sonar/cookie-no-httponly': 'error',\n 'sonar/cors': 'error',\n 'sonar/csrf': 'error',\n 'sonar/max-switch-cases': 'error',\n 'sonar/no-all-duplicated-branches': 'error',\n 'sonar/no-collapsible-if': 'error',\n 'sonar/no-collection-size-mischeck': 'error',\n 'sonar/no-duplicate-string': ['error', { threshold: 5 }],\n 'sonar/no-duplicated-branches': 'error',\n 'sonar/no-element-overwrite': 'error',\n 'sonar/no-empty-collection': 'error',\n 'sonar/no-extra-arguments': 'error',\n 'sonar/no-for-in-iterable': 'error',\n 'sonar/no-gratuitous-expressions': 'error',\n 'sonar/no-identical-conditions': 'error',\n 'sonar/no-identical-expressions': 'error',\n 'sonar/no-identical-functions': 'error',\n 'sonar/no-ignored-return': 'error',\n 'sonar/no-inverted-boolean-check': 'error',\n 'sonar/no-nested-switch': 'error',\n 'sonar/no-nested-template-literals': 'error',\n 'sonar/no-one-iteration-loop': 'error',\n 'sonar/no-redundant-boolean': 'error',\n 'sonar/no-same-line-conditional': 'error',\n 'sonar/no-small-switch': 'error',\n 'sonar/no-unused-collection': 'error',\n 'sonar/no-use-of-empty-return-value': 'error',\n 'sonar/no-useless-catch': 'error',\n 'sonar/non-existent-operator': 'error',\n 'sonar/prefer-immediate-return': 'error',\n 'sonar/prefer-object-literal': 'error',\n 'sonar/prefer-single-boolean-return': 'error',\n 'sonar/prefer-while': 'error',\n\n 'sonar/elseif-without-else': 'off',\n 'sonar/no-redundant-jump': 'off',\n },\n },\n ];\n}\n","import { fixupPluginRules } from '@eslint/compat';\nimport type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';\n\nimport { GLOB_STORIES } from '../globs';\nimport type { OptionsTypeScriptWithTypes, OptionsWithStorybook, TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function storybook(\n options: OptionsWithStorybook & OptionsTypeScriptWithTypes = {},\n): Promise<TypedFlatConfigItem[]> {\n const { files = [GLOB_STORIES], overrides = {}, parserOptions, storybookDirectory = '.storybook' } = options;\n\n const [storybook, parser] = await Promise.all([\n interopDefault(import('eslint-plugin-storybook')),\n interopDefault(import('@typescript-eslint/parser')),\n ]);\n\n const languageOptions = {\n parser,\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n projectService: true,\n ...parserOptions,\n },\n sourceType: 'module',\n } satisfies FlatConfig.LanguageOptions;\n\n return [\n {\n name: '2digits:storybook/setup',\n plugins: {\n storybook: fixupPluginRules(storybook as never),\n },\n },\n {\n name: '2digits:storybook/rules',\n files,\n languageOptions,\n rules: {\n 'storybook/await-interactions': 'error',\n 'storybook/context-in-play-function': 'error',\n 'storybook/csf-component': 'error',\n 'storybook/default-exports': 'error',\n 'storybook/hierarchy-separator': 'error',\n 'storybook/meta-inline-properties': 'error',\n 'storybook/no-redundant-story-name': 'error',\n 'storybook/no-stories-of': 'error',\n 'storybook/no-title-property-in-meta': 'error',\n 'storybook/no-uninstalled-addons': 'error',\n 'storybook/prefer-pascal-case': 'error',\n 'storybook/story-exports': 'error',\n 'storybook/use-storybook-expect': 'error',\n 'storybook/use-storybook-testing-library': 'error',\n\n ...overrides,\n },\n },\n {\n name: '2digits:storybook/disables',\n files,\n rules: {\n 'react-hooks/rules-of-hooks': 'off',\n 'react/display-name': 'off',\n 'sonar/no-duplicate-string': 'off',\n },\n },\n {\n name: '2digits:storybook/config',\n files: [`${storybookDirectory}/main.@(js|cjs|mjs|ts)`],\n languageOptions,\n rules: {\n 'storybook/no-uninstalled-addons': 'error',\n },\n },\n ];\n}\n","import { findUp } from 'find-up';\n\nimport { GLOB_SRC } from '../globs';\nimport type { OptionsOverrides, TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function tailwind(options: OptionsOverrides = {}): Promise<TypedFlatConfigItem[]> {\n const { overrides = {} } = options;\n\n const [tailwindcss, { tailwindFunctions }, config] = await Promise.all([\n interopDefault(import('eslint-plugin-tailwindcss')),\n interopDefault(import('@2digits/constants')),\n findUp(['tailwind.config.ts', 'tailwind.config.js']),\n ]);\n\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:tailwind',\n plugins: {\n tailwindcss,\n },\n settings: {\n tailwindcss: {\n callees: tailwindFunctions,\n config,\n },\n },\n rules: {\n ...tailwindcss.configs.recommended.rules,\n\n ...overrides,\n },\n },\n ];\n}\n","import { renamePluginsInRules } from 'eslint-flat-config-utils';\n\nimport { PluginNameMap } from '../constants';\nimport { GLOB_SRC } from '../globs';\nimport type { OptionsOverrides, TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function tanstack(options: OptionsOverrides = {}): Promise<TypedFlatConfigItem[]> {\n const { overrides = {} } = options;\n\n const tanstack = await interopDefault(import('@tanstack/eslint-plugin-query'));\n\n const recommended = renamePluginsInRules(tanstack.configs['flat/recommended'].at(0)?.rules ?? {}, PluginNameMap);\n\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:tanstack',\n plugins: { tanstack },\n rules: {\n ...recommended,\n\n ...overrides,\n },\n },\n ];\n}\n","import { GLOB_SRC } from '../globs';\nimport type { OptionsOverrides, TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function turbo(options: OptionsOverrides = {}): Promise<TypedFlatConfigItem[]> {\n const { overrides = {} } = options;\n\n const turbo = await interopDefault(import('eslint-plugin-turbo'));\n\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:turbo',\n plugins: {\n turbo,\n },\n rules: {\n 'turbo/no-undeclared-env-vars': 'error',\n\n ...overrides,\n },\n },\n ];\n}\n","import { renamePluginsInConfigs } from 'eslint-flat-config-utils';\n\nimport { PluginNameMap } from '../constants';\nimport { GLOB_MARKDOWN_CODE, GLOB_SRC } from '../globs';\nimport type { OptionsTypeScriptWithTypes, TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function typescript(options: OptionsTypeScriptWithTypes = {}): Promise<TypedFlatConfigItem[]> {\n const { overrides = {}, parserOptions = {} } = options;\n\n const [{ plugin, configs, parser }, twoDigits] = await Promise.all([\n interopDefault(import('typescript-eslint')),\n interopDefault(import('@2digits/eslint-plugin')),\n ]);\n\n const strictConfig = renamePluginsInConfigs(configs.strictTypeChecked as never, PluginNameMap);\n\n const rules = Object.fromEntries(strictConfig.flatMap(({ rules }) => Object.entries(rules ?? {})));\n\n return [\n {\n name: '2digits:typescript/setup',\n plugins: {\n ts: plugin,\n '@2digits': twoDigits,\n },\n },\n {\n name: '2digits:typescript/rules',\n files: [GLOB_SRC],\n ignores: [GLOB_MARKDOWN_CODE],\n languageOptions: {\n parser,\n parserOptions: {\n tsconfigRootDir: process.cwd(),\n projectService: true,\n warnOnUnsupportedTypeScriptVersion: false,\n ...parserOptions,\n },\n sourceType: 'module',\n },\n rules: {\n ...rules,\n 'ts/restrict-template-expressions': ['error', { allowNumber: true }],\n 'ts/ban-ts-comment': ['error', { 'ts-ignore': 'allow-with-description' }],\n 'ts/consistent-type-exports': ['error'],\n 'ts/consistent-type-imports': [\n 'error',\n {\n prefer: 'type-imports',\n disallowTypeAnnotations: false,\n fixStyle: 'inline-type-imports',\n },\n ],\n 'ts/no-empty-object-type': ['error', { allowInterfaces: 'with-single-extends', allowObjectTypes: 'never' }],\n 'ts/no-explicit-any': ['error'],\n 'ts/no-import-type-side-effects': ['error'],\n 'ts/no-misused-promises': 'off',\n 'ts/no-confusing-void-expression': 'off',\n 'ts/no-unused-vars': [\n 'error',\n {\n ignoreRestSiblings: true,\n argsIgnorePattern: '^_',\n varsIgnorePattern: '^_',\n },\n ],\n 'ts/unbound-method': 'off',\n\n ...twoDigits.configs.recommended.rules,\n\n ...overrides,\n },\n },\n {\n name: '2digits:typescript/disables/dts',\n files: ['**/*.d.ts'],\n ignores: [GLOB_MARKDOWN_CODE],\n rules: {\n 'unicorn/no-abusive-eslint-disable': 'off',\n 'no-duplicate-imports': 'off',\n 'no-restricted-syntax': 'off',\n 'ts/no-unused-vars': 'off',\n },\n },\n {\n name: '2digits:typescript/disables/test',\n files: ['**/*.{test,spec}.ts?(x)'],\n ignores: [GLOB_MARKDOWN_CODE],\n rules: {\n 'no-unused-expressions': 'off',\n },\n },\n {\n name: '2digits:typescript/disables/cjs',\n files: ['**/*.js', '**/*.cjs', '**/*.cts'],\n ignores: [GLOB_MARKDOWN_CODE],\n rules: {\n 'ts/no-require-imports': 'off',\n 'ts/no-var-requires': 'off',\n },\n },\n ];\n}\n","import { GLOB_SRC } from '../globs';\nimport { pluginUnicorn } from '../plugins';\nimport type { TypedFlatConfigItem } from '../types';\n\nexport function unicorn(): TypedFlatConfigItem[] {\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:unicorn',\n plugins: {\n unicorn: pluginUnicorn,\n },\n rules: {\n ...pluginUnicorn.configs.recommended.rules,\n\n 'unicorn/filename-case': ['off'],\n 'unicorn/prefer-module': ['off'],\n 'unicorn/prevent-abbreviations': ['off'],\n 'unicorn/prefer-ternary': ['error', 'only-single-line'],\n 'unicorn/no-useless-undefined': [\n 'error',\n {\n checkArguments: false,\n checkArrowFunctionBody: false,\n },\n ],\n 'unicorn/prefer-top-level-await': ['off'],\n },\n },\n ];\n}\n","import yml from 'eslint-plugin-yml';\nimport parser from 'yaml-eslint-parser';\n\nimport { GLOB_YAML } from '../globs';\nimport type { TypedFlatConfigItem } from '../types';\n\nexport function yaml(): TypedFlatConfigItem[] {\n return [\n {\n name: '2digits:yaml/setup',\n plugins: {\n yml,\n },\n },\n\n {\n name: '2digits:yaml/base',\n ...SHARED_OPTIONS,\n rules: {\n 'no-irregular-whitespace': 'off',\n 'no-unused-vars': 'off',\n 'spaced-comment': 'off',\n },\n },\n\n {\n name: '2digits:yaml/recommended',\n ...SHARED_OPTIONS,\n rules: {\n 'yml/no-empty-document': 'error',\n 'yml/no-empty-key': 'error',\n 'yml/no-empty-mapping-value': 'error',\n 'yml/no-empty-sequence-entry': 'error',\n 'yml/no-irregular-whitespace': 'error',\n 'yml/no-tab-indent': 'error',\n 'yml/vue-custom-block/no-parsing-error': 'error',\n },\n },\n\n {\n name: '2digits:yaml/standard',\n ...SHARED_OPTIONS,\n rules: {\n 'yml/block-mapping': 'error',\n 'yml/block-sequence': 'error',\n 'yml/plain-scalar': 'error',\n 'yml/spaced-comment': 'error',\n },\n },\n\n {\n name: '2digits:yaml/pnpm-workspace',\n ...SHARED_OPTIONS,\n files: ['pnpm-workspace.yaml'],\n rules: {\n 'yml/sort-keys': [\n 'error',\n {\n order: [\n 'packages',\n 'overrides',\n 'patchedDependencies',\n 'hoistPattern',\n 'catalog',\n 'catalogs',\n\n 'allowedDeprecatedVersions',\n 'allowNonAppliedPatches',\n 'configDependencies',\n 'ignoredBuiltDependencies',\n 'ignoredOptionalDependencies',\n 'neverBuiltDependencies',\n 'onlyBuiltDependencies',\n 'onlyBuiltDependenciesFile',\n 'packageExtensions',\n 'peerDependencyRules',\n 'supportedArchitectures',\n ],\n pathPattern: '^$',\n },\n {\n order: { type: 'asc' },\n pathPattern: '.*',\n },\n ],\n },\n },\n\n {\n name: '2digits:yaml/prettier',\n ...SHARED_OPTIONS,\n rules: {\n 'yml/block-mapping-colon-indicator-newline': 'off',\n 'yml/block-mapping-question-indicator-newline': 'off',\n 'yml/block-sequence-hyphen-indicator-newline': 'off',\n 'yml/flow-mapping-curly-newline': 'off',\n 'yml/flow-mapping-curly-spacing': 'off',\n 'yml/flow-sequence-bracket-newline': 'off',\n 'yml/flow-sequence-bracket-spacing': 'off',\n 'yml/indent': 'off',\n 'yml/key-spacing': 'off',\n 'yml/no-multiple-empty-lines': 'off',\n 'yml/no-trailing-zeros': 'off',\n 'yml/quotes': 'off',\n },\n },\n ];\n}\n\nconst SHARED_OPTIONS = {\n files: [GLOB_YAML],\n languageOptions: {\n parser,\n },\n} satisfies Pick<TypedFlatConfigItem, 'languageOptions' | 'files'>;\n","import { FlatConfigComposer } from 'eslint-flat-config-utils';\nimport { findUp } from 'find-up';\nimport { isPackageExists } from 'local-pkg';\n\nimport {\n antfu,\n boolean,\n comments,\n css,\n drizzle,\n graphql,\n ignores,\n javascript,\n jsdoc,\n jsonc,\n markdown,\n next,\n node,\n pnpm,\n prettier,\n react,\n regexp,\n sonar,\n storybook,\n tailwind,\n tanstack,\n turbo,\n typescript,\n unicorn,\n yaml,\n} from './configs';\nimport { PluginNameMap } from './constants';\nimport type {\n ConfigNames,\n OptionsOverrides,\n OptionsTypeScriptWithTypes,\n OptionsWithDrizzle,\n OptionsWithFiles,\n OptionsWithIgnores,\n OptionsWithReact,\n OptionsWithStorybook,\n TypedFlatConfigItem,\n} from './types';\n\ntype SharedOptions<T = unknown> = T & {\n enable?: boolean;\n};\n\ninterface ESLint2DigitsOptions {\n ignores?: OptionsWithIgnores;\n turbo?: SharedOptions<OptionsOverrides> | boolean;\n js?: OptionsOverrides;\n ts?: SharedOptions<OptionsTypeScriptWithTypes> | boolean;\n pnpm?: SharedOptions | boolean;\n graphql?: SharedOptions<OptionsWithFiles> | boolean;\n react?: SharedOptions<OptionsWithReact> | boolean;\n next?: SharedOptions<OptionsWithFiles> | boolean;\n tailwind?: SharedOptions<OptionsOverrides> | boolean;\n storybook?: SharedOptions<OptionsWithStorybook> | boolean;\n tanstack?: SharedOptions<OptionsOverrides> | boolean;\n drizzle?: SharedOptions<OptionsWithDrizzle> | boolean;\n}\n\nfunction enabled<T extends SharedOptions>(options: T | boolean | undefined, defaults?: boolean): options is T {\n if (typeof options === 'boolean') {\n return options;\n }\n\n return options?.enable ?? defaults ?? false;\n}\n\nfunction config<T>(options: SharedOptions<T> | undefined | boolean): T {\n if (typeof options === 'boolean' || options === undefined) {\n return {} as T;\n }\n\n const { enable, ...rest } = options;\n\n return rest as T;\n}\n\nexport async function twoDigits(\n options: ESLint2DigitsOptions = {},\n ...userConfig: TypedFlatConfigItem[]\n): Promise<TypedFlatConfigItem[]> {\n let pnpmPromise;\n\n if (options.pnpm === undefined) {\n pnpmPromise = findUp('pnpm-workspace.yaml');\n }\n\n let composer = new FlatConfigComposer<TypedFlatConfigItem, ConfigNames>(\n ignores(options.ignores),\n javascript(options.js),\n boolean(),\n node(),\n comments(),\n jsdoc(),\n unicorn(),\n sonar(),\n regexp(),\n antfu(),\n jsonc(),\n css(),\n yaml(),\n markdown(),\n );\n\n if (enabled(options.turbo, isPackageExists('turbo'))) {\n composer = composer.append(turbo(config(options.turbo)));\n }\n\n const { overrides, ...typescriptOptions } = config(options.ts);\n\n if (enabled(options.ts, isPackageExists('typescript'))) {\n composer = composer.append(typescript(config(options.ts)));\n }\n\n if (enabled(options.react, isPackageExists('react'))) {\n composer = composer.append(\n react({\n ...config(options.react),\n ...typescriptOptions,\n }),\n );\n }\n\n if (enabled(options.next, isPackageExists('next'))) {\n composer = composer.append(\n next({\n ...config(options.next),\n ...typescriptOptions,\n }),\n );\n }\n\n if (enabled(options.storybook, isPackageExists('storybook'))) {\n composer = composer.append(\n storybook({\n ...config(options.storybook),\n ...typescriptOptions,\n }),\n );\n }\n\n if (enabled(options.tailwind, isPackageExists('tailwindcss'))) {\n composer = composer.append(tailwind(config(options.tailwind)));\n }\n\n if (\n enabled(\n options.tanstack,\n isPackageExists('react-query')\n || isPackageExists('@tanstack/react-query')\n || isPackageExists('@tanstack/react-query-devtools'),\n )\n ) {\n composer = composer.append(tanstack(config(options.tanstack)));\n }\n\n if (enabled(options.drizzle, isPackageExists('drizzle-kit') || isPackageExists('drizzle-orm'))) {\n composer = composer.append(drizzle(config(options.drizzle)));\n }\n\n if (enabled(options.graphql, isPackageExists('graphql'))) {\n composer = composer.append(graphql(config(options.graphql)));\n }\n\n if (enabled(options.pnpm, !!(await pnpmPromise))) {\n composer = composer.append(pnpm());\n }\n\n composer = composer.append(...userConfig);\n\n if (isPackageExists('prettier')) {\n composer = composer.append(prettier());\n }\n\n return composer.renamePlugins(PluginNameMap).toConfigs();\n}\n"]}
1
+ {"version":3,"sources":["../src/globs.ts","../src/configs/antfu.ts","../src/configs/boolean.ts","../src/constants.ts","../src/configs/comments.ts","../src/configs/css.ts","../src/utils.ts","../src/configs/drizzle.ts","../src/configs/graphql.ts","../src/configs/ignores.ts","../src/configs/javascript.ts","../src/configs/jsdoc.ts","../src/configs/jsonc.ts","../src/configs/markdown.ts","../src/configs/next.ts","../src/configs/node.ts","../src/configs/pnpm.ts","../src/configs/prettier.ts","../src/configs/react.ts","../src/configs/regexp.ts","../src/configs/sonar.ts","../src/configs/storybook.ts","../src/configs/tailwind.ts","../src/configs/tanstack.ts","../src/configs/turbo.ts","../src/configs/typescript.ts","../src/configs/unicorn.ts","../src/configs/yaml.ts","../src/factory.ts"],"names":["GLOB_SRC","GLOB_TS","GLOB_TSX","GLOB_STORIES","GLOB_JSON","GLOB_JSON5","GLOB_JSONC","GLOB_CSS","GLOB_YAML","GLOB_MARKDOWN","GLOB_MARKDOWN_IN_MARKDOWN","GLOB_MARKDOWN_CODE","GLOB_EXCLUDE","antfu","pluginAntfu","boolean","pluginDeMorgan","PluginNameMap","recommended","renamePluginsInRules","configs","comments","pluginComments","css","plugin","tailwindSyntax","interopDefault","m","resolved","drizzle","options","overrides","drizzleObjectName","fixupPluginRules","graphql","files","gql","gqlSchema","loadConfig","g","flatRecommended","rules","rule","ruleName","ignores","gitIgnore","composer","javascript","stylistic","globals","eslint","jsdoc","jsonc","config","SHARED_OPTIONS","collectRules","parser","markdown","mergeProcessors","processorPassThrough","parserPlain","code","next","parserOptions","node","default","pnpm","jsoncParser","yamlParser","prettier","react","tsconfigRootDir","reactCompiler","pluginReact","pluginReactHooks","pluginReactCompiler","plugins","regexp","pluginRegexp","sonar","storybook","storybookDirectory","languageOptions","tailwind","tailwindcss","tailwindFunctions","findUp","tanstack","turbo","typescript","twoDigits","strictConfig","renamePluginsInConfigs","unicorn","yaml","yml","enabled","defaults","enable","rest","userConfig","pnpmPromise","FlatConfigComposer","isPackageExists","typescriptOptions"],"mappings":"mhCAAO,IAAMA,CAAAA,CAAW,wBAEXC,CAAU,CAAA,gBAAA,CACVC,CAAW,CAAA,iBAAA,CAEXC,CAAe,CAAA,kBAAA,CAEfC,EAAY,WACZC,CAAAA,CAAAA,CAAa,YACbC,CAAAA,CAAAA,CAA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GnCpB,CAAAA,CAAAA,CAAAA,CAAWA,EAAS,MAAO,CAAA,GAAGsD,CAAU,CAAA,CAEpCG,eAAgB,CAAA,UAAU,IAC5BzD,CAAWA,CAAAA,CAAAA,CAAS,MAAOuB,CAAAA,EAAAA,EAAU,CAAA,CAAA,CAGhCvB,EAAS,aAAc7B,CAAAA,CAAa,CAAE,CAAA,SAAA,EAC/C","file":"index.js","sourcesContent":["export const GLOB_SRC = '**/*.?([cm])[jt]s?(x)';\n\nexport const GLOB_TS = '**/*.?([cm])ts';\nexport const GLOB_TSX = '**/*.?([cm])tsx';\n\nexport const GLOB_STORIES = '**/*.stories.tsx';\n\nexport const GLOB_JSON = '**/*.json';\nexport const GLOB_JSON5 = '**/*.json5';\nexport const GLOB_JSONC = '**/*.jsonc';\n\nexport const GLOB_CSS = '**/*.css';\n\nexport const GLOB_YAML = '**/*.y?(a)ml';\n\nexport const GLOB_MARKDOWN = '**/*.md';\nexport const GLOB_MARKDOWN_IN_MARKDOWN = '**/*.md/*.md';\nexport const GLOB_MARKDOWN_CODE = `${GLOB_MARKDOWN}/${GLOB_SRC}`;\n\nexport const GLOB_EXCLUDE = [\n '**/node_modules',\n '**/dist',\n '**/package-lock.json',\n '**/yarn.lock',\n '**/pnpm-lock.yaml',\n '**/bun.lockb',\n '**/bun.lock',\n\n '**/output',\n '**/coverage',\n '**/temp',\n '**/.temp',\n '**/tmp',\n '**/.tmp',\n '**/.history',\n '**/.vitepress/cache',\n '**/.nuxt',\n '**/.next',\n '**/.vercel',\n '**/.changeset',\n '**/.idea',\n '**/.cache',\n '**/.output',\n '**/.vite-inspect',\n '**/.yarn',\n\n '**/CHANGELOG*.md',\n '**/*.min.*',\n '**/LICENSE*',\n '**/__snapshots__',\n '**/auto-import?(s).d.ts',\n '**/components.d.ts',\n] as const;\n","import pluginAntfu from 'eslint-plugin-antfu';\n\nimport { GLOB_SRC } from '../globs';\nimport type { TypedFlatConfigItem } from '../types';\n\nexport function antfu(): TypedFlatConfigItem[] {\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:antfu',\n plugins: {\n antfu: pluginAntfu,\n },\n rules: {\n 'antfu/if-newline': 'error',\n 'antfu/top-level-function': 'error',\n },\n },\n ];\n}\n","import pluginDeMorgan from 'eslint-plugin-de-morgan';\n\nimport { GLOB_SRC } from '../globs';\nimport type { TypedFlatConfigItem } from '../types';\n\nexport function boolean(): TypedFlatConfigItem[] {\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:boolean',\n plugins: {\n boolean: pluginDeMorgan,\n },\n rules: {\n ...pluginDeMorgan.configs.recommended.rules,\n },\n },\n ];\n}\n","export const PluginNameMap = {\n '@next/next': 'next',\n '@eslint-react/naming-convention': 'react-naming-convention',\n '@eslint-react/hooks-extra': 'react-hooks-extra',\n '@eslint-react/dom': 'react-dom',\n '@eslint-react/web-api': 'react-web-api',\n '@eslint-react': 'react-extra',\n 'react-hooks': 'react-hooks',\n 'react-compiler': 'react-compiler',\n '@stylistic/eslint-plugin': 'stylistic',\n '@typescript-eslint': 'ts',\n node: 'node',\n '@eslint-community/eslint-comments': 'comments',\n storybook: 'storybook',\n turbo: 'turbo',\n jsdoc: 'jsdoc',\n unicorn: 'unicorn',\n tailwindcss: 'tailwindcss',\n '@tanstack/query': 'tanstack',\n '@2digits': '@2digits',\n '@graphql-eslint': 'gql',\n sonarjs: 'sonar',\n drizzle: 'drizzle',\n 'de-morgan': 'boolean',\n} as const;\n","import pluginComments from '@eslint-community/eslint-plugin-eslint-comments';\nimport configs from '@eslint-community/eslint-plugin-eslint-comments/configs';\nimport { renamePluginsInRules } from 'eslint-flat-config-utils';\n\nimport { PluginNameMap } from '../constants';\nimport { GLOB_SRC } from '../globs';\nimport type { TypedFlatConfigItem } from '../types';\n\nconst recommended = renamePluginsInRules(configs.recommended.rules as never, PluginNameMap);\n\nexport function comments(): TypedFlatConfigItem[] {\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:comments',\n plugins: {\n comments: pluginComments,\n },\n rules: {\n ...recommended,\n\n 'comments/no-unused-disable': 'error',\n 'comments/disable-enable-pair': ['error', { allowWholeFile: true }],\n },\n },\n ];\n}\n","import plugin from '@eslint/css';\nimport { tailwindSyntax } from '@eslint/css/syntax';\n\nimport { GLOB_CSS } from '../globs';\nimport type { TypedFlatConfigItem } from '../types';\n\nexport function css(): TypedFlatConfigItem[] {\n return [\n {\n name: '2digits:css',\n files: [GLOB_CSS],\n language: 'css/css',\n plugins: {\n css: plugin,\n },\n languageOptions: {\n tolerant: true,\n customSyntax: tailwindSyntax,\n },\n rules: {\n ...plugin.configs.recommended.rules,\n },\n },\n ];\n}\n","import type { Awaitable } from 'eslint-flat-config-utils';\n\nexport async function interopDefault<T>(m: Awaitable<T>): Promise<T extends { default: infer U } ? U : T> {\n const resolved = await m;\n\n return ((resolved as Record<string, unknown>).default || resolved) as never;\n}\n","import { fixupPluginRules } from '@eslint/compat';\n\nimport { GLOB_SRC } from '../globs';\nimport type { OptionsWithDrizzle, TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function drizzle(options: OptionsWithDrizzle = {}): Promise<TypedFlatConfigItem[]> {\n const { overrides = {}, drizzleObjectName = ['drizzle', 'db'] } = options;\n\n const drizzle = await interopDefault(import('eslint-plugin-drizzle'));\n\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:drizzle',\n plugins: {\n drizzle: fixupPluginRules(drizzle as never),\n },\n rules: {\n 'drizzle/enforce-update-with-where': ['error', { drizzleObjectName }],\n 'drizzle/enforce-delete-with-where': ['error', { drizzleObjectName }],\n\n ...overrides,\n },\n },\n ];\n}\n","import { renamePluginsInRules } from 'eslint-flat-config-utils';\nimport { loadConfig } from 'graphql-config';\n\nimport { PluginNameMap } from '../constants';\nimport type { OptionsWithFiles, TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function graphql(options: OptionsWithFiles = {}): Promise<TypedFlatConfigItem[]> {\n const { overrides = {}, files = ['**/*.graphql', '**/*.gql'] } = options;\n\n const [gql, gqlSchema] = await Promise.all([\n interopDefault(import('@graphql-eslint/eslint-plugin')),\n loadConfig({ throwOnEmpty: false, throwOnMissing: false }).then((g) => g?.getDefault().schema),\n ]);\n\n const flatRecommended = gql.configs['flat/operations-recommended'].rules;\n\n let rules = {} as typeof flatRecommended;\n\n if (gqlSchema) {\n rules = flatRecommended;\n } else {\n for (const rule of Object.keys(flatRecommended) as Array<keyof typeof rules>) {\n const ruleName = rule.replace('@graphql-eslint/', '') as keyof typeof gql.rules;\n\n if (\n ruleName in gql.rules\n && (gql.rules[ruleName].meta.docs?.requiresSchema || gql.rules[ruleName].meta.docs?.requiresSiblings)\n ) {\n continue;\n }\n rules[rule] = flatRecommended[rule] as never;\n }\n }\n\n const recommended = renamePluginsInRules(rules, PluginNameMap);\n\n return [\n {\n name: '2digits:graphql',\n plugins: {\n gql,\n },\n languageOptions: {\n parser: gql.parser,\n },\n files,\n rules: {\n ...recommended,\n\n 'gql/naming-convention': ['error', { allowLeadingUnderscore: true } as never],\n\n ...overrides,\n },\n },\n ];\n}\n","import { composer } from 'eslint-flat-config-utils';\n\nimport { GLOB_EXCLUDE } from '../globs';\nimport type { OptionsWithIgnores, TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function ignores(options: OptionsWithIgnores = {}): Promise<TypedFlatConfigItem[]> {\n const { gitIgnore, ignores = [] } = options;\n\n return composer(\n {\n ignores: [GLOB_EXCLUDE, ignores].flat(),\n name: '2digits:ignores',\n },\n interopDefault(import('eslint-config-flat-gitignore')).then((m) =>\n m({ strict: false, ...gitIgnore, name: '2digits:gitignore' }),\n ),\n );\n}\n","import eslint from '@eslint/js';\nimport stylistic from '@stylistic/eslint-plugin';\nimport globals from 'globals';\n\nimport { GLOB_SRC } from '../globs';\nimport type { OptionsOverrides, TypedFlatConfigItem } from '../types';\n\nexport function javascript(options: OptionsOverrides = {}): TypedFlatConfigItem[] {\n const { overrides = {} } = options;\n\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:javascript',\n plugins: {\n stylistic,\n },\n languageOptions: {\n ecmaVersion: 2022,\n globals: {\n ...globals.browser,\n ...globals.es2021,\n ...globals.node,\n document: 'readonly',\n navigator: 'readonly',\n window: 'readonly',\n },\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n ecmaVersion: 2022,\n sourceType: 'module',\n },\n sourceType: 'module',\n },\n linterOptions: {\n reportUnusedDisableDirectives: true,\n },\n rules: {\n ...eslint.configs.recommended.rules,\n\n 'accessor-pairs': ['error', { enforceForClassMembers: true, setWithoutGet: true }],\n 'array-callback-return': 'error',\n 'block-scoped-var': 'error',\n 'constructor-super': 'error',\n 'default-case-last': 'error',\n 'dot-notation': ['error', { allowKeywords: true }],\n eqeqeq: ['error', 'smart'],\n 'new-cap': ['error', { capIsNew: false, newIsCap: true, properties: true }],\n 'no-alert': 'error',\n 'no-array-constructor': 'error',\n 'no-async-promise-executor': 'error',\n 'no-caller': 'error',\n 'no-case-declarations': 'error',\n 'no-class-assign': 'error',\n 'no-compare-neg-zero': 'error',\n 'no-cond-assign': ['error', 'always'],\n 'no-const-assign': 'error',\n 'no-control-regex': 'error',\n 'no-debugger': 'error',\n 'no-delete-var': 'error',\n 'no-dupe-args': 'error',\n 'no-dupe-class-members': 'error',\n 'no-dupe-keys': 'error',\n 'no-duplicate-case': 'error',\n 'no-empty': ['error', { allowEmptyCatch: true }],\n 'no-empty-character-class': 'error',\n 'no-empty-pattern': 'error',\n 'no-eval': 'error',\n 'no-ex-assign': 'error',\n 'no-extend-native': 'error',\n 'no-extra-bind': 'error',\n 'no-extra-boolean-cast': 'error',\n 'no-fallthrough': 'error',\n 'no-func-assign': 'error',\n 'no-global-assign': 'error',\n 'no-implied-eval': 'error',\n 'no-import-assign': 'error',\n 'no-invalid-regexp': 'error',\n 'no-irregular-whitespace': 'error',\n 'no-iterator': 'error',\n 'no-labels': ['error', { allowLoop: false, allowSwitch: false }],\n 'no-lone-blocks': 'error',\n 'no-loss-of-precision': 'error',\n 'no-misleading-character-class': 'error',\n 'no-multi-str': 'error',\n 'no-new': 'error',\n 'no-new-func': 'error',\n 'no-new-native-nonconstructor': 'error',\n 'no-new-wrappers': 'error',\n 'no-obj-calls': 'error',\n 'no-octal': 'error',\n 'no-octal-escape': 'error',\n 'no-proto': 'error',\n 'no-prototype-builtins': 'error',\n 'no-redeclare': ['error', { builtinGlobals: false }],\n 'no-regex-spaces': 'error',\n 'no-restricted-globals': [\n 'error',\n { message: 'Use `globalThis` instead.', name: 'global' },\n { message: 'Use `globalThis` instead.', name: 'self' },\n ],\n 'no-restricted-properties': [\n 'error',\n {\n message: 'Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.',\n property: '__proto__',\n },\n {\n message: 'Use `Object.defineProperty` instead.',\n property: '__defineGetter__',\n },\n {\n message: 'Use `Object.defineProperty` instead.',\n property: '__defineSetter__',\n },\n {\n message: 'Use `Object.getOwnPropertyDescriptor` instead.',\n property: '__lookupGetter__',\n },\n {\n message: 'Use `Object.getOwnPropertyDescriptor` instead.',\n property: '__lookupSetter__',\n },\n ],\n 'no-restricted-syntax': [\n 'error',\n 'DebuggerStatement',\n 'LabeledStatement',\n 'WithStatement',\n 'TSEnumDeclaration',\n 'TSExportAssignment',\n ],\n 'no-self-assign': ['error', { props: true }],\n 'no-self-compare': 'error',\n 'no-sequences': 'error',\n 'no-shadow-restricted-names': 'error',\n 'no-sparse-arrays': 'error',\n 'no-template-curly-in-string': 'error',\n 'no-this-before-super': 'error',\n 'no-throw-literal': 'error',\n 'no-undef': 'error',\n 'no-undef-init': 'error',\n 'no-unexpected-multiline': 'error',\n 'no-unmodified-loop-condition': 'error',\n 'no-unneeded-ternary': ['error', { defaultAssignment: false }],\n 'no-unreachable': 'error',\n 'no-unreachable-loop': 'error',\n 'no-unsafe-finally': 'error',\n 'no-unsafe-negation': 'error',\n 'no-unused-expressions': [\n 'error',\n {\n allowShortCircuit: true,\n allowTaggedTemplates: true,\n allowTernary: true,\n },\n ],\n 'no-unused-vars': [\n 'error',\n {\n args: 'none',\n caughtErrors: 'none',\n ignoreRestSiblings: true,\n vars: 'all',\n },\n ],\n 'no-useless-backreference': 'error',\n 'no-useless-call': 'error',\n 'no-useless-catch': 'error',\n 'no-useless-computed-key': 'error',\n 'no-useless-constructor': 'error',\n 'no-useless-rename': 'error',\n 'no-var': 'error',\n 'no-with': 'error',\n 'object-shorthand': [\n 'error',\n 'always',\n {\n avoidQuotes: true,\n ignoreConstructors: false,\n },\n ],\n 'one-var': ['error', { initialized: 'never' }],\n 'prefer-arrow-callback': [\n 'error',\n {\n allowNamedFunctions: true,\n allowUnboundThis: true,\n },\n ],\n 'prefer-const': [\n 'error',\n {\n destructuring: 'all',\n ignoreReadBeforeAssign: true,\n },\n ],\n 'prefer-exponentiation-operator': 'error',\n 'prefer-promise-reject-errors': 'error',\n 'prefer-regex-literals': ['error', { disallowRedundantWrapping: true }],\n 'prefer-rest-params': 'error',\n 'prefer-spread': 'error',\n 'prefer-template': 'error',\n 'symbol-description': 'error',\n 'unicode-bom': ['error', 'never'],\n 'use-isnan': ['error', { enforceForIndexOf: true, enforceForSwitchCase: true }],\n 'valid-typeof': ['error', { requireStringLiterals: true }],\n 'vars-on-top': 'error',\n yoda: ['error', 'never'],\n\n 'stylistic/padding-line-between-statements': [\n 'error',\n { blankLine: 'always', prev: ['const', 'let'], next: '*' },\n {\n blankLine: 'any',\n prev: ['const', 'let'],\n next: ['const', 'let'],\n },\n { blankLine: 'always', prev: '*', next: 'return' },\n ],\n\n ...overrides,\n },\n },\n ];\n}\n","import { GLOB_SRC } from '../globs';\nimport type { TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function jsdoc(): Promise<TypedFlatConfigItem[]> {\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:jsdoc',\n plugins: {\n jsdoc: await interopDefault(import('eslint-plugin-jsdoc')),\n },\n rules: {\n 'jsdoc/check-access': 'error',\n 'jsdoc/check-param-names': 'error',\n 'jsdoc/check-property-names': 'error',\n 'jsdoc/check-types': 'error',\n 'jsdoc/empty-tags': 'error',\n 'jsdoc/implements-on-classes': 'error',\n 'jsdoc/no-defaults': 'error',\n 'jsdoc/no-multi-asterisks': 'error',\n 'jsdoc/require-param-name': 'error',\n 'jsdoc/require-property': 'error',\n 'jsdoc/require-property-description': 'error',\n 'jsdoc/require-property-name': 'error',\n 'jsdoc/require-returns-check': 'error',\n 'jsdoc/require-returns-description': 'error',\n 'jsdoc/require-yields-check': 'error',\n },\n },\n ];\n}\n","import plugin, { configs } from 'eslint-plugin-jsonc';\nimport parser from 'jsonc-eslint-parser';\n\nimport { GLOB_JSON, GLOB_JSON5, GLOB_JSONC } from '../globs';\nimport type { TypedFlatConfigItem } from '../types';\n\nexport function jsonc(): TypedFlatConfigItem[] {\n return [\n ...configs['flat/base'].map((config) => ({ ...config, name: '2digits:jsonc/base' })),\n\n {\n name: '2digits:jsonc/json',\n files: [GLOB_JSON],\n ...SHARED_OPTIONS,\n rules: {\n ...collectRules(configs['flat/recommended-with-json']),\n },\n },\n {\n name: '2digits:jsonc/jsonc',\n files: [GLOB_JSONC],\n ...SHARED_OPTIONS,\n rules: {\n ...collectRules(configs['flat/recommended-with-jsonc']),\n },\n },\n {\n name: '2digits:jsonc/json5',\n files: [GLOB_JSON5],\n ...SHARED_OPTIONS,\n rules: {\n ...collectRules(configs['flat/recommended-with-json5']),\n },\n },\n\n {\n name: '2digits:jsonc/package.json',\n ...SHARED_OPTIONS,\n files: ['**/package.json'],\n rules: {\n 'jsonc/sort-array-values': [\n 'error',\n {\n order: { type: 'asc' },\n pathPattern: '^files$',\n },\n ],\n 'jsonc/sort-keys': [\n 'error',\n {\n order: [\n '$schema',\n 'publisher',\n 'name',\n 'displayName',\n 'version',\n 'private',\n 'description',\n 'funding',\n 'homepage',\n 'repository',\n 'bugs',\n 'categories',\n 'type',\n 'main',\n 'module',\n 'types',\n 'typesVersions',\n 'bin',\n 'files',\n 'exports',\n 'icon',\n 'unpkg',\n 'jsdelivr',\n 'sideEffects',\n 'activationEvents',\n 'contributes',\n 'scripts',\n 'keywords',\n 'author',\n 'license',\n 'workspaces',\n 'dependencies',\n 'devDependencies',\n 'peerDependencies',\n 'peerDependenciesMeta',\n 'optionalDependencies',\n 'packageManager',\n 'engines',\n 'pnpm',\n 'overrides',\n 'resolutions',\n 'husky',\n 'simple-git-hooks',\n 'lint-staged',\n 'eslintConfig',\n 'prettier',\n ],\n pathPattern: '^$',\n },\n {\n order: { type: 'asc' },\n pathPattern: '^(?:dev|peer|optional|bundled)?[Dd]ependencies(Meta)?$',\n },\n {\n order: ['types', 'import', 'module', 'require', 'default'],\n pathPattern: '^exports.*$',\n },\n ],\n },\n },\n\n {\n name: '2digits:jsonc/tsconfig.json',\n ...SHARED_OPTIONS,\n files: [\n '**/tsconfig.json',\n '**/tsconfig.*.json',\n '**/tsconfig-*.json',\n '**/jsconfig.json',\n '**/jsconfig.*.json',\n '**/jsconfig-*.json',\n ],\n rules: {\n 'jsonc/sort-keys': [\n 'error',\n {\n order: ['$schema', 'extends', 'compilerOptions', 'references', 'files', 'include', 'exclude'],\n pathPattern: '^$',\n },\n {\n order: [\n /* Projects */\n 'incremental',\n 'composite',\n 'tsBuildInfoFile',\n 'disableSourceOfProjectReferenceRedirect',\n 'disableSolutionSearching',\n 'disableReferencedProjectLoad',\n /* Language and Environment */\n 'target',\n 'lib',\n 'jsx',\n 'experimentalDecorators',\n 'emitDecoratorMetadata',\n 'jsxFactory',\n 'jsxFragmentFactory',\n 'jsxImportSource',\n 'reactNamespace',\n 'noLib',\n 'useDefineForClassFields',\n 'moduleDetection',\n /* Modules */\n 'module',\n 'rootDir',\n 'moduleResolution',\n 'baseUrl',\n 'paths',\n 'rootDirs',\n 'typeRoots',\n 'types',\n 'allowUmdGlobalAccess',\n 'moduleSuffixes',\n 'allowImportingTsExtensions',\n 'resolvePackageJsonExports',\n 'resolvePackageJsonImports',\n 'customConditions',\n 'resolveJsonModule',\n 'allowArbitraryExtensions',\n 'noResolve',\n /* JavaScript Support */\n 'allowJs',\n 'checkJs',\n 'maxNodeModuleJsDepth',\n /* Emit */\n 'declaration',\n 'declarationMap',\n 'emitDeclarationOnly',\n 'sourceMap',\n 'inlineSourceMap',\n 'outFile',\n 'outDir',\n 'removeComments',\n 'noEmit',\n 'importHelpers',\n 'importsNotUsedAsValues',\n 'downlevelIteration',\n 'sourceRoot',\n 'mapRoot',\n 'inlineSources',\n 'emitBOM',\n 'newLine',\n 'stripInternal',\n 'noEmitHelpers',\n 'noEmitOnError',\n 'preserveConstEnums',\n 'declarationDir',\n 'preserveValueImports',\n /* Interop Constraints */\n 'isolatedModules',\n 'verbatimModuleSyntax',\n 'allowSyntheticDefaultImports',\n 'esModuleInterop',\n 'preserveSymlinks',\n 'forceConsistentCasingInFileNames',\n /* Type Checking */\n 'strict',\n 'strictBindCallApply',\n 'strictFunctionTypes',\n 'strictNullChecks',\n 'strictPropertyInitialization',\n 'allowUnreachableCode',\n 'allowUnusedLabels',\n 'alwaysStrict',\n 'exactOptionalPropertyTypes',\n 'noFallthroughCasesInSwitch',\n 'noImplicitAny',\n 'noImplicitOverride',\n 'noImplicitReturns',\n 'noImplicitThis',\n 'noPropertyAccessFromIndexSignature',\n 'noUncheckedIndexedAccess',\n 'noUnusedLocals',\n 'noUnusedParameters',\n 'useUnknownInCatchVariables',\n /* Completeness */\n 'skipDefaultLibCheck',\n 'skipLibCheck',\n ],\n pathPattern: '^compilerOptions$',\n },\n ],\n },\n },\n\n ...configs['flat/prettier'].map((config) => ({ ...config, name: '2digits:jsonc/prettier' })),\n ];\n}\n\nconst SHARED_OPTIONS = {\n languageOptions: {\n parser,\n },\n plugins: {\n jsonc: plugin,\n },\n} satisfies Pick<TypedFlatConfigItem, 'plugins' | 'languageOptions'>;\n\ntype FlatConfigName = Extract<keyof typeof configs, `flat/${string}`>;\n\nfunction collectRules(config: (typeof configs)[FlatConfigName]) {\n return Object.fromEntries(config.flatMap(({ rules }) => Object.entries(rules ?? {})));\n}\n","import plugin from '@eslint/markdown';\nimport { mergeProcessors, processorPassThrough } from 'eslint-merge-processors';\n\nimport { GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN } from '../globs';\nimport type { TypedFlatConfigItem } from '../types';\n\nconst files = [GLOB_MARKDOWN];\n\nexport function markdown(): TypedFlatConfigItem[] {\n return [\n {\n name: '2digits:markdown/setup',\n plugins: {\n markdown: plugin,\n },\n },\n {\n name: '2digits:markdown/processor',\n files,\n language: 'markdown/gfm',\n ignores: [GLOB_MARKDOWN_IN_MARKDOWN],\n /**\n * `eslint-plugin-markdown` only creates virtual files for code blocks, but not the markdown file itself. We use\n * `eslint-merge-processors` to add a pass-through processor for the markdown file itself.\n */\n processor: mergeProcessors([plugin.processors.markdown, processorPassThrough]),\n },\n {\n name: '2digits:markdown/parser',\n files,\n language: 'markdown/gfm',\n languageOptions: {\n parser: parserPlain,\n },\n },\n {\n name: '2digits:markdown/rules',\n files,\n language: 'markdown/gfm',\n rules: {\n 'markdown/fenced-code-language': 'error',\n 'markdown/heading-increment': 'error',\n 'markdown/no-empty-links': 'error',\n 'markdown/no-invalid-label-refs': 'error',\n 'markdown/no-missing-label-refs': 'error',\n },\n },\n {\n name: '2digits:markdown/disables',\n files: [GLOB_MARKDOWN_CODE],\n languageOptions: {\n parserOptions: {\n ecmaFeatures: {\n impliedStrict: true,\n },\n },\n },\n rules: {\n 'no-alert': 'off',\n 'no-console': 'off',\n 'no-labels': 'off',\n 'no-lone-blocks': 'off',\n 'no-restricted-syntax': 'off',\n 'no-undef': 'off',\n 'no-unused-expressions': 'off',\n 'no-unused-labels': 'off',\n 'no-unused-vars': 'off',\n 'node/prefer-global/process': 'off',\n 'ts/consistent-type-imports': 'off',\n 'ts/explicit-function-return-type': 'off',\n 'ts/no-namespace': 'off',\n 'ts/no-redeclare': 'off',\n 'ts/no-require-imports': 'off',\n 'ts/no-unused-expressions': 'off',\n 'ts/no-unused-vars': 'off',\n 'ts/no-use-before-define': 'off',\n 'unicode-bom': 'off',\n },\n },\n ];\n}\n\nconst parserPlain = {\n meta: {\n name: 'parser-plain',\n },\n parseForESLint: (code: string) => ({\n ast: {\n body: [],\n comments: [],\n loc: { end: code.length, start: 0 },\n range: [0, code.length],\n tokens: [],\n type: 'Program',\n },\n // eslint-disable-next-line unicorn/no-null\n scopeManager: null,\n services: { isPlain: true },\n visitorKeys: {\n Program: [],\n },\n }),\n};\n","import { fixupPluginRules } from '@eslint/compat';\nimport { renamePluginsInRules } from 'eslint-flat-config-utils';\n\nimport { PluginNameMap } from '../constants';\nimport { GLOB_TS, GLOB_TSX } from '../globs';\nimport type { OptionsTypeScriptWithTypes, OptionsWithFiles, TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function next(\n options: OptionsWithFiles & OptionsTypeScriptWithTypes = {},\n): Promise<TypedFlatConfigItem[]> {\n const { files = [GLOB_TS, GLOB_TSX], overrides = {}, parserOptions } = options;\n\n const [next, parser] = await Promise.all([\n interopDefault(import('@next/eslint-plugin-next')),\n interopDefault(import('@typescript-eslint/parser')),\n ]);\n\n const recommended = renamePluginsInRules(\n {\n ...next.configs.recommended.rules,\n ...next.configs['core-web-vitals'].rules,\n },\n PluginNameMap,\n );\n\n return [\n {\n name: '2digits:next/setup',\n plugins: {\n next: fixupPluginRules(next as never),\n },\n },\n {\n name: '2digits:next/rules',\n files,\n languageOptions: {\n parser,\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n projectService: true,\n ...parserOptions,\n },\n sourceType: 'module',\n },\n rules: {\n ...recommended,\n\n 'next/no-html-link-for-pages': 'off',\n\n ...overrides,\n },\n },\n ];\n}\n","import { GLOB_SRC } from '../globs';\nimport { pluginNode } from '../plugins';\nimport type { TypedFlatConfigItem } from '../types';\n\nexport function node(): TypedFlatConfigItem[] {\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:node',\n settings: {\n node: {\n version: '>= 22.0.0',\n },\n },\n plugins: {\n node: pluginNode,\n },\n rules: {\n 'node/handle-callback-err': ['error', '^(err|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-unsupported-features/node-builtins': ['error', { allowExperimental: true }],\n 'node/prefer-global/buffer': 'error',\n 'node/prefer-global/process': 'error',\n 'node/prefer-global/text-encoder': 'error',\n 'node/prefer-global/url': 'error',\n 'node/prefer-global/console': 'error',\n 'node/prefer-global/url-search-params': 'error',\n 'node/prefer-global/text-decoder': 'error',\n 'node/process-exit-as-throw': 'error',\n },\n },\n ];\n}\n","import jsoncParser from 'jsonc-eslint-parser';\nimport yamlParser from 'yaml-eslint-parser';\n\nimport type { TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function pnpm(): Promise<TypedFlatConfigItem[]> {\n const plugin = await interopDefault(import('eslint-plugin-pnpm'));\n\n return [\n {\n name: '2digits:pnpm/package-json',\n files: ['**/package.json'],\n languageOptions: {\n parser: jsoncParser,\n },\n plugins: {\n pnpm: plugin,\n },\n rules: {\n 'pnpm/json-enforce-catalog': 'error',\n 'pnpm/json-prefer-workspace-settings': 'error',\n 'pnpm/json-valid-catalog': 'error',\n },\n },\n {\n name: '2digits:pnpm/pnpm-workspace-yaml',\n files: ['pnpm-workspace.yaml'],\n languageOptions: {\n parser: yamlParser,\n },\n plugins: {\n pnpm: plugin,\n },\n rules: {\n 'pnpm/yaml-no-duplicate-catalog-item': 'error',\n 'pnpm/yaml-no-unused-catalog-item': 'error',\n },\n },\n ];\n}\n","import type { TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function prettier(): Promise<TypedFlatConfigItem[]> {\n const [prettier, stylistic] = await Promise.all([\n interopDefault(import('eslint-config-prettier')),\n interopDefault(import('@stylistic/eslint-plugin')),\n ]);\n\n return [\n {\n name: '2digits:prettier',\n plugins: {\n stylistic,\n },\n rules: {\n ...prettier.rules,\n\n 'tailwindcss/classnames-order': 'off',\n 'stylistic/jsx-newline': ['error', { prevent: false }],\n },\n },\n ];\n}\n","import stylistic from '@stylistic/eslint-plugin';\nimport { renamePluginsInRules } from 'eslint-flat-config-utils';\n\nimport { PluginNameMap } from '../constants';\nimport { GLOB_TS, GLOB_TSX } from '../globs';\nimport type { OptionsTypeScriptWithTypes, OptionsWithReact, TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function react(\n options: OptionsWithReact & OptionsTypeScriptWithTypes = {},\n): Promise<TypedFlatConfigItem[]> {\n const { files = [GLOB_TS, GLOB_TSX], overrides = {}, parserOptions, tsconfigRootDir, reactCompiler = true } = options;\n\n const [pluginReact, pluginReactHooks, parser, pluginReactCompiler] = await Promise.all([\n interopDefault(import('@eslint-react/eslint-plugin')),\n interopDefault(import('eslint-plugin-react-hooks')),\n interopDefault(import('@typescript-eslint/parser')),\n reactCompiler ? interopDefault(import('eslint-plugin-react-compiler')) : undefined,\n ]);\n\n const plugins = pluginReact.configs.all.plugins;\n\n const recommended = renamePluginsInRules(\n {\n ...pluginReactHooks.configs['recommended-latest'].rules,\n ...pluginReact.configs['recommended-type-checked'].rules,\n },\n PluginNameMap,\n );\n\n return [\n {\n name: '2digits:react/setup',\n plugins: {\n stylistic,\n 'react-dom': plugins['@eslint-react/dom'],\n 'react-web-api': plugins['@eslint-react/web-api'],\n 'react-extra': plugins['@eslint-react'],\n 'react-hooks': pluginReactHooks,\n 'react-hooks-extra': plugins['@eslint-react/hooks-extra'],\n 'react-naming-convention': plugins['@eslint-react/naming-convention'],\n ...(reactCompiler ? { 'react-compiler': pluginReactCompiler } : {}),\n },\n settings: {\n react: {\n version: 'detect',\n },\n },\n },\n {\n name: '2digits:react/rules',\n files,\n languageOptions: {\n parser,\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n tsconfigRootDir,\n projectService: true,\n ...parserOptions,\n },\n sourceType: 'module',\n },\n rules: {\n ...recommended,\n\n ...(reactCompiler ? { 'react-compiler/react-compiler': 'error' } : {}),\n\n 'react-hooks-extra/no-unnecessary-use-callback': 'error',\n 'react-hooks-extra/prefer-use-state-lazy-initialization': 'error',\n 'react-hooks-extra/no-redundant-custom-hook': 'error',\n 'react-hooks-extra/no-unnecessary-use-memo': 'error',\n\n 'react-extra/no-useless-fragment': 'off',\n 'react-extra/prefer-read-only-props': 'off',\n 'react-extra/prefer-shorthand-boolean': 'error',\n 'react-extra/prefer-shorthand-fragment': 'error',\n 'react-extra/prefer-react-namespace-import': 'error',\n\n 'react-naming-convention/use-state': 'error',\n\n 'stylistic/jsx-curly-newline': 'off',\n 'stylistic/jsx-newline': ['error', { prevent: false }],\n 'stylistic/jsx-self-closing-comp': 'error',\n\n ...overrides,\n },\n },\n ];\n}\n","import pluginRegexp from 'eslint-plugin-regexp';\n\nimport { GLOB_SRC } from '../globs';\nimport type { TypedFlatConfigItem } from '../types';\n\nexport function regexp(): TypedFlatConfigItem[] {\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:regexp',\n plugins: {\n regexp: pluginRegexp,\n },\n rules: {\n ...pluginRegexp.configs['flat/recommended'].rules,\n },\n },\n ];\n}\n","import { GLOB_SRC } from '../globs';\nimport { pluginSonar } from '../plugins';\nimport type { TypedFlatConfigItem } from '../types';\n\nexport function sonar(): TypedFlatConfigItem[] {\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:sonar',\n plugins: {\n sonar: pluginSonar,\n },\n rules: {\n 'sonar/code-eval': 'error',\n 'sonar/cognitive-complexity': 'error',\n 'sonar/comma-or-logical-or-case': 'error',\n 'sonar/concise-regex': 'error',\n 'sonar/confidential-information-logging': 'error',\n 'sonar/constructor-for-side-effects': 'error',\n 'sonar/content-length': 'error',\n 'sonar/content-security-policy': 'error',\n 'sonar/cookie-no-httponly': 'error',\n 'sonar/cors': 'error',\n 'sonar/csrf': 'error',\n 'sonar/max-switch-cases': 'error',\n 'sonar/no-all-duplicated-branches': 'error',\n 'sonar/no-collapsible-if': 'error',\n 'sonar/no-collection-size-mischeck': 'error',\n 'sonar/no-duplicate-string': ['error', { threshold: 5 }],\n 'sonar/no-duplicated-branches': 'error',\n 'sonar/no-element-overwrite': 'error',\n 'sonar/no-empty-collection': 'error',\n 'sonar/no-extra-arguments': 'error',\n 'sonar/no-for-in-iterable': 'error',\n 'sonar/no-gratuitous-expressions': 'error',\n 'sonar/no-identical-conditions': 'error',\n 'sonar/no-identical-expressions': 'error',\n 'sonar/no-identical-functions': 'error',\n 'sonar/no-ignored-return': 'error',\n 'sonar/no-inverted-boolean-check': 'error',\n 'sonar/no-nested-switch': 'error',\n 'sonar/no-nested-template-literals': 'error',\n 'sonar/no-one-iteration-loop': 'error',\n 'sonar/no-redundant-boolean': 'error',\n 'sonar/no-same-line-conditional': 'error',\n 'sonar/no-small-switch': 'error',\n 'sonar/no-unused-collection': 'error',\n 'sonar/no-use-of-empty-return-value': 'error',\n 'sonar/no-useless-catch': 'error',\n 'sonar/non-existent-operator': 'error',\n 'sonar/prefer-immediate-return': 'error',\n 'sonar/prefer-object-literal': 'error',\n 'sonar/prefer-single-boolean-return': 'error',\n 'sonar/prefer-while': 'error',\n\n 'sonar/elseif-without-else': 'off',\n 'sonar/no-redundant-jump': 'off',\n },\n },\n ];\n}\n","import { fixupPluginRules } from '@eslint/compat';\nimport type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';\n\nimport { GLOB_STORIES } from '../globs';\nimport type { OptionsTypeScriptWithTypes, OptionsWithStorybook, TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function storybook(\n options: OptionsWithStorybook & OptionsTypeScriptWithTypes = {},\n): Promise<TypedFlatConfigItem[]> {\n const { files = [GLOB_STORIES], overrides = {}, parserOptions, storybookDirectory = '.storybook' } = options;\n\n const [storybook, parser] = await Promise.all([\n interopDefault(import('eslint-plugin-storybook')),\n interopDefault(import('@typescript-eslint/parser')),\n ]);\n\n const languageOptions = {\n parser,\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n projectService: true,\n ...parserOptions,\n },\n sourceType: 'module',\n } satisfies FlatConfig.LanguageOptions;\n\n return [\n {\n name: '2digits:storybook/setup',\n plugins: {\n storybook: fixupPluginRules(storybook as never),\n },\n },\n {\n name: '2digits:storybook/rules',\n files,\n languageOptions,\n rules: {\n 'storybook/await-interactions': 'error',\n 'storybook/context-in-play-function': 'error',\n 'storybook/csf-component': 'error',\n 'storybook/default-exports': 'error',\n 'storybook/hierarchy-separator': 'error',\n 'storybook/meta-inline-properties': 'error',\n 'storybook/no-redundant-story-name': 'error',\n 'storybook/no-stories-of': 'error',\n 'storybook/no-title-property-in-meta': 'error',\n 'storybook/no-uninstalled-addons': 'error',\n 'storybook/prefer-pascal-case': 'error',\n 'storybook/story-exports': 'error',\n 'storybook/use-storybook-expect': 'error',\n 'storybook/use-storybook-testing-library': 'error',\n 'storybook/meta-satisfies-type': 'error',\n\n ...overrides,\n },\n },\n {\n name: '2digits:storybook/disables',\n files,\n rules: {\n 'react-hooks/rules-of-hooks': 'off',\n 'react/display-name': 'off',\n 'sonar/no-duplicate-string': 'off',\n },\n },\n {\n name: '2digits:storybook/config',\n files: [`${storybookDirectory}/main.@(js|cjs|mjs|ts)`],\n languageOptions,\n rules: {\n 'storybook/no-uninstalled-addons': 'error',\n },\n },\n ];\n}\n","import { findUp } from 'find-up';\n\nimport { GLOB_SRC } from '../globs';\nimport type { OptionsOverrides, TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function tailwind(options: OptionsOverrides = {}): Promise<TypedFlatConfigItem[]> {\n const { overrides = {} } = options;\n\n const [tailwindcss, { tailwindFunctions }, config] = await Promise.all([\n interopDefault(import('eslint-plugin-tailwindcss')),\n interopDefault(import('@2digits/constants')),\n findUp(['tailwind.config.ts', 'tailwind.config.js']),\n ]);\n\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:tailwind',\n plugins: {\n tailwindcss,\n },\n settings: {\n tailwindcss: {\n callees: tailwindFunctions,\n config,\n },\n },\n rules: {\n ...tailwindcss.configs.recommended.rules,\n\n ...overrides,\n },\n },\n ];\n}\n","import { renamePluginsInRules } from 'eslint-flat-config-utils';\n\nimport { PluginNameMap } from '../constants';\nimport { GLOB_SRC } from '../globs';\nimport type { OptionsOverrides, TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function tanstack(options: OptionsOverrides = {}): Promise<TypedFlatConfigItem[]> {\n const { overrides = {} } = options;\n\n const tanstack = await interopDefault(import('@tanstack/eslint-plugin-query'));\n\n const recommended = renamePluginsInRules(tanstack.configs['flat/recommended'].at(0)?.rules ?? {}, PluginNameMap);\n\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:tanstack',\n plugins: { tanstack },\n rules: {\n ...recommended,\n\n ...overrides,\n },\n },\n ];\n}\n","import { GLOB_SRC } from '../globs';\nimport type { OptionsOverrides, TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function turbo(options: OptionsOverrides = {}): Promise<TypedFlatConfigItem[]> {\n const { overrides = {} } = options;\n\n const turbo = await interopDefault(import('eslint-plugin-turbo'));\n\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:turbo',\n plugins: {\n turbo,\n },\n rules: {\n 'turbo/no-undeclared-env-vars': 'error',\n\n ...overrides,\n },\n },\n ];\n}\n","import { renamePluginsInConfigs } from 'eslint-flat-config-utils';\n\nimport { PluginNameMap } from '../constants';\nimport { GLOB_MARKDOWN_CODE, GLOB_SRC } from '../globs';\nimport type { OptionsTypeScriptWithTypes, TypedFlatConfigItem } from '../types';\nimport { interopDefault } from '../utils';\n\nexport async function typescript(options: OptionsTypeScriptWithTypes = {}): Promise<TypedFlatConfigItem[]> {\n const { overrides = {}, parserOptions = {} } = options;\n\n const [{ plugin, configs, parser }, twoDigits] = await Promise.all([\n interopDefault(import('typescript-eslint')),\n interopDefault(import('@2digits/eslint-plugin')),\n ]);\n\n const strictConfig = renamePluginsInConfigs(configs.strictTypeChecked as never, PluginNameMap);\n\n const rules = Object.fromEntries(strictConfig.flatMap(({ rules }) => Object.entries(rules ?? {})));\n\n return [\n {\n name: '2digits:typescript/setup',\n plugins: {\n ts: plugin,\n '@2digits': twoDigits,\n },\n },\n {\n name: '2digits:typescript/rules',\n files: [GLOB_SRC],\n ignores: [GLOB_MARKDOWN_CODE],\n languageOptions: {\n parser,\n parserOptions: {\n tsconfigRootDir: process.cwd(),\n projectService: true,\n warnOnUnsupportedTypeScriptVersion: false,\n ...parserOptions,\n },\n sourceType: 'module',\n },\n rules: {\n ...rules,\n 'ts/restrict-template-expressions': ['error', { allowNumber: true }],\n 'ts/ban-ts-comment': ['error', { 'ts-ignore': 'allow-with-description' }],\n 'ts/consistent-type-exports': ['error'],\n 'ts/consistent-type-imports': [\n 'error',\n {\n prefer: 'type-imports',\n disallowTypeAnnotations: false,\n fixStyle: 'inline-type-imports',\n },\n ],\n 'ts/no-empty-object-type': ['error', { allowInterfaces: 'with-single-extends', allowObjectTypes: 'never' }],\n 'ts/no-explicit-any': ['error'],\n 'ts/no-import-type-side-effects': ['error'],\n 'ts/no-misused-promises': 'off',\n 'ts/no-confusing-void-expression': 'off',\n 'ts/no-unused-vars': [\n 'error',\n {\n ignoreRestSiblings: true,\n argsIgnorePattern: '^_',\n varsIgnorePattern: '^_',\n },\n ],\n 'ts/unbound-method': 'off',\n\n ...twoDigits.configs.recommended.rules,\n\n ...overrides,\n },\n },\n {\n name: '2digits:typescript/disables/dts',\n files: ['**/*.d.ts'],\n ignores: [GLOB_MARKDOWN_CODE],\n rules: {\n 'unicorn/no-abusive-eslint-disable': 'off',\n 'no-duplicate-imports': 'off',\n 'no-restricted-syntax': 'off',\n 'ts/no-unused-vars': 'off',\n },\n },\n {\n name: '2digits:typescript/disables/test',\n files: ['**/*.{test,spec}.ts?(x)'],\n ignores: [GLOB_MARKDOWN_CODE],\n rules: {\n 'no-unused-expressions': 'off',\n },\n },\n {\n name: '2digits:typescript/disables/cjs',\n files: ['**/*.js', '**/*.cjs', '**/*.cts'],\n ignores: [GLOB_MARKDOWN_CODE],\n rules: {\n 'ts/no-require-imports': 'off',\n 'ts/no-var-requires': 'off',\n },\n },\n ];\n}\n","import { GLOB_SRC } from '../globs';\nimport { pluginUnicorn } from '../plugins';\nimport type { TypedFlatConfigItem } from '../types';\n\nexport function unicorn(): TypedFlatConfigItem[] {\n return [\n {\n files: [GLOB_SRC],\n name: '2digits:unicorn',\n plugins: {\n unicorn: pluginUnicorn,\n },\n rules: {\n ...pluginUnicorn.configs.recommended.rules,\n\n 'unicorn/filename-case': ['off'],\n 'unicorn/prefer-module': ['off'],\n 'unicorn/prevent-abbreviations': ['off'],\n 'unicorn/prefer-ternary': ['error', 'only-single-line'],\n 'unicorn/no-useless-undefined': [\n 'error',\n {\n checkArguments: false,\n checkArrowFunctionBody: false,\n },\n ],\n 'unicorn/prefer-top-level-await': ['off'],\n },\n },\n ];\n}\n","import yml from 'eslint-plugin-yml';\nimport parser from 'yaml-eslint-parser';\n\nimport { GLOB_YAML } from '../globs';\nimport type { TypedFlatConfigItem } from '../types';\n\nexport function yaml(): TypedFlatConfigItem[] {\n return [\n {\n name: '2digits:yaml/setup',\n plugins: {\n yml,\n },\n },\n\n {\n name: '2digits:yaml/base',\n ...SHARED_OPTIONS,\n rules: {\n 'no-irregular-whitespace': 'off',\n 'no-unused-vars': 'off',\n 'spaced-comment': 'off',\n },\n },\n\n {\n name: '2digits:yaml/recommended',\n ...SHARED_OPTIONS,\n rules: {\n 'yml/no-empty-document': 'error',\n 'yml/no-empty-key': 'error',\n 'yml/no-empty-mapping-value': 'error',\n 'yml/no-empty-sequence-entry': 'error',\n 'yml/no-irregular-whitespace': 'error',\n 'yml/no-tab-indent': 'error',\n 'yml/vue-custom-block/no-parsing-error': 'error',\n },\n },\n\n {\n name: '2digits:yaml/standard',\n ...SHARED_OPTIONS,\n rules: {\n 'yml/block-mapping': 'error',\n 'yml/block-sequence': 'error',\n 'yml/plain-scalar': 'error',\n 'yml/spaced-comment': 'error',\n },\n },\n\n {\n name: '2digits:yaml/pnpm-workspace',\n ...SHARED_OPTIONS,\n files: ['pnpm-workspace.yaml'],\n rules: {\n 'yml/sort-keys': [\n 'error',\n {\n order: [\n 'packages',\n 'overrides',\n 'patchedDependencies',\n 'hoistPattern',\n 'catalog',\n 'catalogs',\n\n 'allowedDeprecatedVersions',\n 'allowNonAppliedPatches',\n 'configDependencies',\n 'ignoredBuiltDependencies',\n 'ignoredOptionalDependencies',\n 'neverBuiltDependencies',\n 'onlyBuiltDependencies',\n 'onlyBuiltDependenciesFile',\n 'packageExtensions',\n 'peerDependencyRules',\n 'supportedArchitectures',\n ],\n pathPattern: '^$',\n },\n {\n order: { type: 'asc' },\n pathPattern: '.*',\n },\n ],\n },\n },\n\n {\n name: '2digits:yaml/prettier',\n ...SHARED_OPTIONS,\n rules: {\n 'yml/block-mapping-colon-indicator-newline': 'off',\n 'yml/block-mapping-question-indicator-newline': 'off',\n 'yml/block-sequence-hyphen-indicator-newline': 'off',\n 'yml/flow-mapping-curly-newline': 'off',\n 'yml/flow-mapping-curly-spacing': 'off',\n 'yml/flow-sequence-bracket-newline': 'off',\n 'yml/flow-sequence-bracket-spacing': 'off',\n 'yml/indent': 'off',\n 'yml/key-spacing': 'off',\n 'yml/no-multiple-empty-lines': 'off',\n 'yml/no-trailing-zeros': 'off',\n 'yml/quotes': 'off',\n },\n },\n ];\n}\n\nconst SHARED_OPTIONS = {\n files: [GLOB_YAML],\n languageOptions: {\n parser,\n },\n} satisfies Pick<TypedFlatConfigItem, 'languageOptions' | 'files'>;\n","import { FlatConfigComposer } from 'eslint-flat-config-utils';\nimport { findUp } from 'find-up';\nimport { isPackageExists } from 'local-pkg';\n\nimport {\n antfu,\n boolean,\n comments,\n css,\n drizzle,\n graphql,\n ignores,\n javascript,\n jsdoc,\n jsonc,\n markdown,\n next,\n node,\n pnpm,\n prettier,\n react,\n regexp,\n sonar,\n storybook,\n tailwind,\n tanstack,\n turbo,\n typescript,\n unicorn,\n yaml,\n} from './configs';\nimport { PluginNameMap } from './constants';\nimport type {\n ConfigNames,\n OptionsOverrides,\n OptionsTypeScriptWithTypes,\n OptionsWithDrizzle,\n OptionsWithFiles,\n OptionsWithIgnores,\n OptionsWithReact,\n OptionsWithStorybook,\n TypedFlatConfigItem,\n} from './types';\n\ntype SharedOptions<T = unknown> = T & {\n enable?: boolean;\n};\n\ninterface ESLint2DigitsOptions {\n ignores?: OptionsWithIgnores;\n turbo?: SharedOptions<OptionsOverrides> | boolean;\n js?: OptionsOverrides;\n ts?: SharedOptions<OptionsTypeScriptWithTypes> | boolean;\n pnpm?: SharedOptions | boolean;\n graphql?: SharedOptions<OptionsWithFiles> | boolean;\n react?: SharedOptions<OptionsWithReact> | boolean;\n next?: SharedOptions<OptionsWithFiles> | boolean;\n tailwind?: SharedOptions<OptionsOverrides> | boolean;\n storybook?: SharedOptions<OptionsWithStorybook> | boolean;\n tanstack?: SharedOptions<OptionsOverrides> | boolean;\n drizzle?: SharedOptions<OptionsWithDrizzle> | boolean;\n}\n\nfunction enabled<T extends SharedOptions>(options: T | boolean | undefined, defaults?: boolean): options is T {\n if (typeof options === 'boolean') {\n return options;\n }\n\n return options?.enable ?? defaults ?? false;\n}\n\nfunction config<T>(options: SharedOptions<T> | undefined | boolean): T {\n if (typeof options === 'boolean' || options === undefined) {\n return {} as T;\n }\n\n const { enable, ...rest } = options;\n\n return rest as T;\n}\n\nexport async function twoDigits(\n options: ESLint2DigitsOptions = {},\n ...userConfig: TypedFlatConfigItem[]\n): Promise<TypedFlatConfigItem[]> {\n let pnpmPromise;\n\n if (options.pnpm === undefined) {\n pnpmPromise = findUp('pnpm-workspace.yaml');\n }\n\n let composer = new FlatConfigComposer<TypedFlatConfigItem, ConfigNames>(\n ignores(options.ignores),\n javascript(options.js),\n boolean(),\n node(),\n comments(),\n jsdoc(),\n unicorn(),\n sonar(),\n regexp(),\n antfu(),\n jsonc(),\n css(),\n yaml(),\n markdown(),\n );\n\n if (enabled(options.turbo, isPackageExists('turbo'))) {\n composer = composer.append(turbo(config(options.turbo)));\n }\n\n const { overrides, ...typescriptOptions } = config(options.ts);\n\n if (enabled(options.ts, isPackageExists('typescript'))) {\n composer = composer.append(typescript(config(options.ts)));\n }\n\n if (enabled(options.react, isPackageExists('react'))) {\n composer = composer.append(\n react({\n ...config(options.react),\n ...typescriptOptions,\n }),\n );\n }\n\n if (enabled(options.next, isPackageExists('next'))) {\n composer = composer.append(\n next({\n ...config(options.next),\n ...typescriptOptions,\n }),\n );\n }\n\n if (enabled(options.storybook, isPackageExists('storybook'))) {\n composer = composer.append(\n storybook({\n ...config(options.storybook),\n ...typescriptOptions,\n }),\n );\n }\n\n if (enabled(options.tailwind, isPackageExists('tailwindcss'))) {\n composer = composer.append(tailwind(config(options.tailwind)));\n }\n\n if (\n enabled(\n options.tanstack,\n isPackageExists('react-query')\n || isPackageExists('@tanstack/react-query')\n || isPackageExists('@tanstack/react-query-devtools'),\n )\n ) {\n composer = composer.append(tanstack(config(options.tanstack)));\n }\n\n if (enabled(options.drizzle, isPackageExists('drizzle-kit') || isPackageExists('drizzle-orm'))) {\n composer = composer.append(drizzle(config(options.drizzle)));\n }\n\n if (enabled(options.graphql, isPackageExists('graphql'))) {\n composer = composer.append(graphql(config(options.graphql)));\n }\n\n if (enabled(options.pnpm, !!(await pnpmPromise))) {\n composer = composer.append(pnpm());\n }\n\n composer = composer.append(...userConfig);\n\n if (isPackageExists('prettier')) {\n composer = composer.append(prettier());\n }\n\n return composer.renamePlugins(PluginNameMap).toConfigs();\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2digits/eslint-config",
3
- "version": "4.3.2",
3
+ "version": "4.3.3",
4
4
  "description": "Effortlessly enforce best practices and catch errors with this comprehensive ESLint configuration for TypeScript, featuring popular plugins like @typescript-eslint, eslint-plugin-react, and eslint-plugin-unicorn.",
5
5
  "homepage": "https://2d-configs.vercel.app/",
6
6
  "repository": {
@@ -41,7 +41,7 @@
41
41
  "@eslint/js": "9.23.0",
42
42
  "@eslint/markdown": "6.3.0",
43
43
  "@graphql-eslint/eslint-plugin": "4.3.0",
44
- "@next/eslint-plugin-next": "15.2.3",
44
+ "@next/eslint-plugin-next": "15.2.4",
45
45
  "@stylistic/eslint-plugin": "4.2.0",
46
46
  "@tanstack/eslint-plugin-query": "5.68.0",
47
47
  "@typescript-eslint/parser": "8.28.0",
@@ -53,14 +53,14 @@
53
53
  "eslint-plugin-de-morgan": "1.2.1",
54
54
  "eslint-plugin-drizzle": "0.2.3",
55
55
  "eslint-plugin-jsdoc": "50.6.9",
56
- "eslint-plugin-jsonc": "2.19.1",
56
+ "eslint-plugin-jsonc": "2.20.0",
57
57
  "eslint-plugin-n": "17.16.2",
58
58
  "eslint-plugin-pnpm": "0.3.1",
59
59
  "eslint-plugin-react-compiler": "19.0.0-beta-e552027-20250112",
60
60
  "eslint-plugin-react-hooks": "5.2.0",
61
61
  "eslint-plugin-regexp": "2.7.0",
62
62
  "eslint-plugin-sonarjs": "3.0.2",
63
- "eslint-plugin-storybook": "0.11.6",
63
+ "eslint-plugin-storybook": "0.12.0",
64
64
  "eslint-plugin-tailwindcss": "3.18.0",
65
65
  "eslint-plugin-turbo": "2.4.4",
66
66
  "eslint-plugin-unicorn": "58.0.0",