@evaneos/front-config 1.1.0 → 5.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/eslint/index.js +17 -38
- package/eslint/index.mjs +17 -38
- package/package.json +1 -1
package/eslint/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
7
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
8
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
9
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -19,6 +21,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
21
|
}
|
|
20
22
|
return a;
|
|
21
23
|
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
22
25
|
var __commonJS = (cb, mod) => function __require() {
|
|
23
26
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
24
27
|
};
|
|
@@ -3074,17 +3077,11 @@ var _a, _b;
|
|
|
3074
3077
|
var react_default = [
|
|
3075
3078
|
(_a = import_eslint_plugin_react.default.configs.flat) == null ? void 0 : _a.recommended,
|
|
3076
3079
|
(_b = import_eslint_plugin_react.default.configs.flat) == null ? void 0 : _b["jsx-runtime"],
|
|
3077
|
-
{
|
|
3078
|
-
rules: {
|
|
3079
|
-
"react/display-name": 0,
|
|
3080
|
-
"react/prop-types": 0,
|
|
3081
|
-
"react/react-in-jsx-scope": 0
|
|
3082
|
-
}
|
|
3083
|
-
},
|
|
3084
3080
|
{
|
|
3085
3081
|
files: ["**/*.{js,jsx,mjs,cjs,ts,tsx}"],
|
|
3086
3082
|
plugins: {
|
|
3087
|
-
react: import_eslint_plugin_react.default
|
|
3083
|
+
react: import_eslint_plugin_react.default,
|
|
3084
|
+
"jsx-a11y": import_eslint_plugin_jsx_a11y.default
|
|
3088
3085
|
},
|
|
3089
3086
|
languageOptions: {
|
|
3090
3087
|
parserOptions: {
|
|
@@ -3093,31 +3090,14 @@ var react_default = [
|
|
|
3093
3090
|
}
|
|
3094
3091
|
},
|
|
3095
3092
|
globals: __spreadValues({}, import_globals.default.browser)
|
|
3096
|
-
},
|
|
3097
|
-
rules: {
|
|
3098
|
-
// ... any rules you want
|
|
3099
|
-
"react/jsx-uses-react": "error",
|
|
3100
|
-
"react/jsx-uses-vars": "error"
|
|
3101
3093
|
}
|
|
3102
|
-
// ... others are omitted for brevity
|
|
3103
3094
|
},
|
|
3104
3095
|
{
|
|
3105
3096
|
files: ["**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"],
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
parserOptions: {
|
|
3111
|
-
ecmaFeatures: {
|
|
3112
|
-
jsx: true
|
|
3113
|
-
}
|
|
3114
|
-
}
|
|
3115
|
-
},
|
|
3116
|
-
rules: {
|
|
3117
|
-
// ... any rules you want
|
|
3118
|
-
"jsx-a11y/alt-text": "error"
|
|
3119
|
-
}
|
|
3120
|
-
// ... others are omitted for brevity
|
|
3097
|
+
rules: __spreadValues({}, import_eslint_plugin_jsx_a11y.default.flatConfigs.recommended.rules),
|
|
3098
|
+
languageOptions: __spreadProps(__spreadValues({}, import_eslint_plugin_jsx_a11y.default.flatConfigs.recommended.languageOptions), {
|
|
3099
|
+
globals: __spreadValues(__spreadValues({}, import_globals.default.serviceworker), import_globals.default.browser)
|
|
3100
|
+
})
|
|
3121
3101
|
}
|
|
3122
3102
|
];
|
|
3123
3103
|
|
|
@@ -3139,14 +3119,6 @@ var test_default = [
|
|
|
3139
3119
|
plugins: { jest: import_eslint_plugin_jest.default },
|
|
3140
3120
|
languageOptions: {
|
|
3141
3121
|
globals: import_eslint_plugin_jest.default.environments.globals.globals
|
|
3142
|
-
},
|
|
3143
|
-
rules: {
|
|
3144
|
-
"jest/no-disabled-tests": "off",
|
|
3145
|
-
"jest/no-focused-tests": "off",
|
|
3146
|
-
"jest/no-identical-title": "error",
|
|
3147
|
-
"jest/prefer-to-have-length": "warn",
|
|
3148
|
-
"@typescript-eslint/no-require-imports": "off",
|
|
3149
|
-
"jest/valid-expect": "off"
|
|
3150
3122
|
}
|
|
3151
3123
|
}
|
|
3152
3124
|
];
|
|
@@ -3159,7 +3131,14 @@ var override_default = [
|
|
|
3159
3131
|
"prefer-const": 1,
|
|
3160
3132
|
"prefer-destructuring": 1,
|
|
3161
3133
|
"prefer-spread": 1,
|
|
3162
|
-
"arrow-body-style": 0
|
|
3134
|
+
"arrow-body-style": 0,
|
|
3135
|
+
"react/display-name": 0,
|
|
3136
|
+
"react/prop-types": 0,
|
|
3137
|
+
"react/react-in-jsx-scope": 0,
|
|
3138
|
+
"react/jsx-uses-react": "error",
|
|
3139
|
+
"react/jsx-uses-vars": "error",
|
|
3140
|
+
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
3141
|
+
"@typescript-eslint/no-unsafe-assignment": "off"
|
|
3163
3142
|
}
|
|
3164
3143
|
}
|
|
3165
3144
|
];
|
package/eslint/index.mjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
var __create = Object.create;
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
7
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
8
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -18,6 +20,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
20
|
}
|
|
19
21
|
return a;
|
|
20
22
|
};
|
|
23
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
24
|
var __commonJS = (cb, mod) => function __require() {
|
|
22
25
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
23
26
|
};
|
|
@@ -3063,17 +3066,11 @@ var _a, _b;
|
|
|
3063
3066
|
var react_default = [
|
|
3064
3067
|
(_a = reactPlugin.configs.flat) == null ? void 0 : _a.recommended,
|
|
3065
3068
|
(_b = reactPlugin.configs.flat) == null ? void 0 : _b["jsx-runtime"],
|
|
3066
|
-
{
|
|
3067
|
-
rules: {
|
|
3068
|
-
"react/display-name": 0,
|
|
3069
|
-
"react/prop-types": 0,
|
|
3070
|
-
"react/react-in-jsx-scope": 0
|
|
3071
|
-
}
|
|
3072
|
-
},
|
|
3073
3069
|
{
|
|
3074
3070
|
files: ["**/*.{js,jsx,mjs,cjs,ts,tsx}"],
|
|
3075
3071
|
plugins: {
|
|
3076
|
-
react: reactPlugin
|
|
3072
|
+
react: reactPlugin,
|
|
3073
|
+
"jsx-a11y": jsxA11y
|
|
3077
3074
|
},
|
|
3078
3075
|
languageOptions: {
|
|
3079
3076
|
parserOptions: {
|
|
@@ -3082,31 +3079,14 @@ var react_default = [
|
|
|
3082
3079
|
}
|
|
3083
3080
|
},
|
|
3084
3081
|
globals: __spreadValues({}, import_globals.default.browser)
|
|
3085
|
-
},
|
|
3086
|
-
rules: {
|
|
3087
|
-
// ... any rules you want
|
|
3088
|
-
"react/jsx-uses-react": "error",
|
|
3089
|
-
"react/jsx-uses-vars": "error"
|
|
3090
3082
|
}
|
|
3091
|
-
// ... others are omitted for brevity
|
|
3092
3083
|
},
|
|
3093
3084
|
{
|
|
3094
3085
|
files: ["**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"],
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
parserOptions: {
|
|
3100
|
-
ecmaFeatures: {
|
|
3101
|
-
jsx: true
|
|
3102
|
-
}
|
|
3103
|
-
}
|
|
3104
|
-
},
|
|
3105
|
-
rules: {
|
|
3106
|
-
// ... any rules you want
|
|
3107
|
-
"jsx-a11y/alt-text": "error"
|
|
3108
|
-
}
|
|
3109
|
-
// ... others are omitted for brevity
|
|
3086
|
+
rules: __spreadValues({}, jsxA11y.flatConfigs.recommended.rules),
|
|
3087
|
+
languageOptions: __spreadProps(__spreadValues({}, jsxA11y.flatConfigs.recommended.languageOptions), {
|
|
3088
|
+
globals: __spreadValues(__spreadValues({}, import_globals.default.serviceworker), import_globals.default.browser)
|
|
3089
|
+
})
|
|
3110
3090
|
}
|
|
3111
3091
|
];
|
|
3112
3092
|
|
|
@@ -3128,14 +3108,6 @@ var test_default = [
|
|
|
3128
3108
|
plugins: { jest: pluginJest },
|
|
3129
3109
|
languageOptions: {
|
|
3130
3110
|
globals: pluginJest.environments.globals.globals
|
|
3131
|
-
},
|
|
3132
|
-
rules: {
|
|
3133
|
-
"jest/no-disabled-tests": "off",
|
|
3134
|
-
"jest/no-focused-tests": "off",
|
|
3135
|
-
"jest/no-identical-title": "error",
|
|
3136
|
-
"jest/prefer-to-have-length": "warn",
|
|
3137
|
-
"@typescript-eslint/no-require-imports": "off",
|
|
3138
|
-
"jest/valid-expect": "off"
|
|
3139
3111
|
}
|
|
3140
3112
|
}
|
|
3141
3113
|
];
|
|
@@ -3148,7 +3120,14 @@ var override_default = [
|
|
|
3148
3120
|
"prefer-const": 1,
|
|
3149
3121
|
"prefer-destructuring": 1,
|
|
3150
3122
|
"prefer-spread": 1,
|
|
3151
|
-
"arrow-body-style": 0
|
|
3123
|
+
"arrow-body-style": 0,
|
|
3124
|
+
"react/display-name": 0,
|
|
3125
|
+
"react/prop-types": 0,
|
|
3126
|
+
"react/react-in-jsx-scope": 0,
|
|
3127
|
+
"react/jsx-uses-react": "error",
|
|
3128
|
+
"react/jsx-uses-vars": "error",
|
|
3129
|
+
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
3130
|
+
"@typescript-eslint/no-unsafe-assignment": "off"
|
|
3152
3131
|
}
|
|
3153
3132
|
}
|
|
3154
3133
|
];
|