Skip to content

Instantly share code, notes, and snippets.

@rsurjano
Last active December 11, 2019 19:07
Show Gist options
  • Save rsurjano/c525c31d39404e2edf172e04fc480fd7 to your computer and use it in GitHub Desktop.
Save rsurjano/c525c31d39404e2edf172e04fc480fd7 to your computer and use it in GitHub Desktop.
module.exports = {
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier',
'prettier/@typescript-eslint',
],
parser: '@typescript-eslint/parser',
plugins: ['simple-import-sort', '@typescript-eslint', 'prettier'],
env: {
browser: true,
node: true,
es6: true,
jasmine: true,
jest: true,
},
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx', 'jsx'],
},
'import/resolver': {
typescript: {},
},
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
rules: {
'simple-import-sort/sort': 'error',
'sort-imports': 'off',
'import/order': 'off',
'prettier/prettier': ['error', { singleQuote: true }],
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/indent': 'off',
'@typescript-eslint/no-empty-function': 'off',
// disable following rules after MVP
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-function-return-type': 'off'
},
};
"@typescript-eslint/eslint-plugin": "^2.3.1",
"@typescript-eslint/parser": "^2.3.1",
"eslint": "^6.4.0",
"eslint-config-prettier": "^6.3.0",
"eslint-config-stylelint": "^11.1.0",
"eslint-plugin-prettier": "^3.1.1",
{
"eslint.alwaysShowStatus": true,
"eslint.autoFixOnSave": true,
"stylelint.autoFixOnSave": true,
"eslint.validate": [
"javascript",
"javascriptreact",
{
"autoFix": true,
"language": "html"
},
{
"autoFix": true,
"language": "typescript"
},
{
"autoFix": true,
"language": "typescriptreact"
}
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment