Skip to content

Commit

Permalink
feat: use experience package for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Aug 15, 2023
1 parent b7cf415 commit 8343531
Show file tree
Hide file tree
Showing 71 changed files with 669 additions and 645 deletions.
29 changes: 1 addition & 28 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,4 @@
console.log('Compiling typescript files by tsconfig...');

/**
* @type {import('eslint').Linter.Config}
*/
module.exports = {
root: true,
extends: [
'plugin:@taiga-ui/eslint-plugin/eslint-config',
'plugin:@taiga-ui/eslint-plugin/eslint-config-angular-recommended',
'plugin:@taiga-ui/eslint-plugin/eslint-config-angular-rxjs',
'plugin:@taiga-ui/eslint-plugin/eslint-config-angular-imports',
'plugin:@taiga-ui/eslint-plugin/eslint-config-angular-promise',
'plugin:@taiga-ui/eslint-plugin/eslint-config-angular-unicorn',
'plugin:@taiga-ui/eslint-plugin/eslint-config-angular-html-eslint',
'plugin:@taiga-ui/eslint-plugin/eslint-config-angular-file-progress',
'plugin:@taiga-ui/eslint-plugin/eslint-config-angular-line-statements',
'plugin:@taiga-ui/eslint-plugin/eslint-config-angular-member-ordering',
'plugin:@taiga-ui/eslint-plugin/eslint-config-angular-decorator-position',
'plugin:@taiga-ui/eslint-plugin/eslint-config-angular-experimental',
'plugin:@taiga-ui/eslint-plugin/eslint-config-angular-function-return-type',
'plugin:@taiga-ui/eslint-plugin/taiga',
'plugin:@taiga-ui/eslint-plugin/no-restricted-syntax',
'plugin:@taiga-ui/eslint-plugin/typescript',
'plugin:@taiga-ui/eslint-plugin/ng',
'plugin:@taiga-ui/eslint-plugin/cypress',
'plugin:@taiga-ui/eslint-plugin/naming-convention',
'plugin:@taiga-ui/eslint-plugin/off',
],
ignorePatterns: require('@taiga-ui/eslint-plugin/configs/ignore-patterns'),
extends: ['plugin:@taiga-ui/experience/all'],
};
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Monorepo for all the tooling which enables ESLint, Prettier, Stylelint to suppor

### ♻️ Sharable configs

| **Package** | **Version** | **README** | **Downloads** |
| ---------------------------------------------------------------------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------- |
| [@taiga-ui/eslint-plugin](https://npmjs.com/package/@taiga-ui/eslint-plugin) | ![](https://img.shields.io/npm/v/%40taiga-ui%2Feslint-plugin/latest.svg) | [![](https://img.shields.io/badge/README--green.svg)](projects/eslint-plugin/README.md) | [![](https://img.shields.io/npm/dw/@taiga-ui/eslint-plugin)](https://npmjs.com/package/@taiga-ui/eslint-plugin) |
| [@taiga-ui/prettier-config](https://npmjs.com/package/@taiga-ui/prettier-config) | ![](https://img.shields.io/npm/v/%40taiga-ui%2Fprettier-config/latest.svg) | [![](https://img.shields.io/badge/README--green.svg)](projects/prettier-config/README.md) | [![](https://img.shields.io/npm/dw/@taiga-ui/prettier-config)](https://npmjs.com/package/@taiga-ui/prettier-config) |
| [@taiga-ui/stylelint-config](https://npmjs.com/package/@taiga-ui/stylelint-config) | ![](https://img.shields.io/npm/v/%40taiga-ui%2Fstylelint-config/latest.svg) | [![](https://img.shields.io/badge/README--green.svg)](projects/stylelint-config/README.md) | [![](https://img.shields.io/npm/dw/@taiga-ui/stylelint-config)](https://npmjs.com/package/@taiga-ui/stylelint-config) |
| [@taiga-ui/cspell-config](https://npmjs.com/package/@taiga-ui/cspell-config) | ![](https://img.shields.io/npm/v/%40taiga-ui%2Fcspell-config/latest.svg) | [![](https://img.shields.io/badge/README--green.svg)](projects/cspell-config/README.md) | [![](https://img.shields.io/npm/dw/@taiga-ui/cspell-config)](https://npmjs.com/package/@taiga-ui/cspell-config) |
| **Package** | **Version** | **README** | **Downloads** |
| -------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| [@taiga-ui/eslint-plugin-experience](https://npmjs.com/package/@taiga-ui/eslint-plugin-experience) | ![](https://img.shields.io/npm/v/%40taiga-ui%2Feslint-plugin-experience/latest.svg) | [![](https://img.shields.io/badge/README--green.svg)](projects/eslint-plugin-experience/README.md) | [![](https://img.shields.io/npm/dw/@taiga-ui/eslint-plugin-experience)](https://npmjs.com/package/@taiga-ui/eslint-plugin-experience) |
| [@taiga-ui/prettier-config](https://npmjs.com/package/@taiga-ui/prettier-config) | ![](https://img.shields.io/npm/v/%40taiga-ui%2Fprettier-config/latest.svg) | [![](https://img.shields.io/badge/README--green.svg)](projects/prettier-config/README.md) | [![](https://img.shields.io/npm/dw/@taiga-ui/prettier-config)](https://npmjs.com/package/@taiga-ui/prettier-config) |
| [@taiga-ui/stylelint-config](https://npmjs.com/package/@taiga-ui/stylelint-config) | ![](https://img.shields.io/npm/v/%40taiga-ui%2Fstylelint-config/latest.svg) | [![](https://img.shields.io/badge/README--green.svg)](projects/stylelint-config/README.md) | [![](https://img.shields.io/npm/dw/@taiga-ui/stylelint-config)](https://npmjs.com/package/@taiga-ui/stylelint-config) |
| [@taiga-ui/cspell-config](https://npmjs.com/package/@taiga-ui/cspell-config) | ![](https://img.shields.io/npm/v/%40taiga-ui%2Fcspell-config/latest.svg) | [![](https://img.shields.io/badge/README--green.svg)](projects/cspell-config/README.md) | [![](https://img.shields.io/npm/dw/@taiga-ui/cspell-config)](https://npmjs.com/package/@taiga-ui/cspell-config) |
134 changes: 94 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
10 changes: 10 additions & 0 deletions projects/eslint-plugin-experience/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
### `@taiga-ui/eslint-plugin-experience`

`.eslintrc.js`

```js
module.exports = {
root: true,
extends: ['plugin:@taiga-ui/experience/all'],
};
```
Loading

0 comments on commit 8343531

Please sign in to comment.