@flarian/frontend-preset 1.6.0 → 2.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.
- package/README.md +269 -129
- package/dist/eslint/config/imports.cjs +8 -3
- package/dist/eslint/config/imports.d.cts +5 -3
- package/dist/eslint/config/imports.d.mts +5 -3
- package/dist/eslint/config/imports.d.ts +5 -3
- package/dist/eslint/config/imports.mjs +7 -3
- package/dist/eslint/config/javascript.cjs +72 -0
- package/dist/eslint/config/javascript.d.cts +7 -0
- package/dist/eslint/config/javascript.d.mts +7 -0
- package/dist/eslint/config/javascript.d.ts +7 -0
- package/dist/eslint/config/javascript.mjs +64 -0
- package/dist/eslint/config/json.cjs +31 -9
- package/dist/eslint/config/json.d.cts +12 -3
- package/dist/eslint/config/json.d.mts +12 -3
- package/dist/eslint/config/json.d.ts +12 -3
- package/dist/eslint/config/json.mjs +26 -9
- package/dist/eslint/config/jsx.cjs +34 -20
- package/dist/eslint/config/jsx.d.cts +5 -3
- package/dist/eslint/config/jsx.d.mts +5 -3
- package/dist/eslint/config/jsx.d.ts +5 -3
- package/dist/eslint/config/jsx.mjs +33 -20
- package/dist/eslint/config/prettier.cjs +50 -11
- package/dist/eslint/config/prettier.d.cts +5 -3
- package/dist/eslint/config/prettier.d.mts +5 -3
- package/dist/eslint/config/prettier.d.ts +5 -3
- package/dist/eslint/config/prettier.mjs +46 -9
- package/dist/eslint/config/react.cjs +12 -7
- package/dist/eslint/config/react.d.cts +5 -3
- package/dist/eslint/config/react.d.mts +5 -3
- package/dist/eslint/config/react.d.ts +5 -3
- package/dist/eslint/config/react.mjs +11 -7
- package/dist/eslint/config/{base.cjs → stylistic.cjs} +292 -178
- package/dist/eslint/config/stylistic.d.cts +7 -0
- package/dist/eslint/config/stylistic.d.mts +7 -0
- package/dist/eslint/config/stylistic.d.ts +7 -0
- package/dist/eslint/config/{base.mjs → stylistic.mjs} +291 -174
- package/dist/eslint/config/typescript.cjs +43 -0
- package/dist/eslint/config/typescript.d.cts +7 -0
- package/dist/eslint/config/typescript.d.mts +7 -0
- package/dist/eslint/config/typescript.d.ts +7 -0
- package/dist/eslint/config/typescript.mjs +36 -0
- package/dist/eslint/config/vue.cjs +25 -13
- package/dist/eslint/config/vue.d.cts +5 -6
- package/dist/eslint/config/vue.d.mts +5 -6
- package/dist/eslint/config/vue.d.ts +5 -6
- package/dist/eslint/config/vue.mjs +24 -13
- package/dist/eslint/index.cjs +37 -21
- package/dist/eslint/index.d.cts +10 -8
- package/dist/eslint/index.d.mts +10 -8
- package/dist/eslint/index.d.ts +10 -8
- package/dist/eslint/index.mjs +19 -14
- package/dist/index.cjs +13 -12
- package/dist/index.d.cts +9 -7
- package/dist/index.d.mts +9 -7
- package/dist/index.d.ts +9 -7
- package/dist/index.mjs +13 -12
- package/dist/prettier/config/base.cjs +1 -1
- package/dist/prettier/config/base.mjs +1 -1
- package/dist/shared/frontend-preset.B9JjGTzu.d.mts +60 -0
- package/dist/shared/frontend-preset.BUXYewoh.d.ts +60 -0
- package/dist/shared/frontend-preset.CADA8VXw.mjs +37 -0
- package/dist/shared/frontend-preset.Cco7BHYd.cjs +5 -0
- package/dist/shared/frontend-preset.CnYH3mAs.d.cts +60 -0
- package/dist/shared/frontend-preset.CtslHPdG.mjs +3 -0
- package/dist/shared/frontend-preset.DEAWyl_Y.d.cts +8 -0
- package/dist/shared/frontend-preset.DEAWyl_Y.d.mts +8 -0
- package/dist/shared/frontend-preset.DEAWyl_Y.d.ts +8 -0
- package/dist/shared/frontend-preset.GULoLGRF.cjs +39 -0
- package/dist/stylelint/config/all.d.cts +4 -2
- package/dist/stylelint/config/all.d.mts +4 -2
- package/dist/stylelint/config/all.d.ts +4 -2
- package/dist/stylelint/config/less.cjs +5 -1
- package/dist/stylelint/config/less.mjs +5 -1
- package/dist/stylelint/config/scss.cjs +5 -1
- package/dist/stylelint/config/scss.mjs +5 -1
- package/package.json +74 -24
- package/dist/eslint/config/all.cjs +0 -36
- package/dist/eslint/config/all.d.cts +0 -14
- package/dist/eslint/config/all.d.mts +0 -14
- package/dist/eslint/config/all.d.ts +0 -14
- package/dist/eslint/config/all.mjs +0 -33
- package/dist/eslint/config/base.d.cts +0 -8
- package/dist/eslint/config/base.d.mts +0 -8
- package/dist/eslint/config/base.d.ts +0 -8
- package/dist/shared/frontend-preset.BXVU99PK.d.mts +0 -37
- package/dist/shared/frontend-preset.Bfc_XKcp.d.cts +0 -37
- package/dist/shared/frontend-preset.CbViwkJz.cjs +0 -27
- package/dist/shared/frontend-preset.CiCuZ-UD.d.ts +0 -37
- package/dist/shared/frontend-preset.DbH8phB0.mjs +0 -25
package/dist/index.mjs
CHANGED
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
export { i as eslint } from './shared/frontend-preset.
|
|
1
|
+
export { i as eslint } from './shared/frontend-preset.CADA8VXw.mjs';
|
|
2
2
|
export { i as prettier } from './shared/frontend-preset.boYPITmk.mjs';
|
|
3
3
|
export { i as stylelint } from './shared/frontend-preset.95FKUpmG.mjs';
|
|
4
|
-
import './eslint/config/
|
|
5
|
-
import './eslint/config/base.mjs';
|
|
4
|
+
import './eslint/config/javascript.mjs';
|
|
6
5
|
import 'globals';
|
|
7
|
-
import 'typescript-eslint';
|
|
8
6
|
import '@eslint/js';
|
|
7
|
+
import './eslint/config/typescript.mjs';
|
|
8
|
+
import './shared/frontend-preset.CtslHPdG.mjs';
|
|
9
|
+
import 'typescript-eslint';
|
|
10
|
+
import './eslint/config/stylistic.mjs';
|
|
9
11
|
import '@stylistic/eslint-plugin';
|
|
12
|
+
import './eslint/config/jsx.mjs';
|
|
10
13
|
import './eslint/config/imports.mjs';
|
|
11
14
|
import 'eslint-plugin-simple-import-sort';
|
|
12
15
|
import './eslint/config/json.mjs';
|
|
13
16
|
import 'eslint-plugin-jsonc';
|
|
14
|
-
import './eslint/config/jsx.mjs';
|
|
15
|
-
import './eslint/config/prettier.mjs';
|
|
16
|
-
import './prettier/config/base.mjs';
|
|
17
|
-
import 'eslint-config-prettier';
|
|
18
|
-
import 'eslint-plugin-prettier';
|
|
19
|
-
import './eslint/config/react.mjs';
|
|
20
|
-
import 'eslint-plugin-react';
|
|
21
|
-
import 'eslint-plugin-react-hooks';
|
|
22
17
|
import './eslint/config/vue.mjs';
|
|
23
18
|
import 'eslint-plugin-vue';
|
|
24
19
|
import 'vue-eslint-parser';
|
|
20
|
+
import './eslint/config/react.mjs';
|
|
21
|
+
import 'eslint-plugin-react';
|
|
22
|
+
import 'eslint-plugin-react-hooks';
|
|
23
|
+
import './eslint/config/prettier.mjs';
|
|
25
24
|
import './prettier/config/all.mjs';
|
|
25
|
+
import './prettier/config/base.mjs';
|
|
26
26
|
import './prettier/config/pug.mjs';
|
|
27
27
|
import './prettier/config/vue.mjs';
|
|
28
28
|
import './prettier/config/yml.mjs';
|
|
29
|
+
import 'eslint-plugin-prettier';
|
|
29
30
|
import './stylelint/config/all.mjs';
|
|
30
31
|
import './stylelint/config/less.mjs';
|
|
31
32
|
import './shared/frontend-preset.BJoa2bom.mjs';
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { createJavascriptConfig, javascript } from '../eslint/config/javascript.mjs';
|
|
2
|
+
import { createTypescriptConfig, typescript } from '../eslint/config/typescript.mjs';
|
|
3
|
+
import { createStylisticConfig, stylistic } from '../eslint/config/stylistic.mjs';
|
|
4
|
+
import { createJsxConfig, jsx } from '../eslint/config/jsx.mjs';
|
|
5
|
+
import { createImportsConfig, imports } from '../eslint/config/imports.mjs';
|
|
6
|
+
import { createJsonConfig, createPackageJsonConfig, createTsconfigJsonConfig, json, packageJson, tsconfigJson } from '../eslint/config/json.mjs';
|
|
7
|
+
import { createVueConfig, vue } from '../eslint/config/vue.mjs';
|
|
8
|
+
import { createReactConfig, react } from '../eslint/config/react.mjs';
|
|
9
|
+
import { createPrettierConfig, prettier } from '../eslint/config/prettier.mjs';
|
|
10
|
+
|
|
11
|
+
declare const index_createImportsConfig: typeof createImportsConfig;
|
|
12
|
+
declare const index_createJavascriptConfig: typeof createJavascriptConfig;
|
|
13
|
+
declare const index_createJsonConfig: typeof createJsonConfig;
|
|
14
|
+
declare const index_createJsxConfig: typeof createJsxConfig;
|
|
15
|
+
declare const index_createPackageJsonConfig: typeof createPackageJsonConfig;
|
|
16
|
+
declare const index_createPrettierConfig: typeof createPrettierConfig;
|
|
17
|
+
declare const index_createReactConfig: typeof createReactConfig;
|
|
18
|
+
declare const index_createStylisticConfig: typeof createStylisticConfig;
|
|
19
|
+
declare const index_createTsconfigJsonConfig: typeof createTsconfigJsonConfig;
|
|
20
|
+
declare const index_createTypescriptConfig: typeof createTypescriptConfig;
|
|
21
|
+
declare const index_createVueConfig: typeof createVueConfig;
|
|
22
|
+
declare const index_imports: typeof imports;
|
|
23
|
+
declare const index_javascript: typeof javascript;
|
|
24
|
+
declare const index_json: typeof json;
|
|
25
|
+
declare const index_jsx: typeof jsx;
|
|
26
|
+
declare const index_packageJson: typeof packageJson;
|
|
27
|
+
declare const index_prettier: typeof prettier;
|
|
28
|
+
declare const index_react: typeof react;
|
|
29
|
+
declare const index_stylistic: typeof stylistic;
|
|
30
|
+
declare const index_tsconfigJson: typeof tsconfigJson;
|
|
31
|
+
declare const index_typescript: typeof typescript;
|
|
32
|
+
declare const index_vue: typeof vue;
|
|
33
|
+
declare namespace index {
|
|
34
|
+
export {
|
|
35
|
+
index_createImportsConfig as createImportsConfig,
|
|
36
|
+
index_createJavascriptConfig as createJavascriptConfig,
|
|
37
|
+
index_createJsonConfig as createJsonConfig,
|
|
38
|
+
index_createJsxConfig as createJsxConfig,
|
|
39
|
+
index_createPackageJsonConfig as createPackageJsonConfig,
|
|
40
|
+
index_createPrettierConfig as createPrettierConfig,
|
|
41
|
+
index_createReactConfig as createReactConfig,
|
|
42
|
+
index_createStylisticConfig as createStylisticConfig,
|
|
43
|
+
index_createTsconfigJsonConfig as createTsconfigJsonConfig,
|
|
44
|
+
index_createTypescriptConfig as createTypescriptConfig,
|
|
45
|
+
index_createVueConfig as createVueConfig,
|
|
46
|
+
index_imports as imports,
|
|
47
|
+
index_javascript as javascript,
|
|
48
|
+
index_json as json,
|
|
49
|
+
index_jsx as jsx,
|
|
50
|
+
index_packageJson as packageJson,
|
|
51
|
+
index_prettier as prettier,
|
|
52
|
+
index_react as react,
|
|
53
|
+
index_stylistic as stylistic,
|
|
54
|
+
index_tsconfigJson as tsconfigJson,
|
|
55
|
+
index_typescript as typescript,
|
|
56
|
+
index_vue as vue,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export { index as i };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { createJavascriptConfig, javascript } from '../eslint/config/javascript.js';
|
|
2
|
+
import { createTypescriptConfig, typescript } from '../eslint/config/typescript.js';
|
|
3
|
+
import { createStylisticConfig, stylistic } from '../eslint/config/stylistic.js';
|
|
4
|
+
import { createJsxConfig, jsx } from '../eslint/config/jsx.js';
|
|
5
|
+
import { createImportsConfig, imports } from '../eslint/config/imports.js';
|
|
6
|
+
import { createJsonConfig, createPackageJsonConfig, createTsconfigJsonConfig, json, packageJson, tsconfigJson } from '../eslint/config/json.js';
|
|
7
|
+
import { createVueConfig, vue } from '../eslint/config/vue.js';
|
|
8
|
+
import { createReactConfig, react } from '../eslint/config/react.js';
|
|
9
|
+
import { createPrettierConfig, prettier } from '../eslint/config/prettier.js';
|
|
10
|
+
|
|
11
|
+
declare const index_createImportsConfig: typeof createImportsConfig;
|
|
12
|
+
declare const index_createJavascriptConfig: typeof createJavascriptConfig;
|
|
13
|
+
declare const index_createJsonConfig: typeof createJsonConfig;
|
|
14
|
+
declare const index_createJsxConfig: typeof createJsxConfig;
|
|
15
|
+
declare const index_createPackageJsonConfig: typeof createPackageJsonConfig;
|
|
16
|
+
declare const index_createPrettierConfig: typeof createPrettierConfig;
|
|
17
|
+
declare const index_createReactConfig: typeof createReactConfig;
|
|
18
|
+
declare const index_createStylisticConfig: typeof createStylisticConfig;
|
|
19
|
+
declare const index_createTsconfigJsonConfig: typeof createTsconfigJsonConfig;
|
|
20
|
+
declare const index_createTypescriptConfig: typeof createTypescriptConfig;
|
|
21
|
+
declare const index_createVueConfig: typeof createVueConfig;
|
|
22
|
+
declare const index_imports: typeof imports;
|
|
23
|
+
declare const index_javascript: typeof javascript;
|
|
24
|
+
declare const index_json: typeof json;
|
|
25
|
+
declare const index_jsx: typeof jsx;
|
|
26
|
+
declare const index_packageJson: typeof packageJson;
|
|
27
|
+
declare const index_prettier: typeof prettier;
|
|
28
|
+
declare const index_react: typeof react;
|
|
29
|
+
declare const index_stylistic: typeof stylistic;
|
|
30
|
+
declare const index_tsconfigJson: typeof tsconfigJson;
|
|
31
|
+
declare const index_typescript: typeof typescript;
|
|
32
|
+
declare const index_vue: typeof vue;
|
|
33
|
+
declare namespace index {
|
|
34
|
+
export {
|
|
35
|
+
index_createImportsConfig as createImportsConfig,
|
|
36
|
+
index_createJavascriptConfig as createJavascriptConfig,
|
|
37
|
+
index_createJsonConfig as createJsonConfig,
|
|
38
|
+
index_createJsxConfig as createJsxConfig,
|
|
39
|
+
index_createPackageJsonConfig as createPackageJsonConfig,
|
|
40
|
+
index_createPrettierConfig as createPrettierConfig,
|
|
41
|
+
index_createReactConfig as createReactConfig,
|
|
42
|
+
index_createStylisticConfig as createStylisticConfig,
|
|
43
|
+
index_createTsconfigJsonConfig as createTsconfigJsonConfig,
|
|
44
|
+
index_createTypescriptConfig as createTypescriptConfig,
|
|
45
|
+
index_createVueConfig as createVueConfig,
|
|
46
|
+
index_imports as imports,
|
|
47
|
+
index_javascript as javascript,
|
|
48
|
+
index_json as json,
|
|
49
|
+
index_jsx as jsx,
|
|
50
|
+
index_packageJson as packageJson,
|
|
51
|
+
index_prettier as prettier,
|
|
52
|
+
index_react as react,
|
|
53
|
+
index_stylistic as stylistic,
|
|
54
|
+
index_tsconfigJson as tsconfigJson,
|
|
55
|
+
index_typescript as typescript,
|
|
56
|
+
index_vue as vue,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export { index as i };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { createJavascriptConfig, javascript } from '../eslint/config/javascript.mjs';
|
|
2
|
+
import { createTypescriptConfig, typescript } from '../eslint/config/typescript.mjs';
|
|
3
|
+
import { createStylisticConfig, stylistic } from '../eslint/config/stylistic.mjs';
|
|
4
|
+
import { createJsxConfig, jsx } from '../eslint/config/jsx.mjs';
|
|
5
|
+
import { createImportsConfig, imports } from '../eslint/config/imports.mjs';
|
|
6
|
+
import { createJsonConfig, createPackageJsonConfig, createTsconfigJsonConfig, json, packageJson, tsconfigJson } from '../eslint/config/json.mjs';
|
|
7
|
+
import { createVueConfig, vue } from '../eslint/config/vue.mjs';
|
|
8
|
+
import { createReactConfig, react } from '../eslint/config/react.mjs';
|
|
9
|
+
import { createPrettierConfig, prettier } from '../eslint/config/prettier.mjs';
|
|
10
|
+
|
|
11
|
+
const index = {
|
|
12
|
+
__proto__: null,
|
|
13
|
+
createImportsConfig: createImportsConfig,
|
|
14
|
+
createJavascriptConfig: createJavascriptConfig,
|
|
15
|
+
createJsonConfig: createJsonConfig,
|
|
16
|
+
createJsxConfig: createJsxConfig,
|
|
17
|
+
createPackageJsonConfig: createPackageJsonConfig,
|
|
18
|
+
createPrettierConfig: createPrettierConfig,
|
|
19
|
+
createReactConfig: createReactConfig,
|
|
20
|
+
createStylisticConfig: createStylisticConfig,
|
|
21
|
+
createTsconfigJsonConfig: createTsconfigJsonConfig,
|
|
22
|
+
createTypescriptConfig: createTypescriptConfig,
|
|
23
|
+
createVueConfig: createVueConfig,
|
|
24
|
+
imports: imports,
|
|
25
|
+
javascript: javascript,
|
|
26
|
+
json: json,
|
|
27
|
+
jsx: jsx,
|
|
28
|
+
packageJson: packageJson,
|
|
29
|
+
prettier: prettier,
|
|
30
|
+
react: react,
|
|
31
|
+
stylistic: stylistic,
|
|
32
|
+
tsconfigJson: tsconfigJson,
|
|
33
|
+
typescript: typescript,
|
|
34
|
+
vue: vue
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export { index as i };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { createJavascriptConfig, javascript } from '../eslint/config/javascript.cjs';
|
|
2
|
+
import { createTypescriptConfig, typescript } from '../eslint/config/typescript.cjs';
|
|
3
|
+
import { createStylisticConfig, stylistic } from '../eslint/config/stylistic.cjs';
|
|
4
|
+
import { createJsxConfig, jsx } from '../eslint/config/jsx.cjs';
|
|
5
|
+
import { createImportsConfig, imports } from '../eslint/config/imports.cjs';
|
|
6
|
+
import { createJsonConfig, createPackageJsonConfig, createTsconfigJsonConfig, json, packageJson, tsconfigJson } from '../eslint/config/json.cjs';
|
|
7
|
+
import { createVueConfig, vue } from '../eslint/config/vue.cjs';
|
|
8
|
+
import { createReactConfig, react } from '../eslint/config/react.cjs';
|
|
9
|
+
import { createPrettierConfig, prettier } from '../eslint/config/prettier.cjs';
|
|
10
|
+
|
|
11
|
+
declare const index_createImportsConfig: typeof createImportsConfig;
|
|
12
|
+
declare const index_createJavascriptConfig: typeof createJavascriptConfig;
|
|
13
|
+
declare const index_createJsonConfig: typeof createJsonConfig;
|
|
14
|
+
declare const index_createJsxConfig: typeof createJsxConfig;
|
|
15
|
+
declare const index_createPackageJsonConfig: typeof createPackageJsonConfig;
|
|
16
|
+
declare const index_createPrettierConfig: typeof createPrettierConfig;
|
|
17
|
+
declare const index_createReactConfig: typeof createReactConfig;
|
|
18
|
+
declare const index_createStylisticConfig: typeof createStylisticConfig;
|
|
19
|
+
declare const index_createTsconfigJsonConfig: typeof createTsconfigJsonConfig;
|
|
20
|
+
declare const index_createTypescriptConfig: typeof createTypescriptConfig;
|
|
21
|
+
declare const index_createVueConfig: typeof createVueConfig;
|
|
22
|
+
declare const index_imports: typeof imports;
|
|
23
|
+
declare const index_javascript: typeof javascript;
|
|
24
|
+
declare const index_json: typeof json;
|
|
25
|
+
declare const index_jsx: typeof jsx;
|
|
26
|
+
declare const index_packageJson: typeof packageJson;
|
|
27
|
+
declare const index_prettier: typeof prettier;
|
|
28
|
+
declare const index_react: typeof react;
|
|
29
|
+
declare const index_stylistic: typeof stylistic;
|
|
30
|
+
declare const index_tsconfigJson: typeof tsconfigJson;
|
|
31
|
+
declare const index_typescript: typeof typescript;
|
|
32
|
+
declare const index_vue: typeof vue;
|
|
33
|
+
declare namespace index {
|
|
34
|
+
export {
|
|
35
|
+
index_createImportsConfig as createImportsConfig,
|
|
36
|
+
index_createJavascriptConfig as createJavascriptConfig,
|
|
37
|
+
index_createJsonConfig as createJsonConfig,
|
|
38
|
+
index_createJsxConfig as createJsxConfig,
|
|
39
|
+
index_createPackageJsonConfig as createPackageJsonConfig,
|
|
40
|
+
index_createPrettierConfig as createPrettierConfig,
|
|
41
|
+
index_createReactConfig as createReactConfig,
|
|
42
|
+
index_createStylisticConfig as createStylisticConfig,
|
|
43
|
+
index_createTsconfigJsonConfig as createTsconfigJsonConfig,
|
|
44
|
+
index_createTypescriptConfig as createTypescriptConfig,
|
|
45
|
+
index_createVueConfig as createVueConfig,
|
|
46
|
+
index_imports as imports,
|
|
47
|
+
index_javascript as javascript,
|
|
48
|
+
index_json as json,
|
|
49
|
+
index_jsx as jsx,
|
|
50
|
+
index_packageJson as packageJson,
|
|
51
|
+
index_prettier as prettier,
|
|
52
|
+
index_react as react,
|
|
53
|
+
index_stylistic as stylistic,
|
|
54
|
+
index_tsconfigJson as tsconfigJson,
|
|
55
|
+
index_typescript as typescript,
|
|
56
|
+
index_vue as vue,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export { index as i };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const eslint_config_javascript = require('../eslint/config/javascript.cjs');
|
|
4
|
+
const eslint_config_typescript = require('../eslint/config/typescript.cjs');
|
|
5
|
+
const eslint_config_stylistic = require('../eslint/config/stylistic.cjs');
|
|
6
|
+
const eslint_config_jsx = require('../eslint/config/jsx.cjs');
|
|
7
|
+
const eslint_config_imports = require('../eslint/config/imports.cjs');
|
|
8
|
+
const eslint_config_json = require('../eslint/config/json.cjs');
|
|
9
|
+
const eslint_config_vue = require('../eslint/config/vue.cjs');
|
|
10
|
+
const eslint_config_react = require('../eslint/config/react.cjs');
|
|
11
|
+
const eslint_config_prettier = require('../eslint/config/prettier.cjs');
|
|
12
|
+
|
|
13
|
+
const index = {
|
|
14
|
+
__proto__: null,
|
|
15
|
+
createImportsConfig: eslint_config_imports.createImportsConfig,
|
|
16
|
+
createJavascriptConfig: eslint_config_javascript.createJavascriptConfig,
|
|
17
|
+
createJsonConfig: eslint_config_json.createJsonConfig,
|
|
18
|
+
createJsxConfig: eslint_config_jsx.createJsxConfig,
|
|
19
|
+
createPackageJsonConfig: eslint_config_json.createPackageJsonConfig,
|
|
20
|
+
createPrettierConfig: eslint_config_prettier.createPrettierConfig,
|
|
21
|
+
createReactConfig: eslint_config_react.createReactConfig,
|
|
22
|
+
createStylisticConfig: eslint_config_stylistic.createStylisticConfig,
|
|
23
|
+
createTsconfigJsonConfig: eslint_config_json.createTsconfigJsonConfig,
|
|
24
|
+
createTypescriptConfig: eslint_config_typescript.createTypescriptConfig,
|
|
25
|
+
createVueConfig: eslint_config_vue.createVueConfig,
|
|
26
|
+
imports: eslint_config_imports.imports,
|
|
27
|
+
javascript: eslint_config_javascript.javascript,
|
|
28
|
+
json: eslint_config_json.json,
|
|
29
|
+
jsx: eslint_config_jsx.jsx,
|
|
30
|
+
packageJson: eslint_config_json.packageJson,
|
|
31
|
+
prettier: eslint_config_prettier.prettier,
|
|
32
|
+
react: eslint_config_react.react,
|
|
33
|
+
stylistic: eslint_config_stylistic.stylistic,
|
|
34
|
+
tsconfigJson: eslint_config_json.tsconfigJson,
|
|
35
|
+
typescript: eslint_config_typescript.typescript,
|
|
36
|
+
vue: eslint_config_vue.vue
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
exports.index = index;
|
|
@@ -4,7 +4,11 @@ const orderGroups = require('../../shared/frontend-preset.DB4raCUY.cjs');
|
|
|
4
4
|
|
|
5
5
|
const lessConfig = {
|
|
6
6
|
plugins: ["stylelint-order", "stylelint-less"],
|
|
7
|
-
extends: [
|
|
7
|
+
extends: [
|
|
8
|
+
"stylelint-config-standard",
|
|
9
|
+
"stylelint-config-standard-less",
|
|
10
|
+
"stylelint-config-recommended-vue"
|
|
11
|
+
],
|
|
8
12
|
rules: {
|
|
9
13
|
...orderGroups.baseRules,
|
|
10
14
|
...orderGroups.orderRules,
|
|
@@ -2,7 +2,11 @@ import { o as orderGroupsRules, a as orderRules, b as baseRules } from '../../sh
|
|
|
2
2
|
|
|
3
3
|
const lessConfig = {
|
|
4
4
|
plugins: ["stylelint-order", "stylelint-less"],
|
|
5
|
-
extends: [
|
|
5
|
+
extends: [
|
|
6
|
+
"stylelint-config-standard",
|
|
7
|
+
"stylelint-config-standard-less",
|
|
8
|
+
"stylelint-config-recommended-vue"
|
|
9
|
+
],
|
|
6
10
|
rules: {
|
|
7
11
|
...baseRules,
|
|
8
12
|
...orderRules,
|
|
@@ -4,7 +4,11 @@ const orderGroups = require('../../shared/frontend-preset.DB4raCUY.cjs');
|
|
|
4
4
|
|
|
5
5
|
const scssConfig = {
|
|
6
6
|
plugins: ["stylelint-order", "stylelint-scss"],
|
|
7
|
-
extends: [
|
|
7
|
+
extends: [
|
|
8
|
+
"stylelint-config-standard",
|
|
9
|
+
"stylelint-config-standard-scss",
|
|
10
|
+
"stylelint-config-recommended-vue"
|
|
11
|
+
],
|
|
8
12
|
rules: {
|
|
9
13
|
...orderGroups.baseRules,
|
|
10
14
|
...orderGroups.orderRules,
|
|
@@ -2,7 +2,11 @@ import { o as orderGroupsRules, a as orderRules, b as baseRules } from '../../sh
|
|
|
2
2
|
|
|
3
3
|
const scssConfig = {
|
|
4
4
|
plugins: ["stylelint-order", "stylelint-scss"],
|
|
5
|
-
extends: [
|
|
5
|
+
extends: [
|
|
6
|
+
"stylelint-config-standard",
|
|
7
|
+
"stylelint-config-standard-scss",
|
|
8
|
+
"stylelint-config-recommended-vue"
|
|
9
|
+
],
|
|
6
10
|
rules: {
|
|
7
11
|
...baseRules,
|
|
8
12
|
...orderRules,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flarian/frontend-preset",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Frontend preset with ESLint 9 flat config and Stylelint",
|
|
6
6
|
"author": "FlarianWeb",
|
|
@@ -65,44 +65,44 @@
|
|
|
65
65
|
"inspect": "eslint --inspect-config",
|
|
66
66
|
"lint": "eslint",
|
|
67
67
|
"typecheck": "tsc --noEmit",
|
|
68
|
+
"check:deprecated": "node scripts/check-deprecated.mjs",
|
|
68
69
|
"pack:local": "pnpm build && pnpm pack"
|
|
69
70
|
},
|
|
70
71
|
"engines": {
|
|
71
72
|
"node": ">=22.5.0"
|
|
72
73
|
},
|
|
73
|
-
"packageManager": "pnpm@10.
|
|
74
|
+
"packageManager": "pnpm@10.32.1",
|
|
74
75
|
"devDependencies": {
|
|
75
76
|
"@eslint/js": "10.0.1",
|
|
76
77
|
"@prettier/plugin-pug": "3.4.2",
|
|
77
78
|
"@semantic-release/changelog": "6.0.3",
|
|
78
79
|
"@semantic-release/git": "10.0.1",
|
|
79
80
|
"@semantic-release/github": "12.0.6",
|
|
80
|
-
"@semantic-release/npm": "13.1.
|
|
81
|
-
"@stylistic/eslint-plugin": "5.
|
|
81
|
+
"@semantic-release/npm": "13.1.5",
|
|
82
|
+
"@stylistic/eslint-plugin": "5.10.0",
|
|
82
83
|
"@types/eslint": "9.6.1",
|
|
83
|
-
"@types/node": "25.
|
|
84
|
-
"conventional-changelog-conventionalcommits": "9.
|
|
85
|
-
"eslint": "10.0.
|
|
86
|
-
"eslint-
|
|
87
|
-
"eslint-plugin-jsonc": "3.0.0",
|
|
84
|
+
"@types/node": "25.5.0",
|
|
85
|
+
"conventional-changelog-conventionalcommits": "^9.3.0",
|
|
86
|
+
"eslint": "10.0.3",
|
|
87
|
+
"eslint-plugin-jsonc": "3.1.2",
|
|
88
88
|
"eslint-plugin-prettier": "5.5.5",
|
|
89
89
|
"eslint-plugin-react": "7.37.5",
|
|
90
90
|
"eslint-plugin-react-hooks": "7.0.1",
|
|
91
91
|
"eslint-plugin-simple-import-sort": "12.1.1",
|
|
92
92
|
"eslint-plugin-vue": "10.8.0",
|
|
93
|
-
"globals": "17.
|
|
93
|
+
"globals": "17.4.0",
|
|
94
94
|
"prettier": "3.8.1",
|
|
95
95
|
"semantic-release": "25.0.3",
|
|
96
|
-
"stylelint": "17.
|
|
96
|
+
"stylelint": "17.4.0",
|
|
97
97
|
"stylelint-config-recommended-vue": "1.6.1",
|
|
98
98
|
"stylelint-config-standard": "40.0.0",
|
|
99
99
|
"stylelint-config-standard-less": "4.0.1",
|
|
100
100
|
"stylelint-config-standard-scss": "17.0.0",
|
|
101
101
|
"stylelint-less": "4.0.0",
|
|
102
|
-
"stylelint-order": "
|
|
102
|
+
"stylelint-order": "8.0.0",
|
|
103
103
|
"stylelint-scss": "7.0.0",
|
|
104
104
|
"typescript": "5.9.3",
|
|
105
|
-
"typescript-eslint": "8.
|
|
105
|
+
"typescript-eslint": "8.57.0",
|
|
106
106
|
"unbuild": "3.6.1",
|
|
107
107
|
"vue-eslint-parser": "10.4.0"
|
|
108
108
|
},
|
|
@@ -111,34 +111,57 @@
|
|
|
111
111
|
"@prettier/plugin-pug": ">=3.3.0",
|
|
112
112
|
"@stylistic/eslint-plugin": ">=5.0.0",
|
|
113
113
|
"eslint": ">=9.30.0",
|
|
114
|
-
"eslint-
|
|
115
|
-
"eslint-plugin-jsonc": ">=2.20.0",
|
|
114
|
+
"eslint-plugin-jsonc": ">=3.0.0",
|
|
116
115
|
"eslint-plugin-prettier": ">=5.4.0",
|
|
117
116
|
"eslint-plugin-react": ">=7.37.0",
|
|
118
|
-
"eslint-plugin-react-hooks": ">=
|
|
117
|
+
"eslint-plugin-react-hooks": ">=7.0.0",
|
|
119
118
|
"eslint-plugin-simple-import-sort": ">=12.1.0",
|
|
120
119
|
"eslint-plugin-vue": ">=10.0.0",
|
|
121
|
-
"globals": ">=
|
|
120
|
+
"globals": ">=15.0.0",
|
|
122
121
|
"prettier": ">=3.5.0",
|
|
123
122
|
"stylelint": ">=16.20.0",
|
|
124
123
|
"stylelint-config-recommended-vue": ">=1.6.0",
|
|
125
124
|
"stylelint-config-standard": ">=39.0.0",
|
|
126
|
-
"stylelint-config-standard-less": ">=
|
|
127
|
-
"stylelint-config-standard-scss": ">=
|
|
128
|
-
"stylelint-less": ">=
|
|
129
|
-
"stylelint-order": ">=
|
|
130
|
-
"stylelint-scss": ">=
|
|
125
|
+
"stylelint-config-standard-less": ">=4.0.0",
|
|
126
|
+
"stylelint-config-standard-scss": ">=17.0.0",
|
|
127
|
+
"stylelint-less": ">=4.0.0",
|
|
128
|
+
"stylelint-order": ">=8.0.0",
|
|
129
|
+
"stylelint-scss": ">=7.0.0",
|
|
131
130
|
"typescript-eslint": ">=8.56.0",
|
|
132
131
|
"vue-eslint-parser": ">=10.0.0"
|
|
133
132
|
},
|
|
134
133
|
"peerDependenciesMeta": {
|
|
134
|
+
"@eslint/js": {
|
|
135
|
+
"optional": true
|
|
136
|
+
},
|
|
137
|
+
"@prettier/plugin-pug": {
|
|
138
|
+
"optional": true
|
|
139
|
+
},
|
|
140
|
+
"@stylistic/eslint-plugin": {
|
|
141
|
+
"optional": true
|
|
142
|
+
},
|
|
135
143
|
"eslint": {
|
|
136
144
|
"optional": true
|
|
137
145
|
},
|
|
138
|
-
"
|
|
146
|
+
"eslint-plugin-jsonc": {
|
|
139
147
|
"optional": true
|
|
140
148
|
},
|
|
141
|
-
"
|
|
149
|
+
"eslint-plugin-prettier": {
|
|
150
|
+
"optional": true
|
|
151
|
+
},
|
|
152
|
+
"eslint-plugin-react": {
|
|
153
|
+
"optional": true
|
|
154
|
+
},
|
|
155
|
+
"eslint-plugin-react-hooks": {
|
|
156
|
+
"optional": true
|
|
157
|
+
},
|
|
158
|
+
"eslint-plugin-simple-import-sort": {
|
|
159
|
+
"optional": true
|
|
160
|
+
},
|
|
161
|
+
"eslint-plugin-vue": {
|
|
162
|
+
"optional": true
|
|
163
|
+
},
|
|
164
|
+
"globals": {
|
|
142
165
|
"optional": true
|
|
143
166
|
},
|
|
144
167
|
"prettier": {
|
|
@@ -146,6 +169,33 @@
|
|
|
146
169
|
},
|
|
147
170
|
"stylelint": {
|
|
148
171
|
"optional": true
|
|
172
|
+
},
|
|
173
|
+
"stylelint-config-recommended-vue": {
|
|
174
|
+
"optional": true
|
|
175
|
+
},
|
|
176
|
+
"stylelint-config-standard": {
|
|
177
|
+
"optional": true
|
|
178
|
+
},
|
|
179
|
+
"stylelint-config-standard-less": {
|
|
180
|
+
"optional": true
|
|
181
|
+
},
|
|
182
|
+
"stylelint-config-standard-scss": {
|
|
183
|
+
"optional": true
|
|
184
|
+
},
|
|
185
|
+
"stylelint-less": {
|
|
186
|
+
"optional": true
|
|
187
|
+
},
|
|
188
|
+
"stylelint-order": {
|
|
189
|
+
"optional": true
|
|
190
|
+
},
|
|
191
|
+
"stylelint-scss": {
|
|
192
|
+
"optional": true
|
|
193
|
+
},
|
|
194
|
+
"typescript-eslint": {
|
|
195
|
+
"optional": true
|
|
196
|
+
},
|
|
197
|
+
"vue-eslint-parser": {
|
|
198
|
+
"optional": true
|
|
149
199
|
}
|
|
150
200
|
}
|
|
151
201
|
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const eslint_config_base = require('./base.cjs');
|
|
4
|
-
const eslint_config_imports = require('./imports.cjs');
|
|
5
|
-
const eslint_config_json = require('./json.cjs');
|
|
6
|
-
const eslint_config_jsx = require('./jsx.cjs');
|
|
7
|
-
const eslint_config_prettier = require('./prettier.cjs');
|
|
8
|
-
const eslint_config_react = require('./react.cjs');
|
|
9
|
-
const eslint_config_vue = require('./vue.cjs');
|
|
10
|
-
require('globals');
|
|
11
|
-
require('typescript-eslint');
|
|
12
|
-
require('@eslint/js');
|
|
13
|
-
require('@stylistic/eslint-plugin');
|
|
14
|
-
require('eslint-plugin-simple-import-sort');
|
|
15
|
-
require('eslint-plugin-jsonc');
|
|
16
|
-
require('../../prettier/config/base.cjs');
|
|
17
|
-
require('eslint-config-prettier');
|
|
18
|
-
require('eslint-plugin-prettier');
|
|
19
|
-
require('eslint-plugin-react');
|
|
20
|
-
require('eslint-plugin-react-hooks');
|
|
21
|
-
require('eslint-plugin-vue');
|
|
22
|
-
require('vue-eslint-parser');
|
|
23
|
-
|
|
24
|
-
function createAll({ registerPlugins = true } = {}) {
|
|
25
|
-
const base = eslint_config_base.createBaseConfig({ registerPlugins });
|
|
26
|
-
const vue = eslint_config_vue.createVueConfig({ registerPlugins });
|
|
27
|
-
const withNode = [...base, ...eslint_config_imports.importsConfig, ...eslint_config_json.jsonConfig, ...eslint_config_prettier.prettierConfig];
|
|
28
|
-
const withApp = [...withNode, ...eslint_config_jsx.jsxConfig];
|
|
29
|
-
const withReact = [...withApp, ...eslint_config_react.reactConfig];
|
|
30
|
-
const withVue = [...withApp, ...vue];
|
|
31
|
-
return { withNode, withApp, withReact, withVue };
|
|
32
|
-
}
|
|
33
|
-
const all = createAll();
|
|
34
|
-
|
|
35
|
-
exports.all = all;
|
|
36
|
-
exports.createAll = createAll;
|