@pob/eslint-config 51.1.0 → 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
@@ -3,6 +3,16 @@
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
+
6
16
  ## [51.1.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v51.0.2...v51.1.0) (2023-10-03)
7
17
 
8
18
 
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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/eslint-config",
3
- "version": "51.1.0",
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/)",
@@ -68,7 +68,7 @@
68
68
  "eslint-plugin-unicorn": "^48.0.1"
69
69
  },
70
70
  "devDependencies": {
71
- "eslint": "8.50.0",
71
+ "eslint": "8.51.0",
72
72
  "eslint-config-airbnb-base": "15.0.0",
73
73
  "eslint-config-prettier": "9.0.0",
74
74
  "eslint-plugin-import": "2.28.1",