Why (and How Can I FIx) ESLint import/no-extraneous-dependencies Failures on Installed Packages?

Add the following to your eslint, just to have the correct rule in there. And yes you can also turn it off, but the error is there for e reason. “import/no-extraneous-dependencies”: [“error”, {“devDependencies”: false, “optionalDependencies”: false, “peerDependencies”: false}] As far as I can tell, there is no issue with your package.json, so it has to … Read more

Prettier 3.0.0 TypeError: prettier.resolveConfig.sync is not a function

There is an incompatibility between prettier 3 and eslint-plugin-prettier 4. You can fix this by using version 5 of eslint-plugin-prettier: yarn add -D eslint-plugin-prettier@5.0.0 or npm install –save-dev eslint-plugin-prettier@5.0.0 Official issue: https://github.com/prettier/eslint-plugin-prettier/issues/562 v5 release notes: https://github.com/prettier/eslint-plugin-prettier/releases/tag/v5.0.0

ESLint: Parsing error: This experimental syntax requires enabling one of the following parser plugin(s): ‘jsx, flow, typescript’ (2:9)

Install @babel/preset-react in dev dependencies. Add this in .eslintrc file … “parser”: “@babel/eslint-parser”, “parserOptions”: { … “babelOptions”: { “presets”: [“@babel/preset-react”] }, } … Source: https://ffan0811.medium.com/error-debugging-this-experimental-syntax-requires-enabling-one-of-the-following-parser-plugin-s-22946599a0a4

prettier settings for vscode

For those trying to quickly change Prettier settings for VS Code. Here are the steps: Go to FILE -> PREFERENCES -> SETTINGS. (VS Code Menus) Settings window should open. Above (Top) there is a search. Type “Prettier” You should see the available Prettier settings. You can modify them 🙂

Eslint AirBNB with 4 spaces for indent

Ok so this is relatively easy to do and is achievable by adding the following to your eslint config: // Indent with 4 spaces “indent”: [“error”, 4], // Indent JSX with 4 spaces “react/jsx-indent”: [“error”, 4], // Indent props with 4 spaces “react/jsx-indent-props”: [“error”, 4],

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)