Rework Prettier invocation (#28851)
This commit is contained in:
		
							
								
								
									
										20
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								package.json
									
									
									
									
									
								
							@@ -12,20 +12,16 @@
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "build:development": "cross-env RAILS_ENV=development NODE_ENV=development ./bin/webpack",
 | 
			
		||||
    "build:production": "cross-env RAILS_ENV=production NODE_ENV=production ./bin/webpack",
 | 
			
		||||
    "fix:js": "yarn lint:js --fix",
 | 
			
		||||
    "fix:json": "prettier --write \"**/*.{json,json5}\"",
 | 
			
		||||
    "fix:md": "prettier --write \"**/*.md\"",
 | 
			
		||||
    "fix:sass": "stylelint --fix \"**/*.{css,scss}\" && prettier --write \"**/*.{css,scss}\"",
 | 
			
		||||
    "fix:yml": "prettier --write \"**/*.{yaml,yml}\"",
 | 
			
		||||
    "fix": "yarn fix:js && yarn fix:json && yarn fix:sass && yarn fix:yml",
 | 
			
		||||
    "fix:js": "eslint . --ext=.js,.jsx,.ts,.tsx --cache --report-unused-disable-directives --fix",
 | 
			
		||||
    "fix:css": "stylelint --fix \"**/*.{css,scss}\"",
 | 
			
		||||
    "fix": "yarn fix:js && yarn fix:css",
 | 
			
		||||
    "format": "prettier --write --log-level warn .",
 | 
			
		||||
    "format:check": "prettier --check --ignore-unknown .",
 | 
			
		||||
    "i18n:extract": "formatjs extract 'app/javascript/**/*.{js,jsx,ts,tsx}' '--ignore=**/*.d.ts' --out-file app/javascript/mastodon/locales/en.json --format config/formatjs-formatter.js",
 | 
			
		||||
    "jest": "cross-env NODE_ENV=test jest",
 | 
			
		||||
    "lint:js": "eslint . --ext=.js,.jsx,.ts,.tsx --cache --report-unused-disable-directives",
 | 
			
		||||
    "lint:json": "prettier --check \"**/*.{json,json5}\"",
 | 
			
		||||
    "lint:md": "prettier --check \"**/*.md\"",
 | 
			
		||||
    "lint:sass": "stylelint \"**/*.{css,scss}\" && prettier --check \"**/*.{css,scss}\"",
 | 
			
		||||
    "lint:yml": "prettier --check \"**/*.{yaml,yml}\"",
 | 
			
		||||
    "lint": "yarn lint:js && yarn lint:json && yarn lint:sass && yarn lint:yml",
 | 
			
		||||
    "lint:css": "stylelint \"**/*.{css,scss}\"",
 | 
			
		||||
    "lint": "yarn lint:js && yarn lint:css",
 | 
			
		||||
    "postversion": "git push --tags",
 | 
			
		||||
    "prepare": "husky",
 | 
			
		||||
    "start": "node ./streaming/index.js",
 | 
			
		||||
@@ -177,14 +173,12 @@
 | 
			
		||||
    "@typescript-eslint/parser": "^7.0.0",
 | 
			
		||||
    "babel-jest": "^29.5.0",
 | 
			
		||||
    "eslint": "^8.41.0",
 | 
			
		||||
    "eslint-config-prettier": "^9.0.0",
 | 
			
		||||
    "eslint-define-config": "^2.0.0",
 | 
			
		||||
    "eslint-import-resolver-typescript": "^3.5.5",
 | 
			
		||||
    "eslint-plugin-formatjs": "^4.10.1",
 | 
			
		||||
    "eslint-plugin-import": "~2.29.0",
 | 
			
		||||
    "eslint-plugin-jsdoc": "^48.0.0",
 | 
			
		||||
    "eslint-plugin-jsx-a11y": "~6.8.0",
 | 
			
		||||
    "eslint-plugin-prettier": "^5.0.0",
 | 
			
		||||
    "eslint-plugin-promise": "~6.1.1",
 | 
			
		||||
    "eslint-plugin-react": "^7.33.2",
 | 
			
		||||
    "eslint-plugin-react-hooks": "^4.6.0",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user