1+ import Codex from "eslint-config-codex" ;
2+ import { plugin as TsPlugin , parser as TsParser } from 'typescript-eslint' ;
3+
4+ export default [
5+ ...Codex ,
6+ {
7+ files : [ 'src/**/*.ts' ] ,
8+ languageOptions : {
9+ parser : TsParser ,
10+ parserOptions : {
11+ project : './tsconfig.json' ,
12+ tsconfigRootDir : './' ,
13+ sourceType : 'module' ,
14+ } ,
15+ } ,
16+ rules : {
17+ 'n/no-missing-import' : [ 'off' ] ,
18+ 'n/no-unsupported-features/node-builtins' : [ 'off' ] ,
19+ 'jsdoc/require-returns-description' : [ 'off' ] ,
20+ '@typescript-eslint/naming-convention' : [
21+ 'error' ,
22+ {
23+ 'selector' : 'variable' ,
24+ 'format' : [ 'camelCase' ] ,
25+ 'leadingUnderscore' : 'allow'
26+ } ,
27+ ] ,
28+ '@typescript-eslint/no-unsafe-member-access' : [ 'off' ] ,
29+ '@typescript-eslint/no-restricted-types' : [ 'error' ,
30+ {
31+ 'types' : {
32+ 'String' : "Use 'string' instead." ,
33+ 'Boolean' : "Use 'boolean' instead." ,
34+ 'Number' : "Use 'number' instead." ,
35+ 'Symbol' : "Use 'symbol' instead." ,
36+ 'Object' : "Use 'object' instead, or define a more specific type." ,
37+ 'Function' : "Use a specific function type instead, like '(arg: type) => returnType'."
38+ }
39+ }
40+ ]
41+ }
42+ } ,
43+ {
44+ ignores : [ 'dev/**' , 'eslint.config.mjs' , 'vite.config.js' , 'postcss.config.js' ]
45+ }
46+ ] ;
0 commit comments