eslint-config-arklint 3.1.1 → 3.3.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,30 +1,27 @@
1
1
  var importPlugin = require("eslint-plugin-import");
2
- var sortImportsES6Autofix = require("eslint-plugin-sort-imports-es6-autofix");
2
+ var perfectionistPlugin = require("eslint-plugin-perfectionist");
3
3
  module.exports = [importPlugin.flatConfigs.recommended, {
4
4
  plugins: {
5
- "sort-imports-es6-autofix": sortImportsES6Autofix
5
+ perfectionist: perfectionistPlugin
6
6
  },
7
7
  rules: {
8
- "sort-imports-es6-autofix/sort-imports-es6": ["warn", {
9
- ignoreCase: true,
10
- memberSyntaxSortOrder: ["all", "multiple", "single", "none"]
11
- }],
12
8
  "import/no-named-as-default-member": "off",
13
9
  "import/no-anonymous-default-export": "off",
14
10
  "import/newline-after-import": ["warn", {
15
11
  count: 2,
16
12
  considerComments: true
17
13
  }],
18
- "import/order": ["warn", {
19
- "newlines-between": "always",
20
- "groups": [["type", "unknown", "builtin"], "external", ["internal", "parent", "index", "sibling"]],
21
- "warnOnUnassignedImports": true
22
- }],
23
14
  "import/first": "error",
24
15
  "import/no-amd": "error",
25
16
  "import/no-webpack-loader-syntax": "error",
26
17
  "import/no-unresolved": ["error", {
27
18
  commonjs: true
19
+ }],
20
+ "perfectionist/sort-exports": "warn",
21
+ "perfectionist/sort-named-exports": "warn",
22
+ "perfectionist/sort-named-imports": "warn",
23
+ "perfectionist/sort-imports": ["warn", {
24
+ groups: ["type", "unknown", "builtin", "external", "internal", "parent", ["index", "sibling", "style"]]
28
25
  }]
29
26
  }
30
27
  }];
@@ -1,6 +1,6 @@
1
1
  var jsxA11yPlugin = require("eslint-plugin-jsx-a11y");
2
- var reactHooksPlugin = require("eslint-plugin-react-hooks");
3
2
  var reactPlugin = require("eslint-plugin-react");
3
+ var reactHooksPlugin = require("eslint-plugin-react-hooks");
4
4
  module.exports = [reactPlugin.configs.flat.recommended, reactPlugin.configs.flat["jsx-runtime"], {
5
5
  plugins: {
6
6
  "react": reactPlugin,
package/cjs/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  var babelParser = require("@babel/eslint-parser");
2
- var globals = require("globals");
3
2
  var js = require("@eslint/js");
4
3
  var stylisticJsPlugin = require("@stylistic/eslint-plugin-js");
4
+ var globals = require("globals");
5
5
  module.exports = [{
6
6
  files: ["**/*.{js,mjs,cjs,jsx}"]
7
7
  }, {
@@ -1,30 +1,38 @@
1
1
  import importPlugin from "eslint-plugin-import";
2
- import sortImportsES6Autofix from "eslint-plugin-sort-imports-es6-autofix";
2
+ import perfectionistPlugin from "eslint-plugin-perfectionist";
3
3
 
4
4
 
5
5
  export default [
6
6
  importPlugin.flatConfigs.recommended,
7
7
  {
8
8
  plugins: {
9
- "sort-imports-es6-autofix": sortImportsES6Autofix
9
+ perfectionist: perfectionistPlugin
10
10
  },
11
11
  rules: {
12
- "sort-imports-es6-autofix/sort-imports-es6": ["warn", {
13
- ignoreCase: true,
14
- memberSyntaxSortOrder: ["all", "multiple", "single", "none"]
15
- }],
16
12
  "import/no-named-as-default-member": "off",
17
13
  "import/no-anonymous-default-export": "off",
18
- "import/newline-after-import": ["warn", { count: 2, considerComments: true }],
19
- "import/order": ["warn", {
20
- "newlines-between": "always",
21
- "groups": [["type", "unknown", "builtin"], "external", ["internal", "parent", "index", "sibling"]],
22
- "warnOnUnassignedImports": true
14
+ "import/newline-after-import": ["warn", {
15
+ count: 2,
16
+ considerComments: true
23
17
  }],
24
18
  "import/first": "error",
25
19
  "import/no-amd": "error",
26
20
  "import/no-webpack-loader-syntax": "error",
27
- "import/no-unresolved": ["error", { commonjs: true }]
21
+ "import/no-unresolved": ["error", { commonjs: true }],
22
+ "perfectionist/sort-exports": "warn",
23
+ "perfectionist/sort-named-exports": "warn",
24
+ "perfectionist/sort-named-imports": "warn",
25
+ "perfectionist/sort-imports": ["warn", {
26
+ groups: [
27
+ "type",
28
+ "unknown",
29
+ "builtin",
30
+ "external",
31
+ "internal",
32
+ "parent",
33
+ ["index", "sibling", "style"]
34
+ ]
35
+ }]
28
36
  }
29
37
  }
30
38
  ];
@@ -1,6 +1,6 @@
1
1
  import jsxA11yPlugin from "eslint-plugin-jsx-a11y";
2
- import reactHooksPlugin from "eslint-plugin-react-hooks";
3
2
  import reactPlugin from "eslint-plugin-react";
3
+ import reactHooksPlugin from "eslint-plugin-react-hooks";
4
4
 
5
5
 
6
6
  export default [
package/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import babelParser from "@babel/eslint-parser";
2
- import globals from "globals";
3
2
  import js from "@eslint/js";
4
3
  import stylisticJsPlugin from "@stylistic/eslint-plugin-js";
4
+ import globals from "globals";
5
5
 
6
6
 
7
7
  export default [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-arklint",
3
- "version": "3.1.1",
3
+ "version": "3.3.0",
4
4
  "author": "Arkellys",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -41,9 +41,9 @@
41
41
  "eslint-plugin-import": "^2.31.0",
42
42
  "eslint-plugin-jsdoc": "^50.4.3",
43
43
  "eslint-plugin-jsx-a11y": "^6.10.2",
44
+ "eslint-plugin-perfectionist": "^3.9.1",
44
45
  "eslint-plugin-react": "^7.37.2",
45
46
  "eslint-plugin-react-hooks": "^5.0.0",
46
- "eslint-plugin-sort-imports-es6-autofix": "patch:eslint-plugin-sort-imports-es6-autofix@npm%3A0.6.0#~/.yarn/patches/eslint-plugin-sort-imports-es6-autofix-npm-0.6.0-26f56e83fb.patch",
47
47
  "globals": "^15.11.0"
48
48
  },
49
49
  "devDependencies": {