Skip to content

Commit

Permalink
add environment dir
Browse files Browse the repository at this point in the history
  • Loading branch information
morewings committed Dec 2, 2023
1 parent f075954 commit 8aecf63
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,24 @@ module.exports = {
],
},
},
/* Disable `environment` directory imports for library files */
{
files: ['./src/lib/**/*.*'],
rules: {
'no-restricted-imports': [
'error',
{
patterns: [
{
group: ['**/environment/**'],
message:
'Imports from environment directory are forbidden in the library files.',
},
],
},
],
},
},
],
};

File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React from 'react';
import ReactDOM from 'react-dom/client';

import App from './App.tsx';
import './index.css';
import App from '@/env/App/App.tsx';

// eslint-disable-next-line ssr-friendly/no-dom-globals-in-module-scope
ReactDOM.createRoot(document.getElementById('root')!).render(
Expand Down

0 comments on commit 8aecf63

Please sign in to comment.