Chore: Remove prettier-plugin from ESLint (#45910)
* chore(eslint): remove prettier-plugin * chore(eslint): test changes by using grafana/eslint 3.0.0-alpha * chore(prettier): add js,ts,tsx when checking / writing * chore(prettier): dont check js files * chore(linting): align prettier and eslint ignore files * style: run prettier:write on FE codebase * chore(eslint): use grafana/eslint-config@3.0.0
This commit is contained in:
+5
-5
@@ -35,8 +35,8 @@
|
||||
"packages:typecheck": "lerna run typecheck",
|
||||
"packages:clean": "lerna run clean",
|
||||
"precommit": "yarn run lint-staged",
|
||||
"prettier:check": "prettier --check --list-different=false --loglevel=warn \"**/*.{scss,md,mdx}\"",
|
||||
"prettier:write": "prettier --list-different \"**/*.{scss,md,mdx}\" --write",
|
||||
"prettier:check": "prettier --check --list-different=false --loglevel=warn \"**/*.{ts,tsx,scss,md,mdx}\"",
|
||||
"prettier:write": "prettier --list-different \"**/*.{js,ts,tsx,scss,md,mdx}\" --write",
|
||||
"start": "yarn themes:generate && yarn dev --watch",
|
||||
"start:noTsCheck": "yarn start --env noTsCheck=1",
|
||||
"start:hot": "yarn themes:generate && NODE_ENV=hot yarn dev --config scripts/webpack/webpack.hot.js",
|
||||
@@ -60,7 +60,8 @@
|
||||
"lint-staged": {
|
||||
"*.{js,ts,tsx}": [
|
||||
"betterer precommit",
|
||||
"eslint --ext .js,.tsx,.ts --cache --fix"
|
||||
"eslint --ext .js,.tsx,.ts --cache --fix",
|
||||
"prettier --write"
|
||||
],
|
||||
"*.{json,scss,md,mdx}": [
|
||||
"prettier --write"
|
||||
@@ -87,7 +88,7 @@
|
||||
"@emotion/eslint-plugin": "11.7.0",
|
||||
"@grafana/api-documenter": "7.11.2",
|
||||
"@grafana/e2e": "workspace:*",
|
||||
"@grafana/eslint-config": "2.5.2",
|
||||
"@grafana/eslint-config": "3.0.0",
|
||||
"@grafana/toolkit": "workspace:*",
|
||||
"@grafana/tsconfig": "^1.2.0-rc1",
|
||||
"@lingui/cli": "3.13.2",
|
||||
@@ -175,7 +176,6 @@
|
||||
"eslint-plugin-jest": "^26.1.0",
|
||||
"eslint-plugin-jsdoc": "37.9.1",
|
||||
"eslint-plugin-lodash": "7.4.0",
|
||||
"eslint-plugin-prettier": "4.0.0",
|
||||
"eslint-plugin-react": "7.29.2",
|
||||
"eslint-plugin-react-hooks": "4.3.0",
|
||||
"eslint-webpack-plugin": "3.1.1",
|
||||
|
||||
Reference in New Issue
Block a user