Skip to content

Instantly share code, notes, and snippets.

@WDever
Last active May 6, 2019 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WDever/16e72c955e8822586272362869aecb76 to your computer and use it in GitHub Desktop.
Save WDever/16e72c955e8822586272362869aecb76 to your computer and use it in GitHub Desktop.
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
'react-app',
'plugin:prettier/recommended',
'prettier',
'airbnb',
],
plugins: ['@typescript-eslint', 'react'],
rules: {
'@typescript-eslint/indent': ['error', 2],
// "@typescript-eslint/explicit-function-return-type": ["false"],
'@typescript-eslint/explicit-function-return-type': 0,
// "prettier/prettier": ["error", {
// "singleQuote": true,
// "parser": "flow"
// }],
// "no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": true }],
'no-unused-vars': 0,
'@typescript-eslint/no-empty-interface': 0,
'prettier/prettier': 0,
'@typescript-eslint/no-parameter-properties': 0,
// "@typescript-eslint/no-unused-vars": 0,
// "@typescript-eslint/no-unused-vars": ["error", { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }],
'react/prop-types': 0,
'react/jsx-filename-extension': [
1,
{ extensions: ['.js', '.jsx', 'tsx', 'ts'] },
],
'import/prefer-default-export': 0,
'no-param-reassign': 0,
'no-empty-function': 0,
'no-useless-constructor': 0,
'import/no-unresolved': 0,
// CRA v3 룰
'@typescript-eslint/indent': ['error', 2],
'@typescript-eslint/explicit-function-return-type': 0,
'no-unused-vars': 0,
'@typescript-eslint/no-empty-interface': 0,
'prettier/prettier': 0,
'@typescript-eslint/no-parameter-properties': 0,
'react/prop-types': 0,
'react/jsx-filename-extension': [
1,
{ extensions: ['.js', '.jsx', 'tsx', 'ts'] },
],
'import/prefer-default-export': 0,
'no-param-reassign': 0,
'no-empty-function': 0,
'no-useless-constructor': 0,
'import/no-unresolved': 0,
'no-underscore-dangle': 0,
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment