@santi020k/eslint-config-integrations 2.0.0-beta.0 → 2.0.0-beta.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.
|
@@ -11,8 +11,7 @@ const regexp = defineLazyConfig("regexp", async () => {
|
|
|
11
11
|
},
|
|
12
12
|
rules: {
|
|
13
13
|
// Use recommended rules as base
|
|
14
|
-
|
|
15
|
-
...pluginRegexp.configs?.["flat/recommended"]?.rules,
|
|
14
|
+
...pluginRegexp.configs["flat/recommended"].rules,
|
|
16
15
|
"regexp/no-super-linear-backtracking": "error",
|
|
17
16
|
// Downgrade some rules to warnings for a smoother adoption
|
|
18
17
|
"regexp/no-unused-capturing-group": "warn",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/extensions/regexp.ts"],"sourcesContent":["import { GLOB_JS_TS } from '@santi020k/eslint-config-core'\n\nimport type { TSESLint } from '@typescript-eslint/utils'\nimport type PluginRegexp from 'eslint-plugin-regexp'\n\nimport { defineLazyConfig, loadModule } from '../lazy.js'\n\n/**\n * RegExp ESLint configuration\n * Catches common regex mistakes like exponential backtracking,\n * unnecessary escapes, and optimizable character classes\n */\nexport const regexp: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('regexp', async () => {\n const pluginRegexp = await loadModule<typeof PluginRegexp>('eslint-plugin-regexp')\n\n return [\n {\n files: GLOB_JS_TS,\n name: 'integrations/regexp',\n plugins: {\n regexp: pluginRegexp\n },\n rules: {\n // Use recommended rules as base\n
|
|
1
|
+
{"version":3,"sources":["../../src/extensions/regexp.ts"],"sourcesContent":["import { GLOB_JS_TS } from '@santi020k/eslint-config-core'\n\nimport type { TSESLint } from '@typescript-eslint/utils'\nimport type PluginRegexp from 'eslint-plugin-regexp'\n\nimport { defineLazyConfig, loadModule } from '../lazy.js'\n\n/**\n * RegExp ESLint configuration\n * Catches common regex mistakes like exponential backtracking,\n * unnecessary escapes, and optimizable character classes\n */\nexport const regexp: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('regexp', async () => {\n const pluginRegexp = await loadModule<typeof PluginRegexp>('eslint-plugin-regexp')\n\n return [\n {\n files: GLOB_JS_TS,\n name: 'integrations/regexp',\n plugins: {\n regexp: pluginRegexp\n },\n rules: {\n // Use recommended rules as base\n ...pluginRegexp.configs['flat/recommended'].rules,\n\n 'regexp/no-super-linear-backtracking': 'error',\n // Downgrade some rules to warnings for a smoother adoption\n 'regexp/no-unused-capturing-group': 'warn',\n 'regexp/no-useless-escape': 'warn',\n 'regexp/prefer-character-class': 'warn'\n }\n }\n ]\n})\n"],"mappings":"AAAA,SAAS,kBAAkB;AAK3B,SAAS,kBAAkB,kBAAkB;AAOtC,MAAM,SAAyD,iBAAiB,UAAU,YAAY;AAC3G,QAAM,eAAe,MAAM,WAAgC,sBAAsB;AAEjF,SAAO;AAAA,IACL;AAAA,MACE,OAAO;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,QACP,QAAQ;AAAA,MACV;AAAA,MACA,OAAO;AAAA;AAAA,QAEL,GAAG,aAAa,QAAQ,kBAAkB,EAAE;AAAA,QAE5C,uCAAuC;AAAA;AAAA,QAEvC,oCAAoC;AAAA,QACpC,4BAA4B;AAAA,QAC5B,iCAAiC;AAAA,MACnC;AAAA,IACF;AAAA,EACF;AACF,CAAC;","names":[]}
|
|
@@ -4,11 +4,14 @@ const playwright = defineLazyConfig("playwright", async () => {
|
|
|
4
4
|
return [
|
|
5
5
|
{
|
|
6
6
|
files: [
|
|
7
|
-
"**/e2e/**/*.{js,ts,jsx,tsx}",
|
|
8
|
-
"**/tests
|
|
9
|
-
"
|
|
10
|
-
"**/*.e2e.
|
|
11
|
-
"
|
|
7
|
+
"**/e2e/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}",
|
|
8
|
+
"**/tests/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}",
|
|
9
|
+
"**/tests/e2e/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}",
|
|
10
|
+
"**/*.e2e.{js,mjs,cjs,ts,mts,cts,jsx,tsx}",
|
|
11
|
+
"**/*.e2e.spec.{js,mjs,cjs,ts,mts,cts,jsx,tsx}",
|
|
12
|
+
"**/*.playwright.{js,mjs,cjs,ts,mts,cts,jsx,tsx}",
|
|
13
|
+
"**/*.playwright.spec.{js,mjs,cjs,ts,mts,cts,jsx,tsx}",
|
|
14
|
+
"**/playwright/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"
|
|
12
15
|
],
|
|
13
16
|
name: "integrations/playwright",
|
|
14
17
|
...pluginPlaywright.configs["flat/recommended"]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/testing/playwright.ts"],"sourcesContent":["import type { TSESLint } from '@typescript-eslint/utils'\n\nimport { defineLazyConfig, loadDefault, type PluginWithConfigs } from '../lazy.js'\n\n/**\n * Playwright ESLint configuration\n * Provides linting rules for Playwright end-to-end test files\n */\nexport const playwright: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('playwright', async () => {\n const pluginPlaywright = await loadDefault<PluginWithConfigs<'flat/recommended'>>('eslint-plugin-playwright')\n\n return [\n {\n files: [\n '**/e2e/**/*.{js,ts,jsx,tsx}',\n '**/tests/e2e/**/*.{js,ts,jsx,tsx}',\n '**/*.e2e.{js,ts,jsx,tsx}',\n '**/*.e2e.spec.{js,ts,jsx,tsx}',\n '**/playwright/**/*.{js,ts,jsx,tsx}'\n ],\n name: 'integrations/playwright',\n ...pluginPlaywright.configs['flat/recommended']\n }\n ]\n})\n"],"mappings":"AAEA,SAAS,kBAAkB,mBAA2C;AAM/D,MAAM,aAA6D,iBAAiB,cAAc,YAAY;AACnH,QAAM,mBAAmB,MAAM,YAAmD,0BAA0B;AAE5G,SAAO;AAAA,IACL;AAAA,MACE,OAAO;AAAA,QACL;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACA,MAAM;AAAA,MACN,GAAG,iBAAiB,QAAQ,kBAAkB;AAAA,IAChD;AAAA,EACF;AACF,CAAC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/testing/playwright.ts"],"sourcesContent":["import type { TSESLint } from '@typescript-eslint/utils'\n\nimport { defineLazyConfig, loadDefault, type PluginWithConfigs } from '../lazy.js'\n\n/**\n * Playwright ESLint configuration\n * Provides linting rules for Playwright end-to-end test files\n */\nexport const playwright: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('playwright', async () => {\n const pluginPlaywright = await loadDefault<PluginWithConfigs<'flat/recommended'>>('eslint-plugin-playwright')\n\n return [\n {\n files: [\n '**/e2e/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',\n '**/tests/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',\n '**/tests/e2e/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',\n '**/*.e2e.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',\n '**/*.e2e.spec.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',\n '**/*.playwright.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',\n '**/*.playwright.spec.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',\n '**/playwright/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'\n ],\n name: 'integrations/playwright',\n ...pluginPlaywright.configs['flat/recommended']\n }\n ]\n})\n"],"mappings":"AAEA,SAAS,kBAAkB,mBAA2C;AAM/D,MAAM,aAA6D,iBAAiB,cAAc,YAAY;AACnH,QAAM,mBAAmB,MAAM,YAAmD,0BAA0B;AAE5G,SAAO;AAAA,IACL;AAAA,MACE,OAAO;AAAA,QACL;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACA,MAAM;AAAA,MACN,GAAG,iBAAiB,QAAQ,kBAAkB;AAAA,IAChD;AAAA,EACF;AACF,CAAC;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@santi020k/eslint-config-integrations",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -91,10 +91,11 @@
|
|
|
91
91
|
"globals": "^17.6.0",
|
|
92
92
|
"storybook": "^10.4.6",
|
|
93
93
|
"typescript-eslint": "^8.61.1",
|
|
94
|
-
"@santi020k/eslint-config-core": "2.0.0-beta.
|
|
94
|
+
"@santi020k/eslint-config-core": "2.0.0-beta.3"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
97
|
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
98
|
+
"@types/node": "^25.9.3",
|
|
98
99
|
"eslint": "^10.0.0",
|
|
99
100
|
"publint": "^0.3.21",
|
|
100
101
|
"tailwindcss": "^4.3.1",
|