@socprime/master-configuration 1.1.8 → 1.1.9

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.
Files changed (2) hide show
  1. package/.eslintrc.js +12 -1
  2. package/package.json +3 -2
package/.eslintrc.js CHANGED
@@ -30,6 +30,16 @@ const javascriptRules = {
30
30
  'consistent-return': 1,
31
31
 
32
32
  'import/order': 0,
33
+ 'simple-import-sort/imports': [
34
+ 1,
35
+ {
36
+ groups: [
37
+ ['^\\u0000', '^node:', '^@?\\w', '^\\.'],
38
+ ['^.+\\.(svg|png|jpg|jpeg|gif|webp|ico|bmp|mp4|webm|ogg|avi)$', '^@mui/icons-material'],
39
+ ['^.+\\.(css|scss|sass)$', 'UseStyle', 'UseStyles'],
40
+ ],
41
+ },
42
+ ],
33
43
  'import/no-unresolved': 1,
34
44
  'import/prefer-default-export': 0,
35
45
  'import/extensions': 0,
@@ -67,6 +77,7 @@ const js = [
67
77
  ...extendAirBnBRules,
68
78
  ],
69
79
  parser: '@babel/eslint-parser',
80
+ plugins: ['simple-import-sort'],
70
81
  rules: {
71
82
  ...javascriptRules,
72
83
  },
@@ -101,7 +112,7 @@ const typescript = [
101
112
  '@typescript-eslint/no-unused-vars': 1,
102
113
  'react-hooks/exhaustive-deps': 1,
103
114
  },
104
- plugins: ['@typescript-eslint'],
115
+ plugins: ['@typescript-eslint', 'simple-import-sort'],
105
116
  settings: {
106
117
  'import/resolver': {
107
118
  node: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@socprime/master-configuration",
3
- "version": "1.1.8",
4
- "author": "Pavel Nedzelskiy <pavlo.nedzelskyi@socprime.com>",
3
+ "version": "1.1.9",
4
+ "author": "SocPrime",
5
5
  "license": "ISC",
6
6
  "scripts": {
7
7
  "stylelint": "npx stylelint \"**/*.{css,scss,sass}\" --allow-empty-input",
@@ -23,6 +23,7 @@
23
23
  "eslint": "^8.50.0",
24
24
  "eslint-config-airbnb": "^19.0.4",
25
25
  "eslint-plugin-import": "^2.31.0",
26
+ "eslint-plugin-simple-import-sort": "^10.0.0",
26
27
  "eslint-plugin-jsonc": "^2.16.0",
27
28
  "eslint-plugin-react-hooks": "^5.0.0",
28
29
  "mini-css-extract-plugin": "^2.7.6",