Skip to content

About

ESLint config for Node.js, React Native and React

Resources

Stars

6 stars

Watchers

0 watching

Forks

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

6 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages