Skip to content
Bite-Sized Musings

Coding Project - Configuring Linting with ESLint: Part 3

eslint, frontend, backend, javascript, reactjs, coding project1 min read

I love linting! Plus with that nifty --fix flag and the way my VSCode is configured for work, I can't code without linting at all. It annoys me to see messy code.

I got used to the Airbnb style guide, plus the rationale behind the rules made sense. Of course, I had some preferences, so tweaked my linter accordingly.

The Rules

References

Config

.eslintrc.js
1rules: {
2 semi: ['error', 'never'],
3 quotes: ['error', 'single'],
4 'object-curly-newline': ['error', { multiline: true, minProperties: 3 }],
5 'no-nested-ternary': 2,
6 'import/order': [
7 2,
8 {
9 groups: [['builtin', 'external'], 'internal', 'parent', 'sibling'],
10 'newlines-between': 'always',
11 }
12 ],
13}

Read more:

© 2022 by Bite-Sized Musings. All rights reserved.
Theme by LekoArts