/eslint-config

ESLint config for Node.js, React Native and React

Primary LanguageJavaScript

ESLint Config

ESLint configuration for below projects.

Node.js

Npm Version

See package

React Native

Npm Version

See package

React

Npm Version

See package

Recommendation

.prettierrc.js

module.exports = {
  trailingComma: "all",
  arrowParens: "always",
  singleQuote: true,
  jsxSingleQuote: false,
  bracketSpacing: false,
};

.vscode/settings.json

{
  "eslint.validate": [
    "javascript",
    "typescript"
  ],
  "editor.codeActionsOnSave": {
    "source.fixAll": false,
    "source.fixAll.eslint": false
  },
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[javascriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "javascript.preferences.importModuleSpecifier": "relative",
  "typescript.preferences.importModuleSpecifier": "relative",
  "prettier.configPath": ".prettierrc.js",
}

For yarn berry user

yarn dlx @yarnpkg/sdks vscode