-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
7,306 additions
and
4,971 deletions.
There are no files selected for viewing
This file was deleted.
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 |
---|---|---|
@@ -1 +1 @@ | ||
nodejs 20.9.0 | ||
nodejs 20.12.2 |
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,67 @@ | ||
import js from '@eslint/js' | ||
import globals from 'globals' | ||
import { FlatCompat } from '@eslint/eslintrc' | ||
import tsParser from '@typescript-eslint/parser' | ||
import tseslint from 'typescript-eslint' | ||
import react from 'eslint-plugin-react' | ||
|
||
const OFF = 0, | ||
WARN = 1, | ||
ERROR = 2 | ||
|
||
const compat = new FlatCompat() | ||
|
||
export default tseslint.config( | ||
js.configs.recommended, | ||
...tseslint.configs.recommended, | ||
...compat.extends('prettier', 'plugin:react-hooks/recommended'), | ||
{ | ||
plugins: { | ||
react | ||
}, | ||
languageOptions: { | ||
parser: tsParser, | ||
ecmaVersion: 12, | ||
sourceType: 'module', | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
...globals.jest, | ||
}, | ||
parserOptions: { | ||
project: ['./tsconfig.json'], | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
}, | ||
}, | ||
rules: { | ||
'react-hooks/exhaustive-deps': OFF, | ||
'react/prop-types': OFF, | ||
'node/no-callback-literal': OFF, | ||
'n/no-callback-literal': OFF, | ||
camelcase: OFF, | ||
'sort-imports': ['error', { ignoreDeclarationSort: true }], | ||
'sort-vars': ERROR, | ||
'no-debugger': process.env.NODE_ENV === 'development' ? OFF : ERROR, | ||
'no-unused-vars': [ | ||
'error', | ||
{ | ||
caughtErrors: 'none', | ||
// ignore vars that start with underscore, like _result | ||
argsIgnorePattern: '^_', | ||
varsIgnorePattern: '^_|React', | ||
}, | ||
], | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ | ||
caughtErrors: 'none', | ||
// ignore vars that start with underscore, like _result | ||
argsIgnorePattern: '^_', | ||
varsIgnorePattern: '^_|React', | ||
}, | ||
], | ||
}, | ||
} | ||
) |
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import js from '@eslint/js' | ||
import globals from 'globals' | ||
import { FlatCompat } from '@eslint/eslintrc' | ||
import tsParser from '@typescript-eslint/parser' | ||
import tseslint from 'typescript-eslint' | ||
import react from 'eslint-plugin-react' | ||
|
||
const OFF = 0, | ||
WARN = 1, | ||
ERROR = 2 | ||
|
||
const compat = new FlatCompat() | ||
|
||
export default tseslint.config( | ||
js.configs.recommended, | ||
...tseslint.configs.recommended, | ||
...compat.extends('prettier', 'plugin:react-hooks/recommended'), | ||
{ | ||
plugins: { | ||
react, | ||
}, | ||
languageOptions: { | ||
parser: tsParser, | ||
ecmaVersion: 12, | ||
sourceType: 'module', | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
...globals.jest, | ||
}, | ||
parserOptions: { | ||
project: ['../../tsconfig.json'], | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
}, | ||
}, | ||
rules: { | ||
'react-hooks/exhaustive-deps': OFF, | ||
'react/prop-types': OFF, | ||
'node/no-callback-literal': OFF, | ||
'n/no-callback-literal': OFF, | ||
camelcase: OFF, | ||
'sort-imports': ['error', { ignoreDeclarationSort: true }], | ||
'sort-vars': ERROR, | ||
'no-debugger': process.env.NODE_ENV === 'development' ? OFF : ERROR, | ||
'no-unused-vars': [ | ||
'error', | ||
{ | ||
caughtErrors: 'none', | ||
// ignore vars that start with underscore, like _result | ||
argsIgnorePattern: '^_', | ||
varsIgnorePattern: '^_|React', | ||
}, | ||
], | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ | ||
caughtErrors: 'none', | ||
// ignore vars that start with underscore, like _result | ||
argsIgnorePattern: '^_', | ||
varsIgnorePattern: '^_|React', | ||
}, | ||
], | ||
}, | ||
}, | ||
) |
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import js from '@eslint/js' | ||
import globals from 'globals' | ||
import { FlatCompat } from '@eslint/eslintrc' | ||
import tsParser from '@typescript-eslint/parser' | ||
import tseslint from 'typescript-eslint' | ||
|
||
const OFF = 0, | ||
WARN = 1, | ||
ERROR = 2 | ||
|
||
const compat = new FlatCompat() | ||
|
||
export default tseslint.config(js.configs.recommended, ...tseslint.configs.recommended, ...compat.extends('prettier'), { | ||
languageOptions: { | ||
parser: tsParser, | ||
ecmaVersion: 12, | ||
sourceType: 'module', | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
...globals.jest, | ||
}, | ||
}, | ||
rules: { | ||
'node/no-callback-literal': OFF, | ||
'n/no-callback-literal': OFF, | ||
camelcase: OFF, | ||
'sort-imports': ['error', { ignoreDeclarationSort: true }], | ||
'sort-vars': ERROR, | ||
'no-debugger': process.env.NODE_ENV === 'development' ? OFF : ERROR, | ||
'no-unused-vars': [ | ||
'error', | ||
{ | ||
caughtErrors: 'none', | ||
// ignore vars that start with underscore, like _result | ||
argsIgnorePattern: '^_', | ||
varsIgnorePattern: '^_', | ||
}, | ||
], | ||
}, | ||
}) |
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.