Repository navigation
v0.2.0
Minor Changes
-
#85
46d8e4dThanks @baseballyama! -configs.recommendednow includes aplugins: { postgresql }field. Spreading...postgresql.configs.recommendedin a flat ESLint config now binds the plugin automatically, so consumers no longer have to addplugins: { postgresql }separately for the rule severities to resolve. The README example continues to work as written. -
#74
0de0fa9Thanks @baseballyama! - Addpostgresql/no-char-typerule: warns on blank-paddedchar(n)/bpcharcolumns. Enabled atwarnseverity inconfigs.recommended. -
#66
7a964c8Thanks @baseballyama! - Addpostgresql/no-cross-joinrule: warns onCROSS JOIN. Enabled atwarnseverity inconfigs.recommended. -
#64
5728c3aThanks @baseballyama! - Addpostgresql/no-drop-table-cascaderule: warns onDROP ... CASCADE(table, schema, type, etc.) because CASCADE silently removes dependent objects. Enabled atwarnseverity inconfigs.recommended. -
#75
83c62afThanks @baseballyama! - Addpostgresql/no-grant-to-publicrule: warns onGRANT ... TO PUBLICbecause PUBLIC covers every current and future role.REVOKE ... FROM PUBLICis unaffected. Enabled atwarnseverity inconfigs.recommended. -
#80
beda810Thanks @baseballyama! - Addpostgresql/no-implicit-joinrule: warns on comma-separatedFROMclauses and recommends explicitJOIN ... ON .... Enabled atwarnseverity inconfigs.recommended. -
#73
7e82530Thanks @baseballyama! - Addpostgresql/no-money-typerule: errors on themoneycolumn type. Enabled aterrorseverity inconfigs.recommended. -
#67
6c5bbdcThanks @baseballyama! - Addpostgresql/no-natural-joinrule: errors onNATURAL JOINbecause the join columns are implicit and silently change when columns are added. Enabled aterrorseverity inconfigs.recommended. -
#77
39ff6dbThanks @baseballyama! - Addpostgresql/no-not-in-subqueryrule: errors onNOT IN (subquery)because a single NULL in the subquery yields zero rows. LiteralNOT IN (1, 2, 3)lists are unaffected. Enabled aterrorseverity inconfigs.recommended. -
#61
86401b5Thanks @baseballyama! - Addpostgresql/no-select-starrule: warns onSELECT *and<alias>.*so result schemas stay stable when the underlying table changes. Off by default; opt in by setting it in your ESLint config. -
#65
86a8b58Thanks @baseballyama! - Addpostgresql/no-truncate-cascaderule: warns onTRUNCATE ... CASCADEbecause it transitively empties tables that have foreign keys referencing the target. Enabled atwarnseverity inconfigs.recommended. -
#76
3936f18Thanks @baseballyama! - Addpostgresql/prefer-create-index-concurrentlyrule: warns on plainCREATE INDEXand recommendsCREATE INDEX CONCURRENTLY. Off by default because the right answer depends on the migration framework. -
#69
f61bc71Thanks @baseballyama! - Addpostgresql/prefer-identity-over-serialrule: warns onSMALLSERIAL,SERIAL,BIGSERIALcolumns and recommendsGENERATED ALWAYS AS IDENTITY. Enabled atwarnseverity inconfigs.recommended. -
#68
7f29ddaThanks @baseballyama! - Addpostgresql/prefer-jsonb-over-jsonrule: warns on columns declared asjsonand recommendsjsonb. Enabled atwarnseverity inconfigs.recommended. -
#71
d1f8a07Thanks @baseballyama! - Addpostgresql/prefer-text-over-varcharrule: warns onvarchar(n)and recommendstextwith aCHECKconstraint when a length cap is needed. Enabled atwarnseverity inconfigs.recommended. -
#72
03a9945Thanks @baseballyama! - Addpostgresql/prefer-timestamptzrule: warns ontimestamp without time zonecolumns and recommendstimestamptz. Enabled atwarnseverity inconfigs.recommended. -
#70
6142324Thanks @baseballyama! - Addpostgresql/require-primary-keyrule: warns onCREATE TABLEstatements that do not declare a primary key. Enabled atwarnseverity inconfigs.recommended. -
#62
a4c56b3Thanks @baseballyama! - Addpostgresql/require-where-in-deleterule: errors onDELETEstatements without aWHEREclause to prevent accidentally emptying tables. Enabled aterrorseverity inconfigs.recommended. -
#63
3d0df38Thanks @baseballyama! - Addpostgresql/require-where-in-updaterule: errors onUPDATEstatements without aWHEREclause. Enabled aterrorseverity inconfigs.recommended. -
#79
5a085bfThanks @baseballyama! - Addpostgresql/snake-case-column-namerule: warns when a column declared inCREATE TABLEis not snake_case. Enabled atwarnseverity inconfigs.recommended. -
#78
05a47b2Thanks @baseballyama! - Addpostgresql/snake-case-table-namerule: warns when aCREATE TABLEdeclares a table name that is not snake_case (typically a quoted mixed-case identifier). Enabled atwarnseverity inconfigs.recommended.