eslint-config-seekingalpha-react 8.0.0 → 9.0.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.
@@ -1,6 +1,9 @@
1
- module.exports = {
2
- plugins: ['react-hooks'],
1
+ import reactHooksPlugin from 'eslint-plugin-react-hooks';
3
2
 
3
+ export default {
4
+ plugins: {
5
+ 'react-hooks': reactHooksPlugin,
6
+ },
4
7
  rules: {
5
8
  // React Hooks Plugin https://www.npmjs.com/package/eslint-plugin-react-hooks
6
9
 
package/flat.js DELETED
@@ -1,16 +0,0 @@
1
- import jsxA11yConfig from './rules/eslint-plugin-jsx-a11y/flat.js';
2
- import reactConfig from './rules/eslint-plugin-react/flat.js';
3
- import reactHooksConfig from './rules/eslint-plugin-react-hooks/flat.js';
4
-
5
- export default {
6
- plugins: {
7
- ...jsxA11yConfig.plugins,
8
- ...reactConfig.plugins,
9
- ...reactHooksConfig.plugins,
10
- },
11
- rules: {
12
- ...jsxA11yConfig.rules,
13
- ...reactConfig.rules,
14
- ...reactHooksConfig.rules,
15
- },
16
- };
@@ -1,10 +0,0 @@
1
- import jsxA11y from 'eslint-plugin-jsx-a11y';
2
-
3
- import config from './index.js';
4
-
5
- export default {
6
- plugins: {
7
- 'jsx-a11y': jsxA11y,
8
- },
9
- rules: config.rules,
10
- };
@@ -1,14 +0,0 @@
1
- import reactPlugin from 'eslint-plugin-react';
2
-
3
- import jsxConfig from './jsx.js';
4
- import reactConfig from './react.js';
5
-
6
- export default {
7
- plugins: {
8
- react: reactPlugin,
9
- },
10
- rules: {
11
- ...jsxConfig.rules,
12
- ...reactConfig.rules,
13
- },
14
- };
@@ -1,10 +0,0 @@
1
- import reactHooksPlugin from 'eslint-plugin-react-hooks';
2
-
3
- import config from './index.js';
4
-
5
- export default {
6
- plugins: {
7
- 'react-hooks': reactHooksPlugin,
8
- },
9
- rules: config.rules,
10
- };