-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update `yarn` version * Fix a bunch of erros in the console * 📦 Update packages * Upgrade eslint and fix errors * Fix buld error
- Loading branch information
1 parent
7b3a7dd
commit 3abba53
Showing
24 changed files
with
1,108 additions
and
760 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
448 changes: 224 additions & 224 deletions
448
.yarn/releases/yarn-4.4.0.cjs → .yarn/releases/yarn-4.5.0.cjs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
import prettier from 'eslint-plugin-prettier'; | ||
import jsxA11Y from 'eslint-plugin-jsx-a11y'; | ||
import globals from 'globals'; | ||
import babelParser from '@babel/eslint-parser'; | ||
import path from 'node:path'; | ||
import { fileURLToPath } from 'node:url'; | ||
import js from '@eslint/js'; | ||
import { FlatCompat } from '@eslint/eslintrc'; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all, | ||
}); | ||
|
||
export default [ | ||
{ | ||
ignores: [ | ||
'**/.DS_Store', | ||
'**/node_modules/', | ||
'**/.env*', | ||
'**/logs', | ||
'**/*.log', | ||
'**/npm-debug.log*', | ||
'**/yarn-debug.log*', | ||
'**/yarn-error.log*', | ||
'**/.cache/', | ||
'**/public', | ||
'**/build', | ||
'**/lib/**/*', | ||
], | ||
}, | ||
...compat.extends( | ||
'eslint:recommended', | ||
'plugin:react/recommended', | ||
'plugin:jsx-a11y/recommended' | ||
), | ||
{ | ||
plugins: { | ||
prettier, | ||
'jsx-a11y': jsxA11Y, | ||
}, | ||
|
||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
}, | ||
|
||
parser: babelParser, | ||
ecmaVersion: 12, | ||
sourceType: 'module', | ||
|
||
parserOptions: { | ||
requireConfigFile: false, | ||
|
||
babelOptions: { | ||
presets: ['@babel/preset-react'], | ||
}, | ||
}, | ||
}, | ||
|
||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
}, | ||
|
||
rules: { | ||
strict: 0, | ||
'no-console': 'warn', | ||
quotes: ['warn', 'single'], | ||
'prettier/prettier': 'warn', | ||
'react/prop-types': 'warn', | ||
'no-unused-vars': 'warn', | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.