@exbotanical/eslint-config 1.1.3 → 1.1.4
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.d.ts +27 -1
- package/dist/index.js +34 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -11609,4 +11609,30 @@ interface OptionsStyle {
|
|
|
11609
11609
|
type LinterOptions = OptionsConfig;
|
|
11610
11610
|
declare function exbotanical({ javascript: optionsJavascript, ignores: optionsIgnore, jsonc: optionsJsonc, markdown: optionsMarkdown, toml: optionsToml, yaml: optionsYaml, test: optionsTest, formatter, typescript: optionsTypescript, style: optionsStyle, react: optionsReact, vue: optionsVue, graphql: optionsGraphql, type, }: LinterOptions, ...userConfigs: Awaitable<FlatConfigRecord | FlatConfigRecord[] | Linter.Config[]>[]): Promise<FlatConfigRecord[]>;
|
|
11611
11611
|
|
|
11612
|
-
|
|
11612
|
+
declare const GLOB_JS = "**/*.?([cm])js";
|
|
11613
|
+
declare const GLOB_JSX = "**/*.?([cm])jsx";
|
|
11614
|
+
declare const GLOB_TS = "**/*.?([cm])ts";
|
|
11615
|
+
declare const GLOB_TSX = "**/*.?([cm])tsx";
|
|
11616
|
+
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
11617
|
+
declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
11618
|
+
declare const GLOB_JSON = "**/*.json";
|
|
11619
|
+
declare const GLOB_JSON5 = "**/*.json5";
|
|
11620
|
+
declare const GLOB_JSONC = "**/*.jsonc";
|
|
11621
|
+
declare const GLOB_MARKDOWN = "**/*.md";
|
|
11622
|
+
declare const GLOB_VUE = "**/*.vue";
|
|
11623
|
+
declare const GLOB_YAML = "**/*.y?(a)ml";
|
|
11624
|
+
declare const GLOB_TOML = "**/*.toml";
|
|
11625
|
+
declare const GLOB_XML = "**/*.xml";
|
|
11626
|
+
declare const GLOB_SVG = "**/*.svg";
|
|
11627
|
+
declare const GLOB_HTML = "**/*.htm?(l)";
|
|
11628
|
+
declare const GLOB_GRAPHQL = "**/*.{g,graph}ql";
|
|
11629
|
+
declare const GLOB_STYLE = "**/*.{c,le,sc}ss";
|
|
11630
|
+
declare const GLOB_CSS = "**/*.css";
|
|
11631
|
+
declare const GLOB_POSTCSS = "**/*.{p,post}css";
|
|
11632
|
+
declare const GLOB_LESS = "**/*.less";
|
|
11633
|
+
declare const GLOB_SCSS = "**/*.scss";
|
|
11634
|
+
declare const GLOB_MARKDOWN_CODE = "**/*.md/**/*.?([cm])[jt]s?(x)";
|
|
11635
|
+
declare const GLOB_TESTS: string[];
|
|
11636
|
+
declare const GLOB_EXCLUDES: string[];
|
|
11637
|
+
|
|
11638
|
+
export { type AllOptions, type Awaitable, type FlatConfigRecord, GLOB_CSS, GLOB_EXCLUDES, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, type OptionsConfig, type OptionsFiles, type OptionsHasTypeScript, type OptionsOverrides, type OptionsProjectType, type OptionsStyle, type OptionsTypeScriptParser, type Rules, exbotanical as default };
|
package/dist/index.js
CHANGED
|
@@ -841,7 +841,15 @@ var GLOB_MARKDOWN = "**/*.md";
|
|
|
841
841
|
var GLOB_VUE = "**/*.vue";
|
|
842
842
|
var GLOB_YAML = "**/*.y?(a)ml";
|
|
843
843
|
var GLOB_TOML = "**/*.toml";
|
|
844
|
+
var GLOB_XML = "**/*.xml";
|
|
845
|
+
var GLOB_SVG = "**/*.svg";
|
|
846
|
+
var GLOB_HTML = "**/*.htm?(l)";
|
|
844
847
|
var GLOB_GRAPHQL = "**/*.{g,graph}ql";
|
|
848
|
+
var GLOB_STYLE = "**/*.{c,le,sc}ss";
|
|
849
|
+
var GLOB_CSS = "**/*.css";
|
|
850
|
+
var GLOB_POSTCSS = "**/*.{p,post}css";
|
|
851
|
+
var GLOB_LESS = "**/*.less";
|
|
852
|
+
var GLOB_SCSS = "**/*.scss";
|
|
845
853
|
var GLOB_MARKDOWN_CODE = `${GLOB_MARKDOWN}/${GLOB_SRC}`;
|
|
846
854
|
var GLOB_TESTS = [
|
|
847
855
|
`**/__tests__/**/*.${GLOB_SRC_EXT}`,
|
|
@@ -2344,6 +2352,7 @@ async function test({
|
|
|
2344
2352
|
},
|
|
2345
2353
|
runner === "jest" ? {
|
|
2346
2354
|
name: `${NAMESPACE16}/jest`,
|
|
2355
|
+
...cypress && typeof cypress !== "boolean" ? { ignores: [...cypress.files ?? []] } : {},
|
|
2347
2356
|
...pluginRunner.configs["flat/recommended"],
|
|
2348
2357
|
rules: {
|
|
2349
2358
|
...pluginRunner.configs["flat/recommended"].rules
|
|
@@ -3018,5 +3027,30 @@ init_esm_shims();
|
|
|
3018
3027
|
// src/types.ts
|
|
3019
3028
|
init_esm_shims();
|
|
3020
3029
|
export {
|
|
3030
|
+
GLOB_CSS,
|
|
3031
|
+
GLOB_EXCLUDES,
|
|
3032
|
+
GLOB_GRAPHQL,
|
|
3033
|
+
GLOB_HTML,
|
|
3034
|
+
GLOB_JS,
|
|
3035
|
+
GLOB_JSON,
|
|
3036
|
+
GLOB_JSON5,
|
|
3037
|
+
GLOB_JSONC,
|
|
3038
|
+
GLOB_JSX,
|
|
3039
|
+
GLOB_LESS,
|
|
3040
|
+
GLOB_MARKDOWN,
|
|
3041
|
+
GLOB_MARKDOWN_CODE,
|
|
3042
|
+
GLOB_POSTCSS,
|
|
3043
|
+
GLOB_SCSS,
|
|
3044
|
+
GLOB_SRC,
|
|
3045
|
+
GLOB_SRC_EXT,
|
|
3046
|
+
GLOB_STYLE,
|
|
3047
|
+
GLOB_SVG,
|
|
3048
|
+
GLOB_TESTS,
|
|
3049
|
+
GLOB_TOML,
|
|
3050
|
+
GLOB_TS,
|
|
3051
|
+
GLOB_TSX,
|
|
3052
|
+
GLOB_VUE,
|
|
3053
|
+
GLOB_XML,
|
|
3054
|
+
GLOB_YAML,
|
|
3021
3055
|
exbotanical as default
|
|
3022
3056
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exbotanical/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.4",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Zito's eslint config",
|
|
7
7
|
"author": "Matthew Zito <exbotanical@protonmail.com> (https://github.com/exbotanical/)",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"prepack": "npm run build",
|
|
35
35
|
"prepare": "simple-git-hooks",
|
|
36
36
|
"typecheck": "tsc --noEmit",
|
|
37
|
-
"release": "npm publish"
|
|
37
|
+
"release": "bumpp && npm publish"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@eslint-react/eslint-plugin": "^1.30.1",
|