@commencis/eslint-config 2.4.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,17 @@
1
+ import { t as FlatConfig } from "./config.types-M1gOzpFJ.mjs";
2
+ import { javascriptConfig } from "./configs/javascript.mjs";
3
+ import { nextConfig } from "./configs/next.mjs";
4
+ import { reactConfig } from "./configs/react.mjs";
5
+ import { typescriptConfig } from "./configs/typescript.mjs";
6
+
7
+ //#region src/lib/configFactory.d.ts
8
+ type ConfigFactoryOptions = {
9
+ typescript?: boolean;
10
+ react?: boolean;
11
+ reactCompiler?: boolean;
12
+ jsxA11y?: boolean;
13
+ nextjs?: boolean;
14
+ };
15
+ declare function configFactory(options?: ConfigFactoryOptions): FlatConfig;
16
+ //#endregion
17
+ export { configFactory, javascriptConfig, nextConfig, reactConfig, typescriptConfig };
package/dist/index.mjs ADDED
@@ -0,0 +1,7 @@
1
+ import { t as configFactory } from "./configFactory-D_qKOxEp.mjs";
2
+ import { javascriptConfig } from "./configs/javascript.mjs";
3
+ import { nextConfig } from "./configs/next.mjs";
4
+ import { reactConfig } from "./configs/react.mjs";
5
+ import { typescriptConfig } from "./configs/typescript.mjs";
6
+
7
+ export { configFactory, javascriptConfig, nextConfig, reactConfig, typescriptConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commencis/eslint-config",
3
- "version": "2.4.0",
3
+ "version": "3.0.0",
4
4
  "description": "Commencis ESLint config",
5
5
  "author": "Commencis WEB Team",
6
6
  "license": "Apache-2.0",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "repository": {
13
13
  "type": "git",
14
- "url": "git+https://github.com/Commencis/js-toolkit.git",
14
+ "url": "https://github.com/Commencis/js-toolkit.git",
15
15
  "directory": "packages/eslint-config"
16
16
  },
17
17
  "publishConfig": {
@@ -28,61 +28,49 @@
28
28
  "types": "./dist/index.d.ts",
29
29
  "import": "./dist/index.js"
30
30
  },
31
- "./base": {
32
- "types": "./dist/configs/base.d.ts",
33
- "import": "./dist/configs/base.js"
31
+ "./javascript": {
32
+ "types": "./dist/configs/javascript.d.ts",
33
+ "import": "./dist/configs/javascript.js"
34
34
  },
35
- "./next": {
36
- "types": "./dist/configs/next.d.ts",
37
- "import": "./dist/configs/next.js"
38
- },
39
- "./prettier": {
40
- "types": "./dist/configs/prettier.d.ts",
41
- "import": "./dist/configs/prettier.js"
35
+ "./typescript": {
36
+ "types": "./dist/configs/typescript.d.ts",
37
+ "import": "./dist/configs/typescript.js"
42
38
  },
43
39
  "./react": {
44
40
  "types": "./dist/configs/react.d.ts",
45
41
  "import": "./dist/configs/react.js"
46
42
  },
47
- "./react-native": {
48
- "types": "./dist/configs/react-native.d.ts",
49
- "import": "./dist/configs/react-native.js"
50
- },
51
- "./typescript": {
52
- "types": "./dist/configs/typescript.d.ts",
53
- "import": "./dist/configs/typescript.js"
43
+ "./next": {
44
+ "types": "./dist/configs/next.d.ts",
45
+ "import": "./dist/configs/next.js"
54
46
  },
55
- "./vue": {
56
- "types": "./dist/configs/vue.d.ts",
57
- "import": "./dist/configs/vue.js"
47
+ "./native": {
48
+ "types": "./dist/configs/native.d.ts",
49
+ "import": "./dist/configs/native.js"
58
50
  }
59
51
  },
60
52
  "dependencies": {
61
- "@eslint/js": "9.39.1",
62
- "@next/eslint-plugin-next": "15.5.6",
63
- "@typescript-eslint/utils": "8.48.0",
53
+ "@next/eslint-plugin-next": "16.1.1",
54
+ "@typescript-eslint/utils": "8.51.0",
64
55
  "eslint-config-prettier": "10.1.8",
65
56
  "eslint-plugin-jsx-a11y": "6.10.2",
66
57
  "eslint-plugin-prettier": "5.5.4",
67
58
  "eslint-plugin-react": "7.37.5",
68
- "eslint-plugin-react-hooks": "5.2.0",
59
+ "eslint-plugin-react-hooks": "7.0.1",
69
60
  "eslint-plugin-simple-import-sort": "12.1.1",
70
- "eslint-plugin-vue": "10.6.2",
71
- "globals": "16.5.0",
72
- "typescript-eslint": "8.48.0"
61
+ "globals": "17.0.0",
62
+ "typescript-eslint": "8.51.0"
73
63
  },
74
64
  "devDependencies": {
75
- "@commencis/ts-config": "0.0.2",
76
- "eslint": "9.39.1",
77
- "tsup": "8.5.1",
78
- "typescript": "5.9.3"
65
+ "@commencis/ts-config": "1.0.0",
66
+ "eslint": "9.39.2"
79
67
  },
80
68
  "peerDependencies": {
81
- "eslint": ">= 9.7"
69
+ "eslint": ">=9.39"
82
70
  },
83
71
  "scripts": {
84
- "dev": "tsup --watch",
85
- "build": "tsup",
72
+ "dev": "tsdown --watch",
73
+ "build": "tsdown",
86
74
  "lint:types": "tsc --noEmit"
87
75
  }
88
76
  }
@@ -1,8 +0,0 @@
1
- import * as eslint from 'eslint';
2
- import { F as FlatConfig } from '../flatConfig-Cm6wkwA_.js';
3
-
4
- declare const _default: (FlatConfig | {
5
- readonly rules: Readonly<eslint.Linter.RulesRecord>;
6
- })[];
7
-
8
- export { _default as default };
@@ -1,245 +0,0 @@
1
- // src/configs/base.ts
2
- import eslint from "@eslint/js";
3
- import globals from "globals";
4
-
5
- // src/plugins/importSortPlugin.ts
6
- import simpleImportSortPlugin from "eslint-plugin-simple-import-sort";
7
-
8
- // src/rules/importSortRules.ts
9
- function asTypeOnly(pattern) {
10
- const base = pattern.endsWith("$") ? pattern.slice(0, -1) : pattern;
11
- return `${base}\\u0000$`;
12
- }
13
- function withTypeFirst(group) {
14
- return group.flatMap((pattern) => [asTypeOnly(pattern), pattern]);
15
- }
16
- function exact(p) {
17
- return `^@/${p}$`;
18
- }
19
- function subpath(p) {
20
- return `^@/${p}/.+$`;
21
- }
22
- function expandFolders(folders) {
23
- return folders.flatMap((name) => [exact(name), subpath(name)]);
24
- }
25
- var GROUPS = {
26
- // Side effects (simple-import-sort prefixes side-effects with \u0000 at the start)
27
- SIDE_EFFECTS: ["^\\u0000"],
28
- // Main frameworks & libraries
29
- FRAMEWORKS: [
30
- "^(react(-native|-dom)?(/.*)?)$",
31
- "^next",
32
- "^vue",
33
- "^nuxt",
34
- "^@angular(/.*|$)",
35
- "^expo",
36
- "^node"
37
- ],
38
- // External packages
39
- EXTERNAL: ["^@commencis", "^@?\\w"],
40
- // Internal common directories
41
- INTERNAL_COMMON: expandFolders([
42
- "config",
43
- "types",
44
- "interfaces",
45
- "constants",
46
- "helpers",
47
- "utils",
48
- "lib"
49
- ]),
50
- // Component directories
51
- COMPONENTS: expandFolders([
52
- "providers",
53
- "layouts",
54
- "pages",
55
- "modules",
56
- "features",
57
- "components"
58
- ]),
59
- // Internal root alias (catch-all leftover @/ imports except styles and assets)
60
- INTERNAL_ROOT: ["^@/(?!.*\\.(s?css|svg|png)$).+$"],
61
- // Relative parent imports then same-dir relatives
62
- RELATIVE_PARENT: ["^\\.\\.(?!/?$)", "^\\.\\./?$"],
63
- RELATIVE_SAME: ["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
64
- // Assets
65
- ASSETS: [
66
- "(asset(s?)|public|static|images)(/.*|$)",
67
- "^@/.+\\.(svg|png)$",
68
- "^.+\\.svg$",
69
- "^.+\\.png$"
70
- ],
71
- // Styles
72
- STYLES: [
73
- // side-effect - virtual css imports
74
- "^\\u0000.+\\.s?css$",
75
- // root alias css imports
76
- "^@/.+\\.s?css$",
77
- // relative css imports
78
- "^(\\.{1,2}/).+\\.s?css$"
79
- ]
80
- };
81
- var importSortRules = {
82
- "simple-import-sort/imports": [
83
- "error",
84
- {
85
- groups: [
86
- GROUPS.SIDE_EFFECTS,
87
- withTypeFirst(GROUPS.FRAMEWORKS),
88
- withTypeFirst(GROUPS.EXTERNAL),
89
- withTypeFirst(GROUPS.INTERNAL_COMMON),
90
- withTypeFirst(GROUPS.COMPONENTS),
91
- withTypeFirst(GROUPS.INTERNAL_ROOT),
92
- withTypeFirst(GROUPS.RELATIVE_PARENT),
93
- withTypeFirst(GROUPS.RELATIVE_SAME),
94
- GROUPS.ASSETS,
95
- GROUPS.STYLES
96
- ]
97
- }
98
- ],
99
- "simple-import-sort/exports": "error"
100
- };
101
-
102
- // src/rules/nextPluginRules.ts
103
- var nextPluginRules = {
104
- // Breaks with ESLint 9, should be activated after the next plugin is updated
105
- "@next/next/no-duplicate-head": "off"
106
- };
107
-
108
- // src/rules/reactHooksRules.ts
109
- var reactHooksRules = {
110
- "react-hooks/exhaustive-deps": "warn",
111
- "react-hooks/rules-of-hooks": "error"
112
- };
113
-
114
- // src/rules/reactRules.ts
115
- var reactRules = {
116
- // Disable JS specific rules
117
- "react/jsx-filename-extension": "off",
118
- "react/default-props-match-prop-types": "off",
119
- "react/prop-types": "off",
120
- // Breaks @typescript-eslint/parser
121
- "react/jsx-indent": "off",
122
- "react/no-typos": "off",
123
- "react/jsx-closing-tag-location": "off",
124
- "react/jsx-wrap-multilines": "off",
125
- // No longer necessary
126
- // https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#eslint
127
- "react/jsx-uses-react": "off",
128
- "react/react-in-jsx-scope": "off",
129
- // We are not planning to utilize rules below
130
- "react/jsx-props-no-spreading": "off"
131
- };
132
-
133
- // src/plugins/importSortPlugin.ts
134
- var importSortPluginConfig = {
135
- name: "commencis/plugin:simple-import-sort",
136
- plugins: {
137
- "simple-import-sort": simpleImportSortPlugin
138
- },
139
- rules: {
140
- ...importSortRules
141
- }
142
- };
143
-
144
- // src/plugins/jsxA11yPlugin.ts
145
- import jsxA11yPlugin from "eslint-plugin-jsx-a11y";
146
-
147
- // src/constants/index.ts
148
- var JSX_TSX_FILE_PATTERNS = ["**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"];
149
-
150
- // src/plugins/jsxA11yPlugin.ts
151
- var jsxA11yPluginConfig = {
152
- name: "commencis/plugin:jsx-a11y",
153
- files: JSX_TSX_FILE_PATTERNS,
154
- plugins: {
155
- "jsx-a11y": jsxA11yPlugin
156
- },
157
- languageOptions: { ...jsxA11yPlugin.flatConfigs.recommended.languageOptions },
158
- rules: {
159
- ...jsxA11yPlugin.flatConfigs.recommended.rules
160
- }
161
- };
162
-
163
- // src/plugins/nextPlugin.ts
164
- import nextPlugin from "@next/eslint-plugin-next";
165
- var nextPluginConfig = {
166
- name: "commencis/plugin:next",
167
- files: JSX_TSX_FILE_PATTERNS,
168
- plugins: {
169
- "@next/next": nextPlugin
170
- },
171
- rules: {
172
- ...nextPlugin.configs.recommended.rules,
173
- ...nextPlugin.configs["core-web-vitals"].rules,
174
- ...nextPluginRules
175
- },
176
- ignores: [".next/*"]
177
- };
178
-
179
- // src/plugins/reactHooksPlugin.ts
180
- import reactHooksPlugin from "eslint-plugin-react-hooks";
181
- var reactHooksPluginConfig = {
182
- name: "commencis/plugin:react-hooks",
183
- files: JSX_TSX_FILE_PATTERNS,
184
- plugins: {
185
- "react-hooks": reactHooksPlugin
186
- },
187
- rules: { ...reactHooksRules }
188
- };
189
-
190
- // src/plugins/reactPlugin.ts
191
- import reactPlugin from "eslint-plugin-react";
192
- var { recommended: recommendedConfig, "jsx-runtime": jsxRuntimeConfig } = reactPlugin.configs.flat;
193
- var reactPluginConfig = {
194
- name: "commencis/plugin:react",
195
- files: JSX_TSX_FILE_PATTERNS,
196
- languageOptions: {
197
- ...recommendedConfig.languageOptions
198
- },
199
- plugins: {
200
- react: reactPlugin
201
- },
202
- rules: {
203
- ...recommendedConfig.rules,
204
- ...jsxRuntimeConfig.rules,
205
- ...reactRules
206
- },
207
- settings: {
208
- react: {
209
- version: "detect"
210
- }
211
- }
212
- };
213
-
214
- // src/plugins/vuePlugin.ts
215
- import vuePlugin from "eslint-plugin-vue";
216
- var vuePluginConfig = [
217
- ...vuePlugin.configs["flat/recommended"],
218
- {
219
- name: "commencis/plugin:vue"
220
- }
221
- ];
222
-
223
- // src/configs/base.ts
224
- var base_default = [
225
- eslint.configs.recommended,
226
- importSortPluginConfig,
227
- {
228
- name: "commencis/base",
229
- languageOptions: {
230
- ecmaVersion: 2022,
231
- globals: {
232
- ...globals.browser,
233
- ...globals.es2021,
234
- ...globals.node,
235
- ...globals.serviceworker
236
- }
237
- },
238
- rules: {
239
- "no-console": "warn"
240
- }
241
- }
242
- ];
243
- export {
244
- base_default as default
245
- };
@@ -1,6 +0,0 @@
1
- import { a as FlatConfigArray } from '../flatConfig-Cm6wkwA_.js';
2
- import 'eslint';
3
-
4
- declare const _default: FlatConfigArray;
5
-
6
- export { _default as default };
@@ -1,301 +0,0 @@
1
- // src/configs/base.ts
2
- import eslint from "@eslint/js";
3
- import globals from "globals";
4
-
5
- // src/plugins/importSortPlugin.ts
6
- import simpleImportSortPlugin from "eslint-plugin-simple-import-sort";
7
-
8
- // src/rules/importSortRules.ts
9
- function asTypeOnly(pattern) {
10
- const base = pattern.endsWith("$") ? pattern.slice(0, -1) : pattern;
11
- return `${base}\\u0000$`;
12
- }
13
- function withTypeFirst(group) {
14
- return group.flatMap((pattern) => [asTypeOnly(pattern), pattern]);
15
- }
16
- function exact(p) {
17
- return `^@/${p}$`;
18
- }
19
- function subpath(p) {
20
- return `^@/${p}/.+$`;
21
- }
22
- function expandFolders(folders) {
23
- return folders.flatMap((name) => [exact(name), subpath(name)]);
24
- }
25
- var GROUPS = {
26
- // Side effects (simple-import-sort prefixes side-effects with \u0000 at the start)
27
- SIDE_EFFECTS: ["^\\u0000"],
28
- // Main frameworks & libraries
29
- FRAMEWORKS: [
30
- "^(react(-native|-dom)?(/.*)?)$",
31
- "^next",
32
- "^vue",
33
- "^nuxt",
34
- "^@angular(/.*|$)",
35
- "^expo",
36
- "^node"
37
- ],
38
- // External packages
39
- EXTERNAL: ["^@commencis", "^@?\\w"],
40
- // Internal common directories
41
- INTERNAL_COMMON: expandFolders([
42
- "config",
43
- "types",
44
- "interfaces",
45
- "constants",
46
- "helpers",
47
- "utils",
48
- "lib"
49
- ]),
50
- // Component directories
51
- COMPONENTS: expandFolders([
52
- "providers",
53
- "layouts",
54
- "pages",
55
- "modules",
56
- "features",
57
- "components"
58
- ]),
59
- // Internal root alias (catch-all leftover @/ imports except styles and assets)
60
- INTERNAL_ROOT: ["^@/(?!.*\\.(s?css|svg|png)$).+$"],
61
- // Relative parent imports then same-dir relatives
62
- RELATIVE_PARENT: ["^\\.\\.(?!/?$)", "^\\.\\./?$"],
63
- RELATIVE_SAME: ["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
64
- // Assets
65
- ASSETS: [
66
- "(asset(s?)|public|static|images)(/.*|$)",
67
- "^@/.+\\.(svg|png)$",
68
- "^.+\\.svg$",
69
- "^.+\\.png$"
70
- ],
71
- // Styles
72
- STYLES: [
73
- // side-effect - virtual css imports
74
- "^\\u0000.+\\.s?css$",
75
- // root alias css imports
76
- "^@/.+\\.s?css$",
77
- // relative css imports
78
- "^(\\.{1,2}/).+\\.s?css$"
79
- ]
80
- };
81
- var importSortRules = {
82
- "simple-import-sort/imports": [
83
- "error",
84
- {
85
- groups: [
86
- GROUPS.SIDE_EFFECTS,
87
- withTypeFirst(GROUPS.FRAMEWORKS),
88
- withTypeFirst(GROUPS.EXTERNAL),
89
- withTypeFirst(GROUPS.INTERNAL_COMMON),
90
- withTypeFirst(GROUPS.COMPONENTS),
91
- withTypeFirst(GROUPS.INTERNAL_ROOT),
92
- withTypeFirst(GROUPS.RELATIVE_PARENT),
93
- withTypeFirst(GROUPS.RELATIVE_SAME),
94
- GROUPS.ASSETS,
95
- GROUPS.STYLES
96
- ]
97
- }
98
- ],
99
- "simple-import-sort/exports": "error"
100
- };
101
-
102
- // src/rules/nextPluginRules.ts
103
- var nextPluginRules = {
104
- // Breaks with ESLint 9, should be activated after the next plugin is updated
105
- "@next/next/no-duplicate-head": "off"
106
- };
107
-
108
- // src/rules/reactHooksRules.ts
109
- var reactHooksRules = {
110
- "react-hooks/exhaustive-deps": "warn",
111
- "react-hooks/rules-of-hooks": "error"
112
- };
113
-
114
- // src/rules/reactRules.ts
115
- var reactRules = {
116
- // Disable JS specific rules
117
- "react/jsx-filename-extension": "off",
118
- "react/default-props-match-prop-types": "off",
119
- "react/prop-types": "off",
120
- // Breaks @typescript-eslint/parser
121
- "react/jsx-indent": "off",
122
- "react/no-typos": "off",
123
- "react/jsx-closing-tag-location": "off",
124
- "react/jsx-wrap-multilines": "off",
125
- // No longer necessary
126
- // https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#eslint
127
- "react/jsx-uses-react": "off",
128
- "react/react-in-jsx-scope": "off",
129
- // We are not planning to utilize rules below
130
- "react/jsx-props-no-spreading": "off"
131
- };
132
-
133
- // src/rules/typescriptRules.ts
134
- var typescriptRules = {
135
- "@typescript-eslint/consistent-type-definitions": "off",
136
- "@typescript-eslint/no-empty-function": "off",
137
- "@typescript-eslint/array-type": "off",
138
- "@typescript-eslint/explicit-function-return-type": "error",
139
- "@typescript-eslint/consistent-type-imports": [
140
- "error",
141
- {
142
- prefer: "type-imports",
143
- fixStyle: "separate-type-imports"
144
- }
145
- ],
146
- "@typescript-eslint/no-unused-vars": [
147
- "error",
148
- {
149
- argsIgnorePattern: "^_",
150
- caughtErrorsIgnorePattern: "^_",
151
- destructuredArrayIgnorePattern: "^_",
152
- varsIgnorePattern: "^_"
153
- }
154
- ]
155
- };
156
-
157
- // src/plugins/importSortPlugin.ts
158
- var importSortPluginConfig = {
159
- name: "commencis/plugin:simple-import-sort",
160
- plugins: {
161
- "simple-import-sort": simpleImportSortPlugin
162
- },
163
- rules: {
164
- ...importSortRules
165
- }
166
- };
167
-
168
- // src/plugins/jsxA11yPlugin.ts
169
- import jsxA11yPlugin from "eslint-plugin-jsx-a11y";
170
-
171
- // src/constants/index.ts
172
- var JSX_TSX_FILE_PATTERNS = ["**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"];
173
-
174
- // src/plugins/jsxA11yPlugin.ts
175
- var jsxA11yPluginConfig = {
176
- name: "commencis/plugin:jsx-a11y",
177
- files: JSX_TSX_FILE_PATTERNS,
178
- plugins: {
179
- "jsx-a11y": jsxA11yPlugin
180
- },
181
- languageOptions: { ...jsxA11yPlugin.flatConfigs.recommended.languageOptions },
182
- rules: {
183
- ...jsxA11yPlugin.flatConfigs.recommended.rules
184
- }
185
- };
186
-
187
- // src/plugins/nextPlugin.ts
188
- import nextPlugin from "@next/eslint-plugin-next";
189
- var nextPluginConfig = {
190
- name: "commencis/plugin:next",
191
- files: JSX_TSX_FILE_PATTERNS,
192
- plugins: {
193
- "@next/next": nextPlugin
194
- },
195
- rules: {
196
- ...nextPlugin.configs.recommended.rules,
197
- ...nextPlugin.configs["core-web-vitals"].rules,
198
- ...nextPluginRules
199
- },
200
- ignores: [".next/*"]
201
- };
202
-
203
- // src/plugins/reactHooksPlugin.ts
204
- import reactHooksPlugin from "eslint-plugin-react-hooks";
205
- var reactHooksPluginConfig = {
206
- name: "commencis/plugin:react-hooks",
207
- files: JSX_TSX_FILE_PATTERNS,
208
- plugins: {
209
- "react-hooks": reactHooksPlugin
210
- },
211
- rules: { ...reactHooksRules }
212
- };
213
-
214
- // src/plugins/reactPlugin.ts
215
- import reactPlugin from "eslint-plugin-react";
216
- var { recommended: recommendedConfig, "jsx-runtime": jsxRuntimeConfig } = reactPlugin.configs.flat;
217
- var reactPluginConfig = {
218
- name: "commencis/plugin:react",
219
- files: JSX_TSX_FILE_PATTERNS,
220
- languageOptions: {
221
- ...recommendedConfig.languageOptions
222
- },
223
- plugins: {
224
- react: reactPlugin
225
- },
226
- rules: {
227
- ...recommendedConfig.rules,
228
- ...jsxRuntimeConfig.rules,
229
- ...reactRules
230
- },
231
- settings: {
232
- react: {
233
- version: "detect"
234
- }
235
- }
236
- };
237
-
238
- // src/plugins/vuePlugin.ts
239
- import vuePlugin from "eslint-plugin-vue";
240
- var vuePluginConfig = [
241
- ...vuePlugin.configs["flat/recommended"],
242
- {
243
- name: "commencis/plugin:vue"
244
- }
245
- ];
246
-
247
- // src/configs/base.ts
248
- var base_default = [
249
- eslint.configs.recommended,
250
- importSortPluginConfig,
251
- {
252
- name: "commencis/base",
253
- languageOptions: {
254
- ecmaVersion: 2022,
255
- globals: {
256
- ...globals.browser,
257
- ...globals.es2021,
258
- ...globals.node,
259
- ...globals.serviceworker
260
- }
261
- },
262
- rules: {
263
- "no-console": "warn"
264
- }
265
- }
266
- ];
267
-
268
- // src/configs/prettier.ts
269
- import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
270
- var prettier_default = [
271
- eslintPluginPrettierRecommended,
272
- { name: "commencis/prettier" }
273
- ];
274
-
275
- // src/configs/typescript.ts
276
- import tseslint from "typescript-eslint";
277
- var typescript_default = [
278
- ...tseslint.configs.strict,
279
- ...tseslint.configs.stylistic,
280
- {
281
- name: "commencis/typescript",
282
- rules: {
283
- ...typescriptRules
284
- }
285
- }
286
- ];
287
-
288
- // src/configs/next.ts
289
- var next_default = [
290
- ...base_default,
291
- ...typescript_default,
292
- reactPluginConfig,
293
- reactHooksPluginConfig,
294
- jsxA11yPluginConfig,
295
- nextPluginConfig,
296
- ...prettier_default,
297
- { name: "commencis/next" }
298
- ];
299
- export {
300
- next_default as default
301
- };
@@ -1,6 +0,0 @@
1
- import { a as FlatConfigArray } from '../flatConfig-Cm6wkwA_.js';
2
- import 'eslint';
3
-
4
- declare const _default: FlatConfigArray;
5
-
6
- export { _default as default };