@newsteam/eslint-config 0.0.82 → 0.0.86

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.
@@ -13,9 +13,7 @@ var _default = {
13
13
  ignoreClassFields: true
14
14
  }],
15
15
  "react/display-name": "error",
16
- "react/forbid-component-props": ["error", {
17
- forbid: ["style"]
18
- }],
16
+ "react/forbid-component-props": "off",
19
17
  "react/forbid-dom-props": "error",
20
18
  "react/forbid-elements": "error",
21
19
  "react/forbid-foreign-prop-types": "error",
@@ -7,9 +7,7 @@ export default {
7
7
  ignoreClassFields: true
8
8
  }],
9
9
  "react/display-name": "error",
10
- "react/forbid-component-props": ["error", {
11
- forbid: ["style"]
12
- }],
10
+ "react/forbid-component-props": "off",
13
11
  "react/forbid-dom-props": "error",
14
12
  "react/forbid-elements": "error",
15
13
  "react/forbid-foreign-prop-types": "error",
@@ -139,6 +139,7 @@ var _default = {
139
139
  "unicorn/require-post-message-target-origin": "error",
140
140
  "unicorn/string-content": "off",
141
141
  "unicorn/template-indent": "off",
142
+ "unicorn/text-encoding-identifier-case": "error",
142
143
  "unicorn/throw-new-error": "error"
143
144
  }
144
145
  };
@@ -133,6 +133,7 @@ export default {
133
133
  "unicorn/require-post-message-target-origin": "error",
134
134
  "unicorn/string-content": "off",
135
135
  "unicorn/template-indent": "off",
136
+ "unicorn/text-encoding-identifier-case": "error",
136
137
  "unicorn/throw-new-error": "error"
137
138
  }
138
139
  };
package/lib/rules.js CHANGED
@@ -408,7 +408,9 @@ var _default = {
408
408
  semi: "error",
409
409
  "semi-spacing": "error",
410
410
  "semi-style": ["error", "last"],
411
- "sort-imports": "off",
411
+ "sort-imports": ["error", {
412
+ ignoreDeclarationSort: true
413
+ }],
412
414
  "sort-keys": ["error", "asc", {
413
415
  caseSensitive: false
414
416
  }],
package/lib/rules.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import confusingBrowserGlobals from "confusing-browser-globals";
2
- import { maximumCyclomaticComplexity, noMagicNumbersConfig, indentSpaces, maximumFileLineCount, maximumLineLength } from "./settings";
2
+ import { indentSpaces, maximumCyclomaticComplexity, maximumFileLineCount, maximumLineLength, noMagicNumbersConfig } from "./settings";
3
3
  export default {
4
4
  env: {
5
5
  es6: true
@@ -397,7 +397,9 @@ export default {
397
397
  semi: "error",
398
398
  "semi-spacing": "error",
399
399
  "semi-style": ["error", "last"],
400
- "sort-imports": "off",
400
+ "sort-imports": ["error", {
401
+ ignoreDeclarationSort: true
402
+ }],
401
403
  "sort-keys": ["error", "asc", {
402
404
  caseSensitive: false
403
405
  }],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newsteam/eslint-config",
3
- "version": "0.0.82",
3
+ "version": "0.0.86",
4
4
  "description": "Shared config for eslint",
5
5
  "main": "lib",
6
6
  "types": "lib",
@@ -52,11 +52,11 @@
52
52
  "@newsteam/babel": "0.0.41",
53
53
  "@newsteam/jasmine": "0.0.38",
54
54
  "@types/eslint": "8.4.1",
55
- "@types/node": "17.0.13",
56
- "@types/react": "17.0.38",
57
- "@typescript-eslint/eslint-plugin": "5.10.1",
58
- "@typescript-eslint/parser": "5.10.1",
59
- "eslint": "8.7.0",
55
+ "@types/node": "17.0.18",
56
+ "@types/react": "17.0.39",
57
+ "@typescript-eslint/eslint-plugin": "5.12.0",
58
+ "@typescript-eslint/parser": "5.12.0",
59
+ "eslint": "8.9.0",
60
60
  "eslint-find-rules": "4.1.0",
61
61
  "eslint-plugin-array-func": "3.1.7",
62
62
  "eslint-plugin-async-await": "0.0.0",
@@ -79,17 +79,17 @@
79
79
  "eslint-plugin-react-perf": "3.3.1",
80
80
  "eslint-plugin-security": "1.4.0",
81
81
  "eslint-plugin-sort-keys-fix": "1.1.2",
82
- "eslint-plugin-unicorn": "40.1.0",
82
+ "eslint-plugin-unicorn": "41.0.0",
83
83
  "eslint-plugin-webassembly": "1.11.1",
84
84
  "json-schema": "0.4.0",
85
- "npm-check-updates": "12.2.1",
85
+ "npm-check-updates": "12.3.0",
86
86
  "react": "17.0.2",
87
87
  "typescript": "4.5.5"
88
88
  },
89
89
  "peerDependencies": {
90
- "@typescript-eslint/eslint-plugin": "5.10.1",
91
- "@typescript-eslint/parser": "5.10.1",
92
- "eslint": "8.7.0",
90
+ "@typescript-eslint/eslint-plugin": "5.12.0",
91
+ "@typescript-eslint/parser": "5.12.0",
92
+ "eslint": "8.9.0",
93
93
  "eslint-plugin-array-func": "3.1.7",
94
94
  "eslint-plugin-async-await": "0.0.0",
95
95
  "eslint-plugin-css-modules": "2.11.0",
@@ -111,7 +111,7 @@
111
111
  "eslint-plugin-react-perf": "3.3.1",
112
112
  "eslint-plugin-security": "1.4.0",
113
113
  "eslint-plugin-sort-keys-fix": "1.1.2",
114
- "eslint-plugin-unicorn": "40.1.0",
114
+ "eslint-plugin-unicorn": "41.0.0",
115
115
  "eslint-plugin-webassembly": "1.11.1",
116
116
  "eslint-plugin-you-dont-need-lodash-underscore": "6.12.0",
117
117
  "json-schema": "0.4.0",