Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(eslint): migrate to flat config and simplify (#2912)
* chore(package.json): update related eslint library, update script for eslint.config.js * chore(pnpm-lock.yaml): reflect changes in package.json * chore(eslint): migrate eslint configuration .eslintrc.json to eslint.config.js * chore(examples/demo/package.json): update related eslint library, update script for eslint.config.js * chore(examples/demo/pnpm-lock.yaml): reflect changes in package.json * chore(examples/demo/eslint): migrate eslint configuration .eslintrc.cjs to eslint.config.js * style(examples/demo/utils/copy-to-clipboard.js): add global comment for eslint * chore(eslint): change file extension 'js' to 'mjs' * chore(package.json): consise 'lint' scripts * chore(examples/demo): remove eslint.config.js * chore(examples/demo/package.json): remove libraries associated wiht eslint, update lint script * chore(examples/demo/pnpm-lock.yaml): reflect changes in package.json * chore(examples/demo): reflect 'eslint . --fix' changes based on main 'eslint.config.mjs' * chore(examples/demo/package.json): add libraries associated wiht eslint, update lint script * chore(examples/demo/pnpm-lock.yaml): reflect changes in package.json * chore(examples/demo): add eslint.config.js * chore(package.json): add mjs in 'eslint', 'test:lint' script * Update eslint.config.mjs Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com> * Update examples/demo/eslint.config.js Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com> * chore(eslint): remove eslint configuration related to prettier * chore(package.json): remove eslint-{config,plugin}-prettier * chore(package.json): add tslib in devDependencies * chore(eslint): remove duplicate shared-node-browser from globals * chore(eslint): change 'eslint-import-resolver-alias' to 'eslint-import-resolver-typescript' * chore(eslint): add 'import/no-named-as-default-member' off * chore(eslint): remove duplicate rules, rearrange sequentially within a rule * chore(eslint): remove the ‘off’ settings in ‘eslint-plugin-import’ to ensure clearer usage. * chore(eslint): remove 'no-console' in rules * chore(eslint): simplify settings 'import/resolver' * chore(eslint): remove 'globals' config * chore(rollup): add 'eslint-disable no-undef' * chore(package.json): remove 'globals' library * chore(pnpm-lock.yaml): reflect changes in package.json * chore(eslint): add 'importPlugin.flatConfigs.recommended' * chore(eslint): remove duplicate 'languageOptions' * chore(eslint): remove 'import/extensions', 'import/parsers' to simplify * chore(eslint): add 'examples/**' in 'ignores' * chore(package.json): simplify 'lint' scripts --------- Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
- Loading branch information