@dvukovic/style-guide 0.3.11 → 0.3.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvukovic/style-guide",
3
- "version": "0.3.11",
3
+ "version": "0.3.13",
4
4
  "description": "My own style guide",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,6 +44,7 @@
44
44
  "eslint-plugin-react": "7.35.0",
45
45
  "eslint-plugin-react-hooks": "4.6.2",
46
46
  "eslint-plugin-security-node": "1.1.4",
47
+ "eslint-plugin-simple-import-sort": "12.1.1",
47
48
  "eslint-plugin-sonarjs": "1.0.4",
48
49
  "eslint-plugin-sort-destructure-keys": "2.0.0",
49
50
  "eslint-plugin-sort-keys-fix": "1.1.2",
@@ -12,5 +12,6 @@ module.exports = {
12
12
  "../plugins/sort-keys-fix.js",
13
13
  "../plugins/sort-destructure-keys.js",
14
14
  "../plugins/stylistic.js",
15
+ "../plugins/simple-import-sort.js",
15
16
  ],
16
17
  }
@@ -9,7 +9,6 @@ module.exports = {
9
9
  ],
10
10
  "arrow-body-style": ["error", "always"],
11
11
  "block-scoped-var": "error",
12
- "capitalized-comments": "error",
13
12
  "consistent-this": "error",
14
13
  curly: ["error", "all"],
15
14
  "default-case-last": "error",
@@ -146,6 +145,14 @@ module.exports = {
146
145
  "require-atomic-updates": "error",
147
146
  "require-await": "error",
148
147
  "require-yield": "error",
148
+ "sort-imports": [
149
+ "error",
150
+ {
151
+ ignoreCase: true,
152
+ ignoreDeclarationSort: true,
153
+ ignoreMemberSort: false,
154
+ },
155
+ ],
149
156
  "symbol-description": "error",
150
157
  "use-isnan": "error",
151
158
  yoda: "error",
@@ -0,0 +1,7 @@
1
+ /** @type {import("@types/eslint").ESLint.ConfigData} */
2
+ module.exports = {
3
+ plugins: ["simple-import-sort"],
4
+ rules: {
5
+ "simple-import-sort/exports": "error",
6
+ },
7
+ }