Last active
December 11, 2019 19:07
-
-
Save rsurjano/c525c31d39404e2edf172e04fc480fd7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |
}, | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"@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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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