refactor: enforce semantic values and numeric lint rules
This commit is contained in:
+17
-1
@@ -27,7 +27,8 @@
|
||||
},
|
||||
"style": {
|
||||
"noDefaultExport": "error",
|
||||
"useExportsLast": "error"
|
||||
"useExportsLast": "error",
|
||||
"noMagicNumbers": "error"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -57,6 +58,21 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"includes": [
|
||||
"**/*.test.ts",
|
||||
"**/*.test.tsx",
|
||||
"**/*.stories.tsx",
|
||||
"src/test/**"
|
||||
],
|
||||
"linter": {
|
||||
"rules": {
|
||||
"style": {
|
||||
"noMagicNumbers": "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user