Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See: - angular-eslint/angular-eslint#89 (comment) - angular-eslint/angular-eslint#86 (comment) - https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#parseroptionsproject - https://github.com/angular-eslint/angular-eslint#migrating-from-codelyzer-and-tslint - typescript-eslint/typescript-eslint#2094
- Loading branch information
Showing
5 changed files
with
575 additions
and
213 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* We are using the .JS version of an ESLint config file here so that we can | ||
* add lots of comments to better explain and document the setup. | ||
*/ | ||
module.exports = { | ||
/** | ||
* See packages/eslint-plugin/src/configs/README.md | ||
* for what this recommended config contains. | ||
*/ | ||
extends: ['plugin:@angular-eslint/recommended'], | ||
rules: { | ||
// ORIGINAL tslint.json -> "directive-selector": [true, "attribute", "app", "camelCase"], | ||
'@angular-eslint/directive-selector': [ | ||
'error', | ||
{ type: 'attribute', prefix: 'app', style: 'camelCase' }, | ||
], | ||
|
||
// ORIGINAL tslint.json -> "component-selector": [true, "element", "app", "kebab-case"], | ||
'@angular-eslint/component-selector': [ | ||
'error', | ||
{ type: 'element', prefix: 'app', style: 'kebab-case' }, | ||
], | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
project: ['./tsconfig.app.json', './tsconfig.spec.json', './e2e/tsconfig.json'], | ||
sourceType: "module", | ||
}, | ||
}; |
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
Oops, something went wrong.