Skip to content

Instantly share code, notes, and snippets.

@jcarley
Created July 4, 2020 13:43
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 jcarley/11dbb890d54724605d3ba94b9494ff83 to your computer and use it in GitHub Desktop.
Save jcarley/11dbb890d54724605d3ba94b9494ff83 to your computer and use it in GitHub Desktop.
module.exports = {
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
parserOptions: {
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
},
extends: [
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
'prettier/@typescript-eslint', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
],
rules: {
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
// e.g. "@typescript-eslint/explicit-function-return-type": "off",
'@typescript-eslint/interface-name-prefix': 'off',
},
};
module.exports = {
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
extends: ['eslint-config-blvd/react', 'prettier/@typescript-eslint', 'prettier/react', 'plugin:prettier/recommended'],
parserOptions: {
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
ecmaFeatures: {
jsx: true,
},
},
plugins: ['jest'],
settings: {
react: {
version: 'detect',
},
},
env: {
'jest/globals': true,
},
rules: {
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
// e.g. "@typescript-eslint/explicit-function-return-type": "off",
'import/prefer-default-export': ['off'],
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/explicit-function-return-type': ['off'],
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/no-empty-interface': 'off',
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment