Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic setup for Linting #91

Open
ryekerjh opened this issue Jan 31, 2019 · 4 comments
Open

Basic setup for Linting #91

ryekerjh opened this issue Jan 31, 2019 · 4 comments
Labels
Good First Contribution If you're new to contributing, these are PERFECT for you help wanted

Comments

@ryekerjh
Copy link
Contributor

ESLint, TSLint, any other linters for other technology stacks we have.

@ryekerjh ryekerjh added help wanted Good First Contribution If you're new to contributing, these are PERFECT for you labels Jan 31, 2019
@coreyshuman
Copy link
Member

@Shift3/pr-team does anyone have a slick linter setup they would like to share with the team?

@DropsOfSerenity
Copy link

  Plug 'prettier/vim-prettier', {
  \ 'do': 'yarn install',
  \ 'for': ['javascript', 'typescript'] }
let g:prettier#autoformat = 1
let g:prettier#autoformat_require_pragma = 0

autoformat js and typescript in vim using prettier so that I don't ever have to worry about formatting. I'm sure there's an equivalent for vscode.

@michaelachrisco
Copy link
Contributor

michaelachrisco commented Apr 9, 2020

Ive used rubocop for ruby on rails apps before. Works pretty well on standard rulesets but you can get very specific as well.

For Python, I have used python black. Looks like it was referenced here as well: #131

For Laravel/PHP Ive heard good things about: https://github.com/overtrue/phplint, although I just used the phpstorm default Linter in the past.

@amerikan
Copy link
Contributor

amerikan commented Oct 7, 2021

Current I have:

"extends": [
    "eslint:recommended",
    "airbnb",
    "airbnb/hooks",
    "plugin:react/recommended",
    "plugin:react-hooks/recommended",
    "plugin:react-native/all",
    "plugin:import/recommended",
    "prettier",
    "plugin:prettier/recommended",
    "plugin:jest/all"
  ],
  "plugins": ["react", "react-native", "react-hooks", "jsx-a11y", "jest"],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First Contribution If you're new to contributing, these are PERFECT for you help wanted
Projects
None yet
Development

No branches or pull requests

7 participants