@pob/eslint-config 57.0.0 → 57.2.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/CHANGELOG.md CHANGED
@@ -3,6 +3,19 @@
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
+ ## [57.2.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v57.1.0...v57.2.0) (2024-08-11)
7
+
8
+ ### Features
9
+
10
+ * allow no-relative-packages for rollup config ([2415596](https://github.com/christophehurpeau/eslint-config-pob/commit/2415596ec873e00cf3b3e9d762b311a9cb4a24d7))
11
+ * ignore .next directory ([ce818b8](https://github.com/christophehurpeau/eslint-config-pob/commit/ce818b8f50c65231fe07c070804d494d7af6c3c5))
12
+
13
+ ## [57.1.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v57.0.0...v57.1.0) (2024-08-11)
14
+
15
+ ### Features
16
+
17
+ * add names ([8b169fe](https://github.com/christophehurpeau/eslint-config-pob/commit/8b169fe50a73477a449ab0cdb40acf9d9d9bf538))
18
+
6
19
  ## [57.0.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v56.1.0...v57.0.0) (2024-08-11)
7
20
 
8
21
  ### ⚠ BREAKING CHANGES
package/lib/_base.js CHANGED
@@ -18,7 +18,7 @@ export default [
18
18
  },
19
19
  },
20
20
  {
21
- ignores: [".yarn", "**/dist/", "**/build/", "**/coverage/"],
21
+ ignores: [".yarn", "**/dist/", "**/build/", "**/coverage/", "**/.next/"],
22
22
  },
23
23
  js.configs.recommended,
24
24
  pobPlugin.configs.base,
@@ -1,4 +1,5 @@
1
1
  export default {
2
+ name: "@pob/eslint-config/base/commonjs",
2
3
  languageOptions: {
3
4
  sourceType: "script",
4
5
  },
@@ -1,4 +1,5 @@
1
1
  export default {
2
+ name: "@pob/eslint-config/base/module",
2
3
  languageOptions: {
3
4
  sourceType: "module",
4
5
  },
@@ -4,6 +4,7 @@ import { overrideRules } from "./_base.js";
4
4
  export default [
5
5
  nodePlugin.configs["flat/recommended-script"],
6
6
  {
7
+ name: "@pob/eslint-config/node/commonjs",
7
8
  rules: {
8
9
  ...overrideRules,
9
10
  // "unicorn/prefer-module": "off",
@@ -4,6 +4,7 @@ import { overrideRules } from "./_base.js";
4
4
  export default [
5
5
  nodePlugin.configs["flat/recommended-module"],
6
6
  {
7
+ name: "@pob/eslint-config/node/module",
7
8
  rules: {
8
9
  ...overrideRules,
9
10
  "unicorn/prefer-module": "error",
@@ -129,4 +129,10 @@ export default (compat) => [
129
129
  ],
130
130
  },
131
131
  }),
132
+ {
133
+ files: ["rollup.config.mjs", "rollup.config.mjs"],
134
+ rules: {
135
+ "import/no-relative-packages": "off",
136
+ },
137
+ },
132
138
  ];
@@ -1,4 +1,5 @@
1
1
  export default {
2
+ name: "@pob/eslint-config/import/commonjs",
2
3
  rules: {
3
4
  // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-commonjs.md
4
5
  "import/no-commonjs": "off",
@@ -1,4 +1,5 @@
1
1
  export default {
2
+ name: "@pob/eslint-config/import/module",
2
3
  rules: {
3
4
  // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-commonjs.md
4
5
  "import/no-commonjs": "error",
@@ -2,6 +2,7 @@ import eslintPluginUnicorn from "eslint-plugin-unicorn";
2
2
 
3
3
  export default [
4
4
  {
5
+ name: "@pob/eslint-config/unicorn",
5
6
  plugins: { unicorn: eslintPluginUnicorn },
6
7
  rules: {
7
8
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/catch-error-name.md
@@ -1,6 +1,7 @@
1
1
  import confusingBrowserGlobals from "confusing-browser-globals";
2
2
 
3
3
  export default {
4
+ name: "@pob/eslint-config/best-practices",
4
5
  rules: {
5
6
  // https://eslint.org/docs/rules/accessor-pairs
6
7
  "accessor-pairs": "off",
@@ -1,4 +1,5 @@
1
1
  export default {
2
+ name: "@pob/eslint-config/code-quality",
2
3
  rules: {
3
4
  complexity: ["warn", { max: 8 }],
4
5
  "max-depth": ["warn", 6],
@@ -1,4 +1,5 @@
1
1
  export default {
2
+ name: "@pob/eslint-config/dev-only",
2
3
  files: ["**/*.{js,cjs,mjs}"],
3
4
  ignores: ["**/{src,lib}/*.{js,cjs,mjs}"],
4
5
  rules: {
@@ -1,4 +1,5 @@
1
1
  export default {
2
+ name: "@pob/eslint-config/errors",
2
3
  rules: {
3
4
  // https://eslint.org/docs/rules/for-direction
4
5
  "for-direction": "error",
@@ -1,4 +1,5 @@
1
1
  export default {
2
+ name: "@pob/eslint-config/style",
2
3
  rules: {
3
4
  // changed properties: 'never' to properties: 'always' ; true to 'ignoreDestructuring': false
4
5
  // http://eslint.org/docs/rules/camelcase
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/eslint-config",
3
- "version": "57.0.0",
3
+ "version": "57.2.0",
4
4
  "description": "eslint config files",
5
5
  "keywords": [],
6
6
  "author": "Christophe Hurpeau <christophe@hurpeau.com> (http://christophe.hurpeau.com/)",