Created
April 1, 2020 02:14
-
-
Save emersxw/5133d4ac85aa2b75cd24c018b897bc46 to your computer and use it in GitHub Desktop.
This file contains 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 = { | |
env: { | |
browser: true, | |
es6: true, | |
jest: true, | |
}, | |
extends: [ | |
'react-app', | |
'airbnb', | |
'plugin:@typescript-eslint/recommended', | |
'prettier/@typescript-eslint', | |
], | |
globals: { | |
Atomics: 'readonly', | |
SharedArrayBuffer: 'readonly', | |
}, | |
parserOptions: { | |
ecmaFeatures: { | |
jsx: true, | |
}, | |
ecmaVersion: 2018, | |
sourceType: 'module', | |
}, | |
plugins: ['react', 'import', 'jsx-a11y'], | |
rules: { | |
"import/extensions": [ | |
"error", | |
"ignorePackages", | |
{ | |
"js": "never", | |
"jsx": "never", | |
"ts": "never", | |
"tsx": "never" | |
} | |
], | |
'react/jsx-filename-extension': [ | |
'error', | |
{ | |
extensions: ['.tsx'], | |
}, | |
], | |
'import/prefer-default-export': 'off', | |
'@typescript-eslint/explicit-function-return-type': 'off', | |
'@typescript-eslint/explicit-member-accessibility': 'off' | |
}, | |
settings: { | |
'import/parsers': { | |
'@typescript-eslint/parser': ['.ts', '.tsx'], | |
}, | |
'import/resolver': { | |
typescript: {}, | |
}, | |
}, | |
}; | |
// module.exports = { | |
// extends: ['airbnb', 'plugin:@typescript-eslint/recommended'], | |
// parser: '@typescript-eslint/parser', | |
// plugins: ['@typescript-eslint', 'prettier'], | |
// settings: { | |
// 'import/parsers': { | |
// '@typescript-eslint/parser': ['.ts', '.tsx'], | |
// }, | |
// 'import/resolver': { | |
// typescript: {}, | |
// }, | |
// }, | |
// rules: { | |
// 'react/jsx-filename-extension': [2, { extensions: ['.js', '.jsx', '.ts', '.tsx'] }], | |
// 'import/no-extraneous-dependencies': [2, { devDependencies: ['**/test.tsx', '**/test.ts'] }], | |
// '@typescript-eslint/indent': [2, 2], | |
// }, | |
// }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment