Skip to content

Instantly share code, notes, and snippets.

@cyaenorama
Forked from benawad/.eslintrc.js
Created June 4, 2019 04:40
Show Gist options
  • Select an option

  • Save cyaenorama/0a04619ff9f28d8b6361701bcd68ee02 to your computer and use it in GitHub Desktop.

Select an option

Save cyaenorama/0a04619ff9f28d8b6361701bcd68ee02 to your computer and use it in GitHub Desktop.
module.exports = {
parser: "@typescript-eslint/parser", // Specifies the ESLint parser
extends: [
"plugin:@typescript-eslint/recommended" // Uses the recommended rules from the @typescript-eslint/eslint-plugin
],
parserOptions: {
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: "module" // Allows for the use of imports
},
rules: {
"no-shadow": "warn",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/array-type": "off",
"@typescript-eslint/no-object-literal-type-assertion": "off"
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment