Skip to content

Commit

Permalink
chore(linting): Remove/fix references to non-existant files (#11245)
Browse files Browse the repository at this point in the history
1. Removes references to files/folders which no longer exist
2. Fixes a reference to a file which has been renamed
3. Removed an override designed for users projects rather than the
framework
  • Loading branch information
Josh-Walker-GM committed Aug 14, 2024
1 parent 80bac8e commit 74e942e
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,8 @@ module.exports = {
'fixtures',
'packages/babel-config/src/plugins/__tests__/__fixtures__/**/*',
'packages/babel-config/src/__tests__/__fixtures__/**/*',
'packages/core/**/__fixtures__/**/*',
'packages/codemods/**/__testfixtures__/**/*',
'packages/cli/**/__testfixtures__/**/*',
'packages/core/config/storybook/**/*',
'packages/studio/dist-*/**/*',
],
plugins: [
'unused-imports',
Expand Down Expand Up @@ -209,13 +206,6 @@ module.exports = {
jest: true,
},
},
{
files: [
'web/src/**/*.routeHooks.{js,ts}',
'web/src/entry.server.{jsx,tsx}',
],
rules: { 'no-restricted-imports': 'off' },
},
{
extends: ['plugin:@typescript-eslint/stylistic'],
files: ['*.ts', '*.tsx'],
Expand Down Expand Up @@ -303,7 +293,7 @@ module.exports = {
},
// Entry.js rules
{
files: ['packages/web/src/entry/index.js'],
files: ['packages/web/src/entry/index.jsx'],
env: {
browser: true,
},
Expand All @@ -317,7 +307,6 @@ module.exports = {
'packages/api/src/**',
'packages/api-server/src/**',
'packages/cli/src/**',
'packages/core/config/**',
'packages/create-redwood-app/src/*.js',
'packages/internal/src/**',
'packages/prerender/src/**',
Expand Down Expand Up @@ -371,11 +360,7 @@ module.exports = {
},
// Allow computed member access on process.env in NodeJS contexts and tests
{
files: [
'packages/core/config/webpack.common.js',
'packages/testing/**',
'packages/vite/src/index.ts',
],
files: ['packages/testing/**', 'packages/vite/src/index.ts'],
rules: {
'@redwoodjs/process-env-computed': 'off',
},
Expand Down

0 comments on commit 74e942e

Please sign in to comment.