eslint-config-airbnb-extended 0.3.0 → 0.4.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 (64) hide show
  1. package/README.md +10 -0
  2. package/dist/@types/index.d.ts +22 -0
  3. package/dist/configs/base/index.js +24 -0
  4. package/dist/{base → configs/base}/recommended.js +4 -3
  5. package/dist/configs/index.js +34 -0
  6. package/dist/{react → configs/react}/index.js +5 -4
  7. package/dist/{react → configs/react}/recommended.js +5 -6
  8. package/dist/configs/typescript/index.js +14 -0
  9. package/dist/{typescript → configs/typescript}/recommended.js +6 -5
  10. package/dist/helpers/getDevDepsList.js +1 -2
  11. package/dist/index.js +11 -37
  12. package/dist/plugins/index.js +21 -0
  13. package/dist/plugins/nextPlugin.js +12 -0
  14. package/dist/plugins/reactA11yPlugin.js +12 -0
  15. package/dist/plugins/reactHooksPlugin.js +51 -0
  16. package/dist/plugins/reactPlugin.js +13 -0
  17. package/dist/plugins/typescriptEslintPlugin.js +16 -0
  18. package/dist/rules/best-practices.js +2 -1
  19. package/dist/rules/errors.js +2 -1
  20. package/dist/rules/es6.js +2 -1
  21. package/dist/rules/imports.js +8 -13
  22. package/dist/rules/importsStrict.js +3 -16
  23. package/dist/rules/index.js +21 -0
  24. package/dist/rules/next.js +2 -4
  25. package/dist/rules/node.js +2 -1
  26. package/dist/rules/react-a11y.js +2 -7
  27. package/dist/rules/react-hooks.js +2 -38
  28. package/dist/rules/react.js +2 -5
  29. package/dist/rules/strict.js +2 -1
  30. package/dist/rules/style.js +2 -1
  31. package/dist/rules/typescript/typescriptBase.js +3 -2
  32. package/dist/rules/typescript/typescriptEslint.js +11 -17
  33. package/dist/rules/typescript/typescriptImports.js +8 -4
  34. package/dist/rules/variables.js +2 -1
  35. package/package.json +3 -3
  36. package/dist/base/index.d.ts +0 -990
  37. package/dist/base/index.js +0 -23
  38. package/dist/base/recommended.d.ts +0 -990
  39. package/dist/helpers/getDevDepsList.d.ts +0 -3
  40. package/dist/index.d.ts +0 -17982
  41. package/dist/react/index.d.ts +0 -1793
  42. package/dist/react/recommended.d.ts +0 -2786
  43. package/dist/rules/best-practices.d.ts +0 -177
  44. package/dist/rules/errors.d.ts +0 -69
  45. package/dist/rules/es6.d.ts +0 -146
  46. package/dist/rules/imports.d.ts +0 -151
  47. package/dist/rules/importsStrict.d.ts +0 -43
  48. package/dist/rules/next.d.ts +0 -8
  49. package/dist/rules/node.d.ts +0 -90
  50. package/dist/rules/react-a11y.d.ts +0 -117
  51. package/dist/rules/react-hooks.d.ts +0 -19
  52. package/dist/rules/react.d.ts +0 -1659
  53. package/dist/rules/strict.d.ts +0 -7
  54. package/dist/rules/style.d.ts +0 -320
  55. package/dist/rules/typescript/typescriptBase.d.ts +0 -23
  56. package/dist/rules/typescript/typescriptEslint.d.ts +0 -3
  57. package/dist/rules/typescript/typescriptImports.d.ts +0 -37
  58. package/dist/rules/typescript.d.ts +0 -47
  59. package/dist/rules/typescript.js +0 -9
  60. package/dist/rules/variables.d.ts +0 -35
  61. package/dist/typescript/index.d.ts +0 -58
  62. package/dist/typescript/index.js +0 -11
  63. package/dist/typescript/recommended.d.ts +0 -112
  64. package/dist/utils/index.d.ts +0 -13
