-
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.
Update js formatter and linter (major) (#237)
* Update js formatter and linter * Migrate to flat config --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Atsushi Watanabe <[email protected]>
- Loading branch information
1 parent
e43b95a
commit 2fcbb6b
Showing
5 changed files
with
429 additions
and
337 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import globals from 'globals' | ||
import js from '@eslint/js' | ||
import react from 'eslint-plugin-react' | ||
import tseslint from 'typescript-eslint' | ||
|
||
export default [ | ||
{ | ||
languageOptions: { | ||
ecmaVersion: 12, | ||
sourceType: 'module', | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true | ||
}, | ||
}, | ||
globals: { | ||
...globals.node, | ||
...globals.browser, | ||
}, | ||
}, | ||
}, | ||
js.configs.recommended, | ||
react.configs.flat.recommended, | ||
react.configs.flat['jsx-runtime'], | ||
{ | ||
ignores: [ | ||
'wasm_exec.js', | ||
'pcdeditor.esm.js', | ||
'node_modules/**', | ||
], | ||
}, | ||
...tseslint.configs.recommended, | ||
] |
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 |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
"scripts": { | ||
"build": "make pcdeditor.esm.js ReactPCDEditor/index.js", | ||
"fmt": "prettier --write pcdeditor.js pcdeditor.d.ts ReactPCDEditor/index.tsx", | ||
"lint": "eslint pcdeditor.js pcdeditor.d.ts ReactPCDEditor/index.tsx", | ||
"lint": "eslint", | ||
"typecheck": "tsc --noEmit --allowJs --jsx react --esModuleInterop pcdeditor.js ReactPCDEditor/index.tsx", | ||
"tsc": "tsc --declaration --jsx react --esModuleInterop ReactPCDEditor/index.tsx" | ||
}, | ||
|
@@ -46,13 +46,15 @@ | |
}, | ||
"homepage": "https://github.com/seqsense/pcdeditor#readme", | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "7.18.0", | ||
"@typescript-eslint/parser": "7.18.0", | ||
"eslint": "8.57.1", | ||
"@typescript-eslint/eslint-plugin": "8.15.0", | ||
"@typescript-eslint/parser": "8.15.0", | ||
"eslint": "9.14.0", | ||
"eslint-plugin-react": "7.37.2", | ||
"globals": "15.9.0", | ||
"prettier": "3.3.3", | ||
"react": "18.3.1", | ||
"typescript": "5.6.3" | ||
"typescript": "5.6.3", | ||
"typescript-eslint": "8.3.0" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
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.