Skip to content

Instantly share code, notes, and snippets.

@umutyerebakmaz
Created March 11, 2022 12:47
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 umutyerebakmaz/93eae6864097b7c0f1f4fdc86acc9aec to your computer and use it in GitHub Desktop.
Save umutyerebakmaz/93eae6864097b7c0f1f4fdc86acc9aec to your computer and use it in GitHub Desktop.
for angular
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.json",
"e2e/tsconfig.json"
],
"createDefaultProgram": true
},
"extends": [
"eslint:recommended",
"standart",
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates",
"plugin:prettier/recommended"
],
"plugins": [
"@typescript-eslint"
],
"rules": {
"@angular-eslint/component-selector": [
"error",
{
"prefix": "",
"style": "kebab-case",
"type": "element"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"prefix": "",
"style": "camelCase",
"type": "attribute"
}
]
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {
"sort-imports": [
"off",
{
"ignoreCase": false,
"ignoreDeclarationSort": false,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": [
"none",
"all",
"multiple",
"single"
],
"allowSeparatedGroups": false
}
],
"no-empty-function": "off",
"no-unused-vars": "off",
"no-empty": "off",
"no-console": "off",
"no-prototype-builtins": "off",
"no-useless-constructor": "off",
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/return-await": "error",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-floating-promises": "error",
"no-eval": "off",
"no-use-before-define": "off"
}
}
]
}
{
"tabWidth": 4,
"useTabs": false,
"trailingComma": "es5",
"printWidth": 120,
"singleQuote": true,
"arrowParens": "avoid",
"overrides": [
{
"files": "*.flow.js",
"options": {
"parser": "flow"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment