@@ -17,10 +17,10 @@ import {
1717 type TypescriptPluginOptions ,
1818 typescriptPlugin ,
1919} from './packages/plugin-typescript/src/index.js' ;
20- import { SUPPORTED_TS_ERROR_CODES } from './packages/plugin-typescript/src/lib/constants.js' ;
21- import { AUDITS } from './packages/plugin-typescript/src/lib/generated/audits.js' ;
22- import { AuditSlug } from './packages/plugin-typescript/src/lib/types.js' ;
23- import { filterAuditsBySlug } from './packages/plugin-typescript/src/lib/utils.js' ;
20+ import { BASIC_AUDITS , SUPPORTED_TS_ERROR_CODES } from './packages/plugin-typescript/src/lib/constants.js' ;
21+ import { AUDITS } from './packages/plugin-typescript/src/lib/generated/audits.js' ;
22+ import { AuditSlug } from './packages/plugin-typescript/src/lib/types.js' ;
23+ import { filterAuditsBySlug } from './packages/plugin-typescript/src/lib/utils.js' ;
2424
2525export const jsPackagesCategories : CategoryConfig [ ] = [
2626 {
@@ -79,14 +79,14 @@ export const eslintCategories: CategoryConfig[] = [
7979 slug : 'bug-prevention' ,
8080 title : 'Bug prevention' ,
8181 description : 'Lint rules that find **potential bugs** in your code.' ,
82- refs : [ { type : 'group' , plugin : 'eslint' , slug : 'problems' , weight : 1 } ] ,
82+ refs : [ { type : 'group' , plugin : 'eslint' , slug : 'problems' , weight : 1 } ] ,
8383 } ,
8484 {
8585 slug : 'code-style' ,
8686 title : 'Code style' ,
8787 description :
8888 'Lint rules that promote **good practices** and consistency in your code.' ,
89- refs : [ { type : 'group' , plugin : 'eslint' , slug : 'suggestions' , weight : 1 } ] ,
89+ refs : [ { type : 'group' , plugin : 'eslint' , slug : 'suggestions' , weight : 1 } ] ,
9090 } ,
9191] ;
9292
@@ -141,8 +141,7 @@ export const typescriptPluginConfigNx = async (
141141 options : TypescriptPluginOptions ,
142142) : Promise < CoreConfig > => {
143143 const opt : TypescriptPluginOptions = {
144- onlyAudits : Object . values ( SUPPORTED_TS_ERROR_CODES ) as ( string &
145- AuditSlug ) [ ] ,
144+ onlyAudits : BASIC_AUDITS ,
146145 ...options ,
147146 } ;
148147
@@ -153,7 +152,7 @@ export const typescriptPluginConfigNx = async (
153152 slug : 'typescript' ,
154153 title : 'Typescript' ,
155154 refs : AUDITS . filter ( filterAuditsBySlug ( opt . onlyAudits ) ) . map (
156- ( { slug } ) => ( {
155+ ( { slug} ) => ( {
157156 plugin : 'typescript' ,
158157 type : 'audit' as const ,
159158 slug,
0 commit comments