-
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.
* Upgrade JS, pnpm, and ESLint * Silence babel warnings * Push Lint deps up in monorepo (#21) * move eslint deps up to top of monorepo * run lint at top level via recursive flag --------- Co-authored-by: Rick Terrill <[email protected]> * remove unecessary lint config file at the top * Run test scripts recursively from the top (#22) run test scripts recursively from the top Co-authored-by: Rick Terrill <[email protected]> --------- Co-authored-by: Rick Terrill <[email protected]> Co-authored-by: Rick Terrill <[email protected]>
- Loading branch information
1 parent
45a5533
commit 75fe6fd
Showing
15 changed files
with
7,189 additions
and
5,012 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
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 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.