— eslint, frontend, backend, javascript, reactjs, coding project — 1 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.
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}