Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Add no-relative-packages #858

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ module.exports = {
},
],
'@typescript-eslint/no-redeclare': 'off',

// We LOVE non-breaking spaces, and both straight and curly quotes here
'no-irregular-whitespace': [1, { skipJSXText: true, skipStrings: true }],
'react/no-unescaped-entities': [1, { forbid: ['>', '}'] }],
Expand All @@ -52,12 +51,13 @@ module.exports = {
(ruleSet) => !ruleSet.rules.hasOwnProperty('filenames/match-exported'),
),
{
files: ['docs/pages/experiments/**/*{.tsx,.js}', 'docs/pages/playground/**/*{.tsx,.js}'],
files: ['docs/src/app/experiments/**/*{.tsx,.js}', 'docs/pages/playground/**/*{.tsx,.js}'],
rules: {
'@typescript-eslint/no-use-before-define': 'off',
'react/prop-types': 'off',
'no-alert': 'off',
'no-console': 'off',
'import/no-relative-packages': 'off',
},
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/AppBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { GitHubIcon } from 'docs/src/icons/GitHub';
import { SettingsIcon } from 'docs/src/icons/Settings';
import { IconButton } from 'docs/src/design-system/IconButton';
import { IconLinkButton } from 'docs/src/design-system/IconLinkButton';
import packageJson from 'docs/package.json';
import { DocsVersionSelector } from './DocsVersionSelector';
import packageJson from '../../../package.json';
import classes from './AppBar.module.css';

const currentVersion = packageJson.version;
Expand Down
1 change: 1 addition & 0 deletions docs/vitest.config.mts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { mergeConfig, defineProject } from 'vitest/config';
// eslint-disable-next-line import/no-relative-packages
import sharedConfig from '../vitest.shared.mts';

export default mergeConfig(
Expand Down
1 change: 1 addition & 0 deletions packages/react/vitest.config.mts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { mergeConfig, defineProject } from 'vitest/config';
// eslint-disable-next-line import/no-relative-packages
import sharedConfig from '../../vitest.shared.mts';

export default mergeConfig(
Expand Down