@ankhorage/devtools 1.3.1 → 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.
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
*
|
|
20
20
|
* @readme
|
|
21
21
|
*/
|
|
22
|
+
import { fixupPluginRules } from '@eslint/compat';
|
|
22
23
|
import js from '@eslint/js';
|
|
23
24
|
import prettierConfig from 'eslint-config-prettier';
|
|
24
25
|
import importPlugin from 'eslint-plugin-import';
|
|
@@ -102,6 +103,7 @@ function createBaseConfig(options) {
|
|
|
102
103
|
}
|
|
103
104
|
function createTypeScriptRules() {
|
|
104
105
|
return {
|
|
106
|
+
'no-unused-vars': 'off',
|
|
105
107
|
'@typescript-eslint/no-non-null-assertion': 'error',
|
|
106
108
|
'@typescript-eslint/prefer-readonly': 'error',
|
|
107
109
|
'@typescript-eslint/prefer-optional-chain': 'error',
|
|
@@ -177,7 +179,7 @@ function createReactConfig(files) {
|
|
|
177
179
|
function createReactNativeConfig(files) {
|
|
178
180
|
return {
|
|
179
181
|
files,
|
|
180
|
-
plugins: { 'react-native': reactNativePlugin },
|
|
182
|
+
plugins: { 'react-native': fixupPluginRules(reactNativePlugin) },
|
|
181
183
|
rules: {
|
|
182
184
|
'react-native/no-inline-styles': 'warn',
|
|
183
185
|
'react-native/no-unused-styles': 'error',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ankhorage/devtools",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "Shared development tools and repository standards for Ankhorage",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/ankhorage/devtools#readme",
|
|
@@ -96,8 +96,9 @@
|
|
|
96
96
|
},
|
|
97
97
|
"dependencies": {
|
|
98
98
|
"@ankhorage/utility": "^0.1.1",
|
|
99
|
+
"@eslint/compat": "^2.1.0",
|
|
99
100
|
"@eslint/js": "^10.0.1",
|
|
100
|
-
"eslint": "^10.
|
|
101
|
+
"eslint": "^10.7.0",
|
|
101
102
|
"eslint-config-prettier": "^10.1.8",
|
|
102
103
|
"eslint-plugin-import": "^2.32.0",
|
|
103
104
|
"eslint-plugin-prettier": "^5.5.5",
|