Skip to content

Instantly share code, notes, and snippets.

@phatnguyenuit
Created May 2, 2022 13:43
Show Gist options
  • Save phatnguyenuit/0d6f33d5aebf7cfee9a1d225d8161039 to your computer and use it in GitHub Desktop.
Save phatnguyenuit/0d6f33d5aebf7cfee9a1d225d8161039 to your computer and use it in GitHub Desktop.
How to sort imports like a pro in TypeScript | .eslintrc.js | base ESLint
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
env: {
node: true,
},
plugins: ['@typescript-eslint', 'prettier'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment