eslint-config-arklint 3.1.1 → 3.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/cjs/extensions/import.cjs +7 -11
- package/cjs/extensions/react.cjs +1 -1
- package/cjs/index.cjs +1 -1
- package/extensions/import.mjs +17 -12
- package/extensions/react.mjs +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
|
@@ -1,30 +1,26 @@
|
|
|
1
1
|
var importPlugin = require("eslint-plugin-import");
|
|
2
|
-
var
|
|
2
|
+
var perfectionistPlugin = require("eslint-plugin-perfectionist");
|
|
3
3
|
module.exports = [importPlugin.flatConfigs.recommended, {
|
|
4
4
|
plugins: {
|
|
5
|
-
|
|
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-imports": "warn",
|
|
22
|
+
"perfectionist/sort-imports": ["warn", {
|
|
23
|
+
groups: [["external", "builtin"], "internal", "parent", ["index", "sibling", "style"], "unknown"]
|
|
28
24
|
}]
|
|
29
25
|
}
|
|
30
26
|
}];
|
package/cjs/extensions/react.cjs
CHANGED
|
@@ -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
|
}, {
|
package/extensions/import.mjs
CHANGED
|
@@ -1,30 +1,35 @@
|
|
|
1
1
|
import importPlugin from "eslint-plugin-import";
|
|
2
|
-
import
|
|
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
|
-
|
|
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", {
|
|
19
|
-
|
|
20
|
-
|
|
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-imports": "warn",
|
|
24
|
+
"perfectionist/sort-imports": ["warn", {
|
|
25
|
+
groups: [
|
|
26
|
+
["external", "builtin"],
|
|
27
|
+
"internal",
|
|
28
|
+
"parent",
|
|
29
|
+
["index", "sibling", "style"],
|
|
30
|
+
"unknown"
|
|
31
|
+
]
|
|
32
|
+
}]
|
|
28
33
|
}
|
|
29
34
|
}
|
|
30
35
|
];
|
package/extensions/react.mjs
CHANGED
package/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-arklint",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.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": {
|