Skip to content

ESLint config for Node.js, React Native and React

Notifications You must be signed in to change notification settings

hyochan/eslint-config

Repository files navigation

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

About

ESLint config for Node.js, React Native and React

Resources

Stars

Watchers

Forks

Packages

No packages published