* fix: punycode.js が使用されていない場所がある問題 * fix: use punycode/punycode.js on backend * fix: use punycode/punycode.es6.js on backend * fix: d.ts missing declare keyword * chore: don't use punycode.js on backend * update pnpm-lock.yaml * chore: remove punycode.d.ts * chore: use punycode.js instead of punycode npm package * chore: bump psl to 1.15.0 * chore: bump nsfwjs to 4.2.0 4.2.1 is not usable because of https://github.com/infinitered/nsfwjs/issues/904 * chore: prevent loading node-fetch from tensorflow * chore: DOMWindow['document'] => Document IDK why DOMWindow['document'] fails, but might be related to tsc internal complexity limit * fix: disable --trace-deprecation --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
		
			
				
	
	
		
			43 lines
		
	
	
		
			698 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			698 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import globals from 'globals';
 | 
						|
import pluginMisskey from '@misskey-dev/eslint-plugin';
 | 
						|
 | 
						|
export default [
 | 
						|
	...pluginMisskey.configs['recommended'],
 | 
						|
	{
 | 
						|
		files: ['**/*.cjs'],
 | 
						|
		languageOptions: {
 | 
						|
			sourceType: 'commonjs',
 | 
						|
			parserOptions: {
 | 
						|
				sourceType: 'commonjs',
 | 
						|
			},
 | 
						|
		},
 | 
						|
	},
 | 
						|
	{
 | 
						|
		files: ['**/*.js', '**/*.jsx'],
 | 
						|
		languageOptions: {
 | 
						|
			parserOptions: {
 | 
						|
				sourceType: 'module',
 | 
						|
			},
 | 
						|
		},
 | 
						|
	},
 | 
						|
	{
 | 
						|
		files: ['build.js'],
 | 
						|
		languageOptions: {
 | 
						|
			globals: globals.node,
 | 
						|
		},
 | 
						|
	},
 | 
						|
	{
 | 
						|
		files: ['**/*.js', '**/*.cjs'],
 | 
						|
		rules: {
 | 
						|
			'@typescript-eslint/no-var-requires': 'off',
 | 
						|
		},
 | 
						|
	},
 | 
						|
	{
 | 
						|
		rules: {
 | 
						|
			'no-restricted-imports': ['error', {
 | 
						|
				paths: [{ name: 'punycode' }],
 | 
						|
			}],
 | 
						|
		},
 | 
						|
	},
 | 
						|
];
 |