Skip to content

Instantly share code, notes, and snippets.

@LukeSamkharadze
Last active June 3, 2021 06:11
Show Gist options
  • Save LukeSamkharadze/d776a98e1790475cf704d56d8fa5cac9 to your computer and use it in GitHub Desktop.
Save LukeSamkharadze/d776a98e1790475cf704d56d8fa5cac9 to your computer and use it in GitHub Desktop.
Simple ESLint config for TS
module.exports = {
env: {
node: true,
browser: true,
es2021: true,
},
parserOptions: {
sourceType: 'module',
},
overrides: [
{
files: '*.ts',
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parserOptions: {
project: 'tsconfig.json',
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/eslint-recommended',
],
},
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment