Skip to content

Instantly share code, notes, and snippets.

@hachy
Created March 1, 2020 12:16
Show Gist options
  • Save hachy/8c62e09a5e1a76ff46d56552a7f1f399 to your computer and use it in GitHub Desktop.
Save hachy/8c62e09a5e1a76ff46d56552a7f1f399 to your computer and use it in GitHub Desktop.
module.exports = {
root: true,
env: {
browser: true,
es6: true,
node: true
},
extends: [
'airbnb-base',
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'prettier',
'plugin:prettier/recommended'
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module'
},
plugins: ['@typescript-eslint'],
rules: {
'prettier/prettier': ['error', { endOfLine: 'auto' }],
'import/prefer-default-export': 'off',
'import/no-cycle': 'warn',
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never'
}
],
'no-plusplus': 'off',
'no-unused-vars': 'off',
'no-restricted-syntax': 0,
'@typescript-eslint/no-unused-vars': [
'error',
{
vars: 'all',
args: 'after-used',
ignoreRestSiblings: false
}
],
'no-param-reassign': ['error', { props: true }],
radix: ['error', 'as-needed'],
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
'import/no-unresolved': [2, { ignore: ['.png$', '.jpg$'] }]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment