@biscuittin/eslint-config 0.2.0 → 0.3.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.
Files changed (2) hide show
  1. package/dist/index.js +24 -17
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -246,14 +246,10 @@ const GLOB_JSON = "**/*.json";
246
246
  const GLOB_JSON5 = "**/*.json5";
247
247
  const GLOB_JSONC = "**/*.jsonc";
248
248
  const GLOB_MARKDOWN = "**/*.md";
249
- const GLOB_SVELTE = "**/*.svelte";
250
- const GLOB_VUE = "**/*.vue";
251
249
  const GLOB_YAML = "**/*.y?(a)ml";
252
250
  const GLOB_TOML = "**/*.toml";
253
- const GLOB_XML = "**/*.xml";
254
251
  const GLOB_HTML = "**/*.htm?(l)";
255
252
  const GLOB_SVG = "**/*.svg";
256
- const GLOB_ASTRO = "**/*.astro";
257
253
  const GLOB_MARKDOWN_CODE = `${GLOB_MARKDOWN}/${GLOB_SRC}`;
258
254
  const GLOB_TESTS = [
259
255
  `**/__tests__/**/*.${GLOB_SRC_EXT}`,
@@ -270,14 +266,10 @@ const GLOB_ALL_SRC = [
270
266
  GLOB_JSON5,
271
267
  GLOB_JSONC,
272
268
  GLOB_MARKDOWN,
273
- GLOB_SVELTE,
274
- GLOB_VUE,
275
269
  GLOB_YAML,
276
270
  GLOB_TOML,
277
- GLOB_XML,
278
271
  GLOB_HTML,
279
- GLOB_SVG,
280
- GLOB_ASTRO
272
+ GLOB_SVG
281
273
  ];
282
274
  const GLOB_EXCLUDE = [
283
275
  "**/node_modules",
@@ -481,12 +473,7 @@ async function formatters(options = {}) {
481
473
  },
482
474
  {
483
475
  name: `${name$12.rules}/markup`,
484
- files: [
485
- GLOB_HTML,
486
- GLOB_VUE,
487
- GLOB_SVELTE,
488
- GLOB_ASTRO
489
- ],
476
+ files: [GLOB_HTML],
490
477
  languageOptions: { parser: parsers_default["parserPlain"] },
491
478
  rules: hasPlugin("markup") ? { "format/dprint": ["error", {
492
479
  language: getPluginUrl("markup"),
@@ -1010,7 +997,6 @@ function nextJs() {
1010
997
  name: name$6.rules,
1011
998
  files: files$4,
1012
999
  rules: {
1013
- ...pluginNextJs.flatConfig.coreWebVitals.rules,
1014
1000
  "react-refresh/only-export-components": ["warn", { allowExportNames: [
1015
1001
  "config",
1016
1002
  "generateStaticParams",
@@ -1018,7 +1004,28 @@ function nextJs() {
1018
1004
  "generateMetadata",
1019
1005
  "viewport",
1020
1006
  "generateViewport"
1021
- ] }]
1007
+ ] }],
1008
+ "@next/next/google-font-display": "warn",
1009
+ "@next/next/google-font-preconnect": "warn",
1010
+ "@next/next/next-script-for-ga": "warn",
1011
+ "@next/next/no-async-client-component": "warn",
1012
+ "@next/next/no-before-interactive-script-outside-document": "warn",
1013
+ "@next/next/no-css-tags": "warn",
1014
+ "@next/next/no-head-element": "warn",
1015
+ "@next/next/no-img-element": "warn",
1016
+ "@next/next/no-page-custom-font": "warn",
1017
+ "@next/next/no-styled-jsx-in-document": "warn",
1018
+ "@next/next/no-title-in-document-head": "warn",
1019
+ "@next/next/no-typos": "warn",
1020
+ "@next/next/no-unwanted-polyfillio": "warn",
1021
+ "@next/next/inline-script-id": "error",
1022
+ "@next/next/no-assign-module-variable": "error",
1023
+ "@next/next/no-document-import-in-page": "error",
1024
+ "@next/next/no-duplicate-head": "error",
1025
+ "@next/next/no-head-import-in-document": "error",
1026
+ "@next/next/no-script-component-in-head": "error",
1027
+ "@next/next/no-html-link-for-pages": "error",
1028
+ "@next/next/no-sync-scripts": "error"
1022
1029
  }
1023
1030
  }];
1024
1031
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@biscuittin/eslint-config",
3
3
  "type": "module",
4
- "version": "0.2.0",
4
+ "version": "0.3.0",
5
5
  "description": "A collection of ESLint configurations for Biscuit Tin projects.",
6
6
  "author": "Biscuit Tin <opensource@biscuitt.in>",
7
7
  "license": "MIT",