about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--.eslintrc.js12
-rw-r--r--package.json2
2 files changed, 4 insertions, 10 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index 46b5231b2..a40b5da92 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -7,6 +7,9 @@ module.exports = {
   ],
   parser: '@typescript-eslint/parser',
   plugins: ['@typescript-eslint', 'detox'],
+  rules: {
+    'react-native/no-inline-styles': 0,
+  },
   ignorePatterns: [
     '**/__mocks__/*.ts',
     'src/platform/polyfills.ts',
@@ -21,13 +24,4 @@ module.exports = {
     '*.html',
     'bskyweb',
   ],
-  overrides: [
-    {
-      files: ['*.js', '*.mjs', '*.ts', '*.tsx'],
-      rules: {
-        semi: [2, 'never'],
-        'react-native/no-inline-styles': 0,
-      },
-    },
-  ],
 }
diff --git a/package.json b/package.json
index e4ae80270..59b9ba95c 100644
--- a/package.json
+++ b/package.json
@@ -252,6 +252,6 @@
     ]
   },
   "lint-staged": {
-    "*": "yarn eslint --ext .js,.jsx,.ts,.tsx --fix"
+    "*{.js,.jsx,.ts,.tsx}": "yarn eslint --fix"
   }
 }