eslint-config-gorgon 0.0.0 → 0.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-gorgon",
3
- "version": "0.0.0",
3
+ "version": "0.0.2",
4
4
  "main": "src/index.js",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -9,19 +9,18 @@
9
9
  "config"
10
10
  ],
11
11
  "files": [
12
- "src"
12
+ "src/*"
13
13
  ],
14
14
  "dependencies": {
15
- "@typescript-eslint/eslint-plugin": "^5.55.0",
16
- "@typescript-eslint/parser": "^5.55.0",
15
+ "@typescript-eslint/eslint-plugin": "^5.56.0",
16
+ "@typescript-eslint/parser": "^5.56.0",
17
17
  "eslint-config-airbnb": "^19.0.4",
18
18
  "eslint-config-airbnb-typescript": "^17.0.0",
19
- "eslint-config-prettier": "^8.7.0",
20
- "eslint-plugin-react-hooks": "^4.6.0",
19
+ "eslint-config-prettier": "^8.8.0",
21
20
  "eslint-plugin-simple-import-sort": "^10.0.0"
22
21
  },
23
22
  "devDependencies": {
24
23
  "eslint": "^8.36.0",
25
- "typescript": "^4.9.5"
24
+ "typescript": "^5.0.2"
26
25
  }
27
26
  }
package/src/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  const extendsList = [
2
2
  './rules/base.js',
3
- './rules/react-hooks.js',
4
3
  './rules/imports.js',
5
4
  './rules/typescript.js',
6
5
  ].map((item) => require.resolve(item));
package/src/rules/base.js CHANGED
@@ -1,11 +1,15 @@
1
1
  const config = {
2
2
  extends: [
3
3
  'airbnb',
4
+ 'airbnb/hooks',
4
5
  'airbnb-typescript'
5
6
  ],
6
7
  rules: {
7
8
  // handle console
8
- 'no-console': 'warn'
9
+ 'no-console': 'warn',
10
+ // by ts
11
+ 'react/require-default-props': 0,
12
+ 'import/extensions': 0
9
13
  },
10
14
  };
11
15
 
@@ -1,17 +0,0 @@
1
- const config = {
2
- plugins: ['react-hooks'],
3
- parserOptions: {
4
- ecmaFeatures: {
5
- jsx: true,
6
- },
7
- },
8
- rules: {
9
- // Enforce Rules of Hooks
10
- // https://github.com/facebook/react/blob/c11015ff4f610ac2924d1fc6d569a17657a404fd/packages/eslint-plugin-react-hooks/src/RulesOfHooks.js
11
- 'react-hooks/rules-of-hooks': 'error',
12
- // Verify the list of the dependencies for Hooks like useEffect and similar
13
- // https://github.com/facebook/react/blob/1204c789776cb01fbaf3e9f032e7e2ba85a44137/packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js
14
- 'react-hooks/exhaustive-deps': 'error',
15
- },
16
- };
17
- module.exports = config;