Browse Source

ci: Update codeowners for eslint.config.mjs and make sure to lint that file (#82749)

Ryan Albrecht 2 months ago
parent
commit
5c39e540eb
3 changed files with 3 additions and 4 deletions
  1. 1 2
      .github/CODEOWNERS
  2. 1 1
      .pre-commit-config.yaml
  3. 1 1
      eslint.config.mjs

+ 1 - 2
.github/CODEOWNERS

@@ -122,8 +122,7 @@ pyproject.toml                                           @getsentry/owners-pytho
 babel.config.*                                           @getsentry/owners-js-build
 biome.json                                               @getsentry/owners-js-build
 build-utils/                                             @getsentry/owners-js-build
-eslint.config.js                                         @getsentry/owners-js-build
-eslintrc.js                                              @getsentry/owners-js-build
+eslint.config.mjs                                        @getsentry/owners-js-build
 jest.config.ts                                           @getsentry/owners-js-build
 tsconfig.*                                               @getsentry/owners-js-build
 webpack.config.*                                         @getsentry/owners-js-build

+ 1 - 1
.pre-commit-config.yaml

@@ -117,7 +117,7 @@ repos:
       - id: eslint
         name: eslint
         language: system
-        files: \.[jt]sx?$
+        files: \.(ts|js|tsx|jsx|mjs)$
         entry: ./node_modules/.bin/eslint --quiet --fix
 
       - id: stylelint

+ 1 - 1
eslint.config.mjs

@@ -803,7 +803,7 @@ export default typescript.config([
   {
     // Default file selection
     // https://eslint.org/docs/latest/use/configure/configuration-files#specifying-files-and-ignores
-    files: ['**/*.js', '**/*.ts', '**/*.jsx', '**/*.tsx'],
+    files: ['**/*.js', '**/*.mjs', '**/*.ts', '**/*.jsx', '**/*.tsx'],
   },
   {
     // Global ignores