es-components 21.7.0-alpha.89eb7e21 → 21.7.0-pre-prod.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/.eslintrc.js ADDED
@@ -0,0 +1,77 @@
1
+ const plugins = ['import', '@babel'];
2
+ const exts = [
3
+ 'eslint:recommended',
4
+ 'plugin:jsx-a11y/recommended',
5
+ 'plugin:react/recommended',
6
+ 'plugin:react-hooks/recommended'
7
+ ];
8
+ module.exports = {
9
+ extends: exts,
10
+ parser: '@babel/eslint-parser',
11
+ plugins,
12
+ parserOptions: {
13
+ ecmaFeatures: {
14
+ jsx: true,
15
+ destructuring: true,
16
+ experimentalObjectRestSpread: true,
17
+ ecmaVersion: 'latest'
18
+ }
19
+ },
20
+ rules: {
21
+ 'no-unused-vars': ['warn'],
22
+ 'max-len': 0,
23
+ 'jsx-a11y/img-uses-alt': 0,
24
+ 'jsx-a11y/redundant-alt': 0,
25
+ 'jsx-a11y/valid-aria-role': 0,
26
+ 'import/prefer-default-export': 0,
27
+ 'react/jsx-filename-extension': 0,
28
+ 'import/no-named-as-default': 0,
29
+ 'react/forbid-prop-types': 0,
30
+ 'react/no-find-dom-node': 0,
31
+ 'react/jsx-no-bind': 0,
32
+ 'react/destructuring-assignment': 0,
33
+ 'linebreak-style': 0,
34
+ 'import/no-extraneous-dependencies': [
35
+ 'error',
36
+ {
37
+ devDependencies: [
38
+ '**/*.specs.js',
39
+ '**/ExampleWrapper.js',
40
+ '**/test-utils.js'
41
+ ]
42
+ }
43
+ ],
44
+ 'prefer-arrow-callback': 0,
45
+ 'id-length': 0
46
+ },
47
+ overrides: [
48
+ {
49
+ files: ['.eslintrc*', '*.config.js', '**/config/*'],
50
+ env: {
51
+ node: true
52
+ },
53
+ rules: {
54
+ 'import/no-extraneous-dependencies': [
55
+ 'error',
56
+ {
57
+ devDependencies: true
58
+ }
59
+ ]
60
+ }
61
+ },
62
+ {
63
+ files: ['*.specs.*'],
64
+ env: {
65
+ es2021: true
66
+ },
67
+ extends: [
68
+ ...exts,
69
+ 'plugin:jest/recommended',
70
+ 'plugin:testing-library/react'
71
+ ]
72
+ }
73
+ ],
74
+ env: {
75
+ browser: true
76
+ }
77
+ };
package/.prettierrc.js ADDED
@@ -0,0 +1,5 @@
1
+ module.exports = {
2
+ arrowParens: 'avoid',
3
+ singleQuote: true,
4
+ trailingComma: 'none'
5
+ };