@saasmakers/eslint 0.1.60 → 0.1.62

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.
@@ -1,13 +1,49 @@
1
1
  import antfu from '@antfu/eslint-config';
2
+ import { Linter, ESLint } from 'eslint';
2
3
  import storybook from 'eslint-plugin-storybook';
3
4
 
5
+ interface PluginConfigs extends Record<
6
+ string,
7
+ Linter.LegacyConfig | Linter.Config[] | Linter.Config
8
+ > {
9
+ 'recommended-alphabetical-legacy': Linter.LegacyConfig
10
+ 'recommended-line-length-legacy': Linter.LegacyConfig
11
+ 'recommended-natural-legacy': Linter.LegacyConfig
12
+ 'recommended-custom-legacy': Linter.LegacyConfig
13
+ 'recommended-alphabetical': Linter.Config
14
+ 'recommended-line-length': Linter.Config
15
+ 'recommended-natural': Linter.Config
16
+ 'recommended-custom': Linter.Config
17
+ }
18
+ declare const _default: {
19
+ configs: PluginConfigs
20
+ } & ESLint.Plugin
21
+
4
22
  var eslint_config = antfu(
5
23
  // Antfu ESLint config
6
24
  {
25
+ ignores: [
26
+ "**/.nuxt",
27
+ "**/.output",
28
+ "**/.turbo",
29
+ "**/ace.js",
30
+ "**/android",
31
+ "**/build",
32
+ "**/coverage",
33
+ "**/dbschema",
34
+ "**/dist",
35
+ "**/dumps/*.json",
36
+ "**/ios",
37
+ "node_modules"
38
+ ],
7
39
  typescript: true,
8
40
  unocss: true,
9
- vue: true
41
+ vue: {
42
+ a11y: true
43
+ }
10
44
  },
45
+ // ESLint plugins we use
46
+ _default.configs["recommended-natural"],
11
47
  ...storybook.configs["flat/recommended"],
12
48
  // Override rules defined by Antfu ESLint config
13
49
  // Try to keep the disabled rules to a minimum
@@ -1,13 +1,49 @@
1
1
  import antfu from '@antfu/eslint-config';
2
+ import { Linter, ESLint } from 'eslint';
2
3
  import storybook from 'eslint-plugin-storybook';
3
4
 
5
+ interface PluginConfigs extends Record<
6
+ string,
7
+ Linter.LegacyConfig | Linter.Config[] | Linter.Config
8
+ > {
9
+ 'recommended-alphabetical-legacy': Linter.LegacyConfig
10
+ 'recommended-line-length-legacy': Linter.LegacyConfig
11
+ 'recommended-natural-legacy': Linter.LegacyConfig
12
+ 'recommended-custom-legacy': Linter.LegacyConfig
13
+ 'recommended-alphabetical': Linter.Config
14
+ 'recommended-line-length': Linter.Config
15
+ 'recommended-natural': Linter.Config
16
+ 'recommended-custom': Linter.Config
17
+ }
18
+ declare const _default: {
19
+ configs: PluginConfigs
20
+ } & ESLint.Plugin
21
+
4
22
  var eslint_config = antfu(
5
23
  // Antfu ESLint config
6
24
  {
25
+ ignores: [
26
+ "**/.nuxt",
27
+ "**/.output",
28
+ "**/.turbo",
29
+ "**/ace.js",
30
+ "**/android",
31
+ "**/build",
32
+ "**/coverage",
33
+ "**/dbschema",
34
+ "**/dist",
35
+ "**/dumps/*.json",
36
+ "**/ios",
37
+ "node_modules"
38
+ ],
7
39
  typescript: true,
8
40
  unocss: true,
9
- vue: true
41
+ vue: {
42
+ a11y: true
43
+ }
10
44
  },
45
+ // ESLint plugins we use
46
+ _default.configs["recommended-natural"],
11
47
  ...storybook.configs["flat/recommended"],
12
48
  // Override rules defined by Antfu ESLint config
13
49
  // Try to keep the disabled rules to a minimum
@@ -1,13 +1,49 @@
1
1
  import antfu from '@antfu/eslint-config';
2
+ import { Linter, ESLint } from 'eslint';
2
3
  import storybook from 'eslint-plugin-storybook';
3
4
 
5
+ interface PluginConfigs extends Record<
6
+ string,
7
+ Linter.LegacyConfig | Linter.Config[] | Linter.Config
8
+ > {
9
+ 'recommended-alphabetical-legacy': Linter.LegacyConfig
10
+ 'recommended-line-length-legacy': Linter.LegacyConfig
11
+ 'recommended-natural-legacy': Linter.LegacyConfig
12
+ 'recommended-custom-legacy': Linter.LegacyConfig
13
+ 'recommended-alphabetical': Linter.Config
14
+ 'recommended-line-length': Linter.Config
15
+ 'recommended-natural': Linter.Config
16
+ 'recommended-custom': Linter.Config
17
+ }
18
+ declare const _default: {
19
+ configs: PluginConfigs
20
+ } & ESLint.Plugin
21
+
4
22
  var eslint_config = antfu(
5
23
  // Antfu ESLint config
6
24
  {
25
+ ignores: [
26
+ "**/.nuxt",
27
+ "**/.output",
28
+ "**/.turbo",
29
+ "**/ace.js",
30
+ "**/android",
31
+ "**/build",
32
+ "**/coverage",
33
+ "**/dbschema",
34
+ "**/dist",
35
+ "**/dumps/*.json",
36
+ "**/ios",
37
+ "node_modules"
38
+ ],
7
39
  typescript: true,
8
40
  unocss: true,
9
- vue: true
41
+ vue: {
42
+ a11y: true
43
+ }
10
44
  },
45
+ // ESLint plugins we use
46
+ _default.configs["recommended-natural"],
11
47
  ...storybook.configs["flat/recommended"],
12
48
  // Override rules defined by Antfu ESLint config
13
49
  // Try to keep the disabled rules to a minimum