mirror of
				https://github.com/owncast/owncast.git
				synced 2025-11-01 02:44:31 +08:00 
			
		
		
		
	 be5243f5f8
			
		
	
	be5243f5f8
	
	
	
		
			
			* Bump next from 10.2.3 to 11.0.1 Bumps [next](https://github.com/vercel/next.js) from 10.2.3 to 11.0.1. - [Release notes](https://github.com/vercel/next.js/releases) - [Changelog](https://github.com/vercel/next.js/blob/canary/release.js) - [Commits](https://github.com/vercel/next.js/compare/v10.2.3...v11.0.1) --- updated-dependencies: - dependency-name: next dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * 🚨 apply automatic linting * 🎨 remove unused imports * 🔇 allow console.* to give more debugging options * 🎨 move stuff around to reduce linter messages * 🚨 use destructuring so lint won't complain * 📌 link Chartkick and Chart.js Commit uses the linking code which was previously imported with `import "chartkick/chart.js" [1]. Next did not like the import path, but this does works now. ¯\_(ツ)_/¯ [1]: https://github.com/ankane/chartkick.js/blob/master/chart.js/chart.esm.js Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
		
			
				
	
	
		
			49 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| module.exports = {
 | |
|   env: {
 | |
|     browser: true,
 | |
|     es2021: true,
 | |
|   },
 | |
|   extends: ['plugin:react/recommended', 'airbnb', 'prettier'],
 | |
|   parser: '@typescript-eslint/parser',
 | |
|   parserOptions: {
 | |
|     ecmaFeatures: {
 | |
|       jsx: true,
 | |
|     },
 | |
|     ecmaVersion: 12,
 | |
|     sourceType: 'module',
 | |
|   },
 | |
|   plugins: ['react', 'prettier', '@typescript-eslint'],
 | |
|   rules: {
 | |
|     'prettier/prettier': 'error',
 | |
|     'react/react-in-jsx-scope': 'off',
 | |
|     'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx', '.tsx'] }],
 | |
|     'react/jsx-props-no-spreading': 'off',
 | |
| 
 | |
|     'no-unused-vars': 'off',
 | |
|     '@typescript-eslint/no-unused-vars': 'error',
 | |
|     'no-console': 'off',
 | |
| 
 | |
|     'no-use-before-define': [0],
 | |
|     '@typescript-eslint/no-use-before-define': [1],
 | |
| 
 | |
|     'react/jsx-no-target-blank': [1, { allowReferrer: false, enforceDynamicLinks: 'always' }],
 | |
|     'import/extensions': [
 | |
|       'error',
 | |
|       'ignorePackages',
 | |
|       {
 | |
|         js: 'never',
 | |
|         jsx: 'never',
 | |
|         ts: 'never',
 | |
|         tsx: 'never',
 | |
|       },
 | |
|     ],
 | |
|   },
 | |
|   settings: {
 | |
|     'import/resolver': {
 | |
|       node: {
 | |
|         extensions: ['.js', '.jsx', '.ts', '.tsx'],
 | |
|       },
 | |
|     },
 | |
|   },
 | |
| };
 |