@socprime/master-configuration 1.1.7 → 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 +24 -3
  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,
@@ -55,7 +65,7 @@ const json = [
55
65
  files: ['tsconfig.json', 'package.json'],
56
66
  rules: {
57
67
  'jsonc/sort-keys': 0,
58
- 'jsonc/key-name-casing': 1,
68
+ 'jsonc/key-name-casing': 0,
59
69
  },
60
70
  },
61
71
  ];
@@ -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: {
@@ -117,7 +128,7 @@ const typescript = [
117
128
  },
118
129
  ];
119
130
 
120
- module.exports = {
131
+ const base = {
121
132
  root: true,
122
133
  env: {
123
134
  browser: true,
@@ -139,6 +150,16 @@ module.exports = {
139
150
  'storybook-static',
140
151
  'tmp',
141
152
  ],
153
+ };
154
+
155
+ module.exports = {
156
+ ...base,
157
+ [Symbol('base')]: base,
158
+ [Symbol('js')]: js,
159
+ [Symbol('typescript')]: typescript,
160
+ [Symbol('json')]: json,
161
+ [Symbol('extendAirBnBRules')]: extendAirBnBRules,
162
+ [Symbol('javascriptRules')]: javascriptRules,
142
163
  overrides: [
143
164
  ...js,
144
165
  ...typescript,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@socprime/master-configuration",
3
- "version": "1.1.7",
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",