2020-10-01 15:21:22 +00:00
|
|
|
/*
|
|
|
|
We recommend eventually switching this configuration to extend from
|
2020-10-02 10:54:29 +00:00
|
|
|
the recommended rulesets in typescript-eslint.
|
2020-10-01 15:21:22 +00:00
|
|
|
https://github.com/typescript-eslint/tslint-to-eslint-config/blob/master/docs/FAQs.md
|
|
|
|
|
|
|
|
Happy linting! 💖
|
|
|
|
*/
|
|
|
|
module.exports = {
|
|
|
|
"extends": [
|
|
|
|
"plugin:@angular-eslint/recommended",
|
|
|
|
// AirBnB Styleguide rules
|
|
|
|
"airbnb-typescript/base",
|
|
|
|
// Settings for Prettier
|
|
|
|
"prettier/@typescript-eslint",
|
2020-10-02 10:54:29 +00:00
|
|
|
"plugin:prettier/recommended",
|
2020-10-01 15:21:22 +00:00
|
|
|
],
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"node": true
|
|
|
|
},
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
|
|
|
"project": "tsconfig.json",
|
|
|
|
"sourceType": "module"
|
|
|
|
},
|
|
|
|
"plugins": [
|
|
|
|
"eslint-plugin-import",
|
|
|
|
"eslint-plugin-jsdoc",
|
|
|
|
"@angular-eslint/eslint-plugin",
|
|
|
|
"@typescript-eslint",
|
|
|
|
"@typescript-eslint/tslint"
|
|
|
|
],
|
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
files: ['*.ts'],
|
|
|
|
extends: [
|
|
|
|
// AirBnB Styleguide rules
|
|
|
|
'airbnb-typescript/base',
|
|
|
|
],
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2020,
|
|
|
|
sourceType: 'module',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
};
|