arui-presets-lint 6.1.0 → 6.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # 6.2.0 (2023-05-24)
2
+
3
+
4
+ ### Features
5
+
6
+ * **eslint:** forbid import of lodash 7df02af
7
+
1
8
  # 6.1.0 (2022-12-09)
2
9
 
3
10
 
package/eslint/index.js CHANGED
@@ -171,6 +171,10 @@ module.exports = {
171
171
  },
172
172
  ],
173
173
  'import/no-import-module-exports': 'off',
174
+ 'no-restricted-imports': [
175
+ 'error',
176
+ { name:'lodash', message: 'Please use single imports of lodash functions, e.g `import isEqual from "lodash/isEqual"` instead of `"import { isEqual } from "lodash"`'},
177
+ ],
174
178
  },
175
179
  overrides: [
176
180
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arui-presets-lint",
3
- "version": "6.1.0",
3
+ "version": "6.2.0",
4
4
  "description": "Config files for arui-apps",
5
5
  "author": "Good guys from Alfa-Bank",
6
6
  "license": "MIT",