@@ -1,117 +0,0 @@
1
- declare const _default: {
2
- name: string;
3
- plugins: {
4
- 'jsx-a11y': any;
5
- };
6
- languageOptions: {
7
- parserOptions: {
8
- ecmaFeatures: {
9
- jsx: true;
10
- };
11
- };
12
- };
13
- rules: {
14
- 'jsx-a11y/accessible-emoji': "off";
15
- 'jsx-a11y/alt-text': ["error", {
16
- elements: string[];
17
- img: never[];
18
- object: never[];
19
- area: never[];
20
- 'input[type="image"]': never[];
21
- }];
22
- 'jsx-a11y/anchor-has-content': ["error", {
23
- components: never[];
24
- }];
25
- 'jsx-a11y/anchor-is-valid': ["error", {
26
- components: string[];
27
- specialLink: string[];
28
- aspects: string[];
29
- }];
30
- 'jsx-a11y/aria-activedescendant-has-tabindex': "error";
31
- 'jsx-a11y/aria-props': "error";
32
- 'jsx-a11y/aria-proptypes': "error";
33
- 'jsx-a11y/aria-role': ["error", {
34
- ignoreNonDOM: boolean;
35
- }];
36
- 'jsx-a11y/aria-unsupported-elements': "error";
37
- 'jsx-a11y/autocomplete-valid': ["off", {
38
- inputComponents: never[];
39
- }];
40
- 'jsx-a11y/click-events-have-key-events': "error";
41
- 'jsx-a11y/control-has-associated-label': ["error", {
42
- labelAttributes: string[];
43
- controlComponents: never[];
44
- ignoreElements: string[];
45
- ignoreRoles: string[];
46
- depth: number;
47
- }];
48
- 'jsx-a11y/heading-has-content': ["error", {
49
- components: string[];
50
- }];
51
- 'jsx-a11y/html-has-lang': "error";
52
- 'jsx-a11y/iframe-has-title': "error";
53
- 'jsx-a11y/img-redundant-alt': "error";
54
- 'jsx-a11y/interactive-supports-focus': "error";
55
- 'jsx-a11y/label-has-associated-control': ["error", {
56
- labelComponents: never[];
57
- labelAttributes: never[];
58
- controlComponents: never[];
59
- assert: string;
60
- depth: number;
61
- }];
62
- 'jsx-a11y/lang': "error";
63
- 'jsx-a11y/media-has-caption': ["error", {
64
- audio: never[];
65
- video: never[];
66
- track: never[];
67
- }];
68
- 'jsx-a11y/mouse-events-have-key-events': "error";
69
- 'jsx-a11y/no-access-key': "error";
70
- 'jsx-a11y/no-autofocus': ["error", {
71
- ignoreNonDOM: boolean;
72
- }];
73
- 'jsx-a11y/no-distracting-elements': ["error", {
74
- elements: string[];
75
- }];
76
- 'jsx-a11y/no-interactive-element-to-noninteractive-role': ["error", {
77
- tr: string[];
78
- }];
79
- 'jsx-a11y/no-noninteractive-element-interactions': ["error", {
80
- handlers: string[];
81
- }];
82
- 'jsx-a11y/no-noninteractive-element-to-interactive-role': ["error", {
83
- ul: string[];
84
- ol: string[];
85
- li: string[];
86
- table: string[];
87
- td: string[];
88
- }];
89
- 'jsx-a11y/no-noninteractive-tabindex': ["error", {
90
- tags: never[];
91
- roles: string[];
92
- allowExpressionValues: boolean;
93
- }];
94
- 'jsx-a11y/no-onchange': "off";
95
- 'jsx-a11y/no-redundant-roles': ["error", {
96
- nav: string[];
97
- }];
98
- 'jsx-a11y/no-static-element-interactions': ["error", {
99
- handlers: string[];
100
- }];
101
- 'jsx-a11y/role-has-required-aria-props': "error";
102
- 'jsx-a11y/role-supports-aria-props': "error";
103
- 'jsx-a11y/scope': "error";
104
- 'jsx-a11y/tabindex-no-positive': "error";
105
- 'jsx-a11y/label-has-for': ["off", {
106
- components: never[];
107
- required: {
108
- every: string[];
109
- };
110
- allowChildren: boolean;
111
- }];
112
- 'jsx-a11y/anchor-ambiguous-text': "off";
113
- 'jsx-a11y/no-aria-hidden-on-focusable': "off";
114
- 'jsx-a11y/prefer-tag-over-role': "off";
115
- };
116
- };
117
- export default _default;
@@ -1,19 +0,0 @@
1
- import * as EsLintPluginReactHooks from 'eslint-plugin-react-hooks';
2
- declare const _default: {
3
- name: string;
4
- plugins: {
5
- 'react-hooks': typeof EsLintPluginReactHooks;
6
- };
7
- languageOptions: {
8
- parserOptions: {
9
- ecmaFeatures: {
10
- jsx: true;
11
- };
12
- };
13
- };
14
- rules: {
15
- 'react-hooks/rules-of-hooks': "error";
16
- 'react-hooks/exhaustive-deps': "error";
17
- };
18
- };
19
- export default _default;