@pob/eslint-config 51.0.2 → 51.1.1

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/CHANGELOG.md CHANGED
@@ -1,8 +1,28 @@
1
- # Change Log
1
+ # Changelog
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [51.1.1](https://github.com/christophehurpeau/eslint-config-pob/compare/v51.1.0...v51.1.1) (2023-10-18)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * fix no-restricted-exports rule ([e808aa7](https://github.com/christophehurpeau/eslint-config-pob/commit/e808aa7403019a8915b2b4b3741f4a5c9f1f7336))
12
+
13
+
14
+
15
+
16
+ ## [51.1.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v51.0.2...v51.1.0) (2023-10-03)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * fix react/function-component-definition rule and enable func-names ([4cffe9e](https://github.com/christophehurpeau/eslint-config-pob/commit/4cffe9e6b3251195eeccc74fd702192f412737e3))
22
+
23
+
24
+
25
+
6
26
  ## [51.0.2](https://github.com/christophehurpeau/eslint-config-pob/compare/v51.0.1...v51.0.2) (2023-09-01)
7
27
 
8
28
  **Note:** Version bump only for package @pob/eslint-config
package/lib/base.js CHANGED
@@ -5,6 +5,7 @@ module.exports = {
5
5
  'eslint-config-airbnb-base',
6
6
  './plugins/prettier',
7
7
  './plugins/unicorn',
8
+ './rules/airbnb-fixes',
8
9
  './rules/best-practices',
9
10
  './rules/code-quality',
10
11
  './rules/style',
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+ rules: {
5
+ // TODO[eslint-config-airbnb-base@>=16.0.0]: Remove this rule ; see https://github.com/airbnb/javascript/pull/2721
6
+ 'no-restricted-exports': [
7
+ 'error',
8
+ {
9
+ restrictDefaultExports: {
10
+ direct: false, // permits `export default` declarations
11
+ named: true, // restricts `export { foo as default };` declarations
12
+ defaultFrom: false, // permits `export { default } from 'foo';` declarations
13
+ namedFrom: false, // permits `export { foo as default } from 'foo';` declarations
14
+ namespaceFrom: true, // restricts `export * as default from 'foo';` declarations
15
+ },
16
+ restrictedNamedExports: [
17
+ 'then', // this will cause tons of confusion when your module is dynamically `import()`ed, and will break in most node ESM versions
18
+ ],
19
+ },
20
+ ],
21
+ },
22
+ };
@@ -5,7 +5,6 @@ module.exports = {
5
5
  'class-methods-use-this': 'off', // http://eslint.org/docs/rules/class-methods-use-this
6
6
  'consistent-return': 'off', // http://eslint.org/docs/rules/consistent-return
7
7
  'default-case': 'off', // http://eslint.org/docs/rules/default-case
8
- 'func-names': 'off', // http://eslint.org/docs/rules/func-names
9
8
  'no-await-in-loop': 'off', // http://eslint.org/docs/rules/no-continue
10
9
  'no-continue': 'off', // http://eslint.org/docs/rules/no-continue
11
10
  'no-empty': 'off', // http://eslint.org/docs/rules/no-empty
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/eslint-config",
3
- "version": "51.0.2",
3
+ "version": "51.1.1",
4
4
  "description": "eslint config files",
5
5
  "keywords": [],
6
6
  "author": "Christophe Hurpeau <christophe@hurpeau.com> (http://christophe.hurpeau.com/)",
@@ -32,6 +32,10 @@
32
32
  "./package.json": "./package.json"
33
33
  },
34
34
  "sideEffects": false,
35
+ "files": [
36
+ "lib",
37
+ "utils.js"
38
+ ],
35
39
  "scripts": {
36
40
  "clean:build": "true",
37
41
  "lint": "yarn run lint:eslint",
@@ -58,18 +62,17 @@
58
62
  },
59
63
  "dependencies": {
60
64
  "eslint-config-airbnb-base": "^15.0.0",
61
- "eslint-config-prettier": "^8.10.0",
65
+ "eslint-config-prettier": "^9.0.0",
62
66
  "eslint-plugin-import": "^2.28.1",
63
67
  "eslint-plugin-node": "^11.1.0",
64
68
  "eslint-plugin-unicorn": "^48.0.1"
65
69
  },
66
70
  "devDependencies": {
67
- "eslint": "8.48.0",
71
+ "eslint": "8.51.0",
68
72
  "eslint-config-airbnb-base": "15.0.0",
69
- "eslint-config-prettier": "8.10.0",
73
+ "eslint-config-prettier": "9.0.0",
70
74
  "eslint-plugin-import": "2.28.1",
71
75
  "eslint-plugin-node": "11.1.0",
72
76
  "eslint-plugin-unicorn": "48.0.1"
73
- },
74
- "gitHead": "2e4dd867301343c134b5df10b4633a48bbfd8c82"
75
- }
77
+ }
78
+ }
package/.editorconfig DELETED
@@ -1,13 +0,0 @@
1
- # EditorConfig helps developers define and maintain consistent
2
- # coding styles between different editors and IDEs
3
- # http://editorconfig.org
4
-
5
- root = true
6
-
7
- [*]
8
- indent_style = space
9
- indent_size = 2
10
- end_of_line = lf
11
- charset = utf-8
12
- trim_trailing_whitespace = true
13
- insert_final_newline = true
package/.eslintrc.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "root": true,
3
- "extends": ["../eslint-config/lib/root-commonjs.js"]
4
- }