eslint-config-beslogic 1.3.2 → 1.3.3
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/javascript.js +5 -2
- package/package.json +4 -3
package/javascript.js
CHANGED
|
@@ -2,11 +2,12 @@ const restrictedGlobals = require("confusing-browser-globals")
|
|
|
2
2
|
const commaDangleDefault = "always-multiline"
|
|
3
3
|
module.exports = {
|
|
4
4
|
"plugins": [
|
|
5
|
+
"deprecation",
|
|
6
|
+
"extra-rules",
|
|
5
7
|
"prefer-arrow",
|
|
6
8
|
"simple-import-sort",
|
|
7
9
|
"switch-case",
|
|
8
|
-
"unused-imports"
|
|
9
|
-
"extra-rules"
|
|
10
|
+
"unused-imports"
|
|
10
11
|
],
|
|
11
12
|
"extends": [
|
|
12
13
|
"eslint:recommended",
|
|
@@ -49,6 +50,8 @@ module.exports = {
|
|
|
49
50
|
}
|
|
50
51
|
],
|
|
51
52
|
"rules": {
|
|
53
|
+
// deprecation warnings
|
|
54
|
+
"deprecation/deprecation": "warn",
|
|
52
55
|
// unused-imports settings
|
|
53
56
|
// Loosing imports when commenting to test is extremely annoying and slow,
|
|
54
57
|
// so we only use this rule when ran from the command-line
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-beslogic",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "ESLint rules, plugins and configs used at Beslogic",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
},
|
|
40
40
|
"// minimist": "Prototype Pollution in minimist <1.2.6 from @babel/eslint-parser",
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"minimist": "^1.2.6",
|
|
43
42
|
"@babel/eslint-parser": "^7.0",
|
|
44
43
|
"confusing-browser-globals": "^1.0",
|
|
45
44
|
"eslint": "^8.15",
|
|
45
|
+
"eslint-plugin-deprecation": "^1.3",
|
|
46
46
|
"eslint-plugin-extra-rules": "^0.0.0-development",
|
|
47
47
|
"eslint-plugin-jest": "^26.2.1",
|
|
48
48
|
"eslint-plugin-jest-formatting": "^3.1",
|
|
@@ -51,7 +51,8 @@
|
|
|
51
51
|
"eslint-plugin-sonarjs": "^0.11",
|
|
52
52
|
"eslint-plugin-switch-case": "^1.1",
|
|
53
53
|
"eslint-plugin-unicorn": "^39.0",
|
|
54
|
-
"eslint-plugin-unused-imports": "^2.0"
|
|
54
|
+
"eslint-plugin-unused-imports": "^2.0",
|
|
55
|
+
"minimist": "^1.2.6"
|
|
55
56
|
},
|
|
56
57
|
"optionalDependencies": {
|
|
57
58
|
"@angular-eslint/eslint-plugin": "^13.1",
